forked from sPHENIX-Collaboration/coresoftware
/
Fun4AllPrdfInputManager.h
43 lines (36 loc) · 1.13 KB
/
Fun4AllPrdfInputManager.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Tell emacs that this is a C++ source
// -*- C++ -*-.
#ifndef FUN4ALLRAW_FUN4ALLPRDFINPUTMANAGER_H
#define FUN4ALLRAW_FUN4ALLPRDFINPUTMANAGER_H
#include <fun4all/Fun4AllInputManager.h>
#include <string>
class Event;
class Eventiterator;
class PHCompositeNode;
class SyncObject;
class Fun4AllPrdfInputManager : public Fun4AllInputManager
{
public:
Fun4AllPrdfInputManager(const std::string &name = "DUMMY", const std::string &prdfnodename = "PRDF", const std::string &topnodename = "TOP");
virtual ~Fun4AllPrdfInputManager();
int fileopen(const std::string &filenam);
int fileclose();
int run(const int nevents = 0);
void Print(const std::string &what = "ALL") const;
int ResetEvent();
int PushBackEvents(const int i);
int GetSyncObject(SyncObject **mastersync);
int SyncIt(const SyncObject *mastersync);
int HasSyncObject() const {return 1;}
private:
int m_Segment;
int m_EventsTotal;
int m_EventsThisFile;
PHCompositeNode *m_topNode;
Event *m_Event;
Event *m_SaveEvent;
Eventiterator *m_EventIterator;
SyncObject *m_SyncObject;
std::string m_PrdfNodeName;
};
#endif /* FUN4ALL_FUN4ALLPRDFINPUTMANAGER_H */