Class Reference for E1039 Core & Analysis Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Fun4AllTrackQAv1InputManager.h
Go to the documentation of this file.
1 #ifndef _FUN4ALL_TRACK_QAV1_INPUT_MANAGER__H_
2 #define _FUN4ALL_TRACK_QAV1_INPUT_MANAGER__H_
3 #include <string>
4 #include <map>
6 class PHCompositeNode;
7 class SyncObject;
8 class TFile;
9 class TTree;
10 class SQRun;
11 class SQEvent;
12 class SQHitVector;
13 
15 {
16 public:
17  Fun4AllTrackQAv1InputManager(const std::string &name="DUMMY", const std::string &topnodename="TOP");
19  int fileopen(const std::string &filenam);
20  int fileclose();
21  int run(const int nevents=0);
22  int isOpen() {return isopen;}
23 
24  void Print(const std::string &what = "ALL") const;
25  int ResetEvent();
26  int PushBackEvents(const int i);
27  int GetSyncObject(SyncObject **mastersync);
28  int SyncIt(const SyncObject *mastersync);
29 
30  const std::string& GetTreeName() const { return _tree_name; }
31  void SetTreeName(const std::string& treeName) { _tree_name = treeName; }
32 
33 protected:
34  int OpenNextFile();
35 
36  int segment;
37  int isopen;
40  std::string topNodeName;
43 
45  std::string _tree_name;
46  TFile* _fin;
47  TTree* _tin;
48  int nHits;
49  int detectorID[500];
50  int elementID [500];
51  float driftDistance[500]; // [nHits]
52 
57 };
58 
59 #endif // _FUN4ALL_TRACK_QAV1_INPUT_MANAGER__H_
void Print(const std::string &what="ALL") const
int GetSyncObject(SyncObject **mastersync)
Fun4AllTrackQAv1InputManager(const std::string &name="DUMMY", const std::string &topnodename="TOP")
const std::string & GetTreeName() const
int fileopen(const std::string &filenam)
void SetTreeName(const std::string &treeName)
int SyncIt(const SyncObject *mastersync)
An SQ interface class to hold one event header.
Definition: SQEvent.h:17
An SQ interface class to hold a list of SQHit objects.
Definition: SQHitVector.h:32
An SQ interface class to hold the run-level info.
Definition: SQRun.h:18