Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:17:17

0001 // Tell emacs that this is a C++ source
0002 //  -*- C++ -*-.
0003 #ifndef FUN4ALL_FUN4ALLNOSYNCDSTINPUTMANAGER_H
0004 #define FUN4ALL_FUN4ALLNOSYNCDSTINPUTMANAGER_H
0005 
0006 #include "Fun4AllDstInputManager.h"
0007 
0008 #include "Fun4AllReturnCodes.h"
0009 
0010 #include <string>  // for string
0011 
0012 class PHNodeIOManager;
0013 class SyncObject;
0014 
0015 class Fun4AllNoSyncDstInputManager : public Fun4AllDstInputManager
0016 {
0017  public:
0018   Fun4AllNoSyncDstInputManager(const std::string& name = "DUMMY", const std::string& nodename = "DST", const std::string& topnodename = "TOP");
0019 
0020   ~Fun4AllNoSyncDstInputManager() override {}
0021 
0022   // Effectivly turn off the synchronization checking
0023   //
0024   int SyncIt(const SyncObject* /*mastersync*/) override { return Fun4AllReturnCodes::SYNC_OK; }
0025   int GetSyncObject(SyncObject** /*mastersync*/) override { return Fun4AllReturnCodes::SYNC_NOOBJECT; }
0026   int NoSyncPushBackEvents(const int nevt) override { return PushBackEvents(nevt); }
0027   // no sync object we don't need to enable the sync variables
0028   int setSyncBranches(PHNodeIOManager* /*IManager*/) override { return 0; }
0029 
0030   // turn off reading of the runwise TTree to make run mixing for embedding possible
0031   int NoRunTTree();
0032 
0033   int SkipForThisManager(const int nevents) override { return PushBackEvents(nevents); }
0034   int HasSyncObject() const override { return 0; }
0035 };
0036 
0037 #endif  // FUN4ALL_FUN4ALLNOSYNCDSTINPUTMANAGER_H