Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Fun4AllPrdfInputManager.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file Fun4AllPrdfInputManager.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef FUN4ALLRAW_FUN4ALLPRDFINPUTMANAGER_H
4 #define FUN4ALLRAW_FUN4ALLPRDFINPUTMANAGER_H
5 
7 
8 #include <string>
9 
10 class Event;
11 class Eventiterator;
12 class PHCompositeNode;
13 class SyncObject;
14 
16 {
17  public:
18  Fun4AllPrdfInputManager(const std::string &name = "DUMMY", const std::string &prdfnodename = "PRDF", const std::string &topnodename = "TOP");
19  ~Fun4AllPrdfInputManager() override;
20  int fileopen(const std::string &filenam) override;
21 
22 // cppcheck-suppress virtualCallInConstructor
23  int fileclose() override;
24  int run(const int nevents = 0) override;
25 
26  void Print(const std::string &what = "ALL") const override;
27  int ResetEvent() override;
28  int PushBackEvents(const int i) override;
29  int GetSyncObject(SyncObject **mastersync) override;
30  int SyncIt(const SyncObject *mastersync) override;
31  int HasSyncObject() const override { return 1; }
32  std::string GetString(const std::string &what) const override;
33 
34  private:
35  int m_Segment = -999;
36  int m_EventsTotal = 0;
39  Event *m_Event = nullptr;
40  Event *m_SaveEvent = nullptr;
44 };
45 
46 #endif /* FUN4ALL_FUN4ALLPRDFINPUTMANAGER_H */