Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Fun4AllNoSyncDstInputManager.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file Fun4AllNoSyncDstInputManager.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef FUN4ALL_FUN4ALLNOSYNCDSTINPUTMANAGER_H
4 #define FUN4ALL_FUN4ALLNOSYNCDSTINPUTMANAGER_H
5 
7 
8 #include "Fun4AllReturnCodes.h"
9 
10 #include <string> // for string
11 
12 class PHNodeIOManager;
13 class SyncObject;
14 
16 {
17  public:
18  Fun4AllNoSyncDstInputManager(const std::string& name = "DUMMY", const std::string& nodename = "DST", const std::string& topnodename = "TOP");
19 
21 
22  // Effectivly turn off the synchronization checking
23  //
24  int SyncIt(const SyncObject* /*mastersync*/) override { return Fun4AllReturnCodes::SYNC_OK; }
25  int GetSyncObject(SyncObject** /*mastersync*/) override { return Fun4AllReturnCodes::SYNC_NOOBJECT; }
26  int NoSyncPushBackEvents(const int nevt) override { return PushBackEvents(nevt); }
27  // no sync object we don't need to enable the sync variables
28  int setSyncBranches(PHNodeIOManager* /*IManager*/) override { return 0; }
29 
30  // turn off reading of the runwise TTree to make run mixing for embedding possible
31  int NoRunTTree();
32 
33  int SkipForThisManager(const int nevents) override { return PushBackEvents(nevents); }
34  int HasSyncObject() const override { return 0; }
35 };
36 
37 #endif // FUN4ALL_FUN4ALLNOSYNCDSTINPUTMANAGER_H