Class Reference for E1039 Core & Analysis Software
Fun4AllRUSInputManager.h
Go to the documentation of this file.
1 #ifndef Fun4AllRUSInputManager_H_
2 #define Fun4AllRUSInputManager_H_
4 #include <string>
5 #include <vector>
6 #include <map>
7 
8 class PHCompositeNode;
9 class SyncObject;
10 
11 class TFile;
12 class TTree;
13 class SQRun;
14 class SQSpillMap;
15 class SQEvent;
16 class SQTrackVector;
17 class SQHitVector;
18 
20 public:
21  Fun4AllRUSInputManager(const std::string &name = "DUMMY", const std::string &topnodename = "TOP");
22  virtual ~Fun4AllRUSInputManager();
23 
24  int fileopen(const std::string &filename);
25  int fileclose();
26  int run(const int nevents = 0);
27  int isOpen() { return isopen; }
28 
29  void Print(const std::string &what = "ALL") const;
30  int ResetEvent();
31  int PushBackEvents(const int i);
32  int GetSyncObject(SyncObject **mastersync);
33  int SyncIt(const SyncObject *mastersync);
34 
35  const std::string& get_branch_name() const { return _branch_name; }
36  void set_branch_name(const std::string& branchName) { _branch_name = branchName; }
37 
38  const std::string& get_tree_name() const { return _tree_name; }
39  void set_tree_name(const std::string& treeName) { _tree_name = treeName; }
40  void MakeNode();
41 protected:
42 
43  bool is_mc;
44  int OpenNextFile();
45  void VectToE1039();
46  int segment;
47  int isopen;
50  std::string topNodeName;
53 
54  std::string _tree_name;
55  std::string _branch_name;
56 
57  TFile* _fin;
58  TTree* _tin;
59  int runID;
60  int spillID;
61  int eventID;
62  int turnID;
63  int rfID;
64  int rfIntensity[33] = {0};
65  int fpgaTrigger[5] = {0};
66  int nimTrigger[5] = {0};
67 
68  std::vector<int>* hitID = nullptr;
69  std::vector<int>* hitTrackID = nullptr;
70  std::vector<int>* detectorID = nullptr;
71  std::vector<int>* elementID = nullptr;
72  std::vector<double>* driftDistance = nullptr;
73  std::vector<double>* tdcTime = nullptr;
74 
75 
76  std::vector<int> *gCharge = nullptr, *gTrackID = nullptr;
77  std::vector<double>
78  *gvx = nullptr, *gvy = nullptr, *gvz = nullptr,
79  *gpx = nullptr, *gpy = nullptr, *gpz = nullptr,
80  *gx_st1 = nullptr, *gy_st1 = nullptr, *gz_st1 = nullptr,
81  *gpx_st1 = nullptr, *gpy_st1 = nullptr, *gpz_st1 = nullptr,
82  *gx_st3 = nullptr, *gy_st3 = nullptr, *gz_st3 = nullptr,
83  *gpx_st3 = nullptr, *gpy_st3 = nullptr, *gpz_st3 = nullptr;
84 
90 };
91 
92 #endif /* __Fun4AllRUSInputManager_H_ */
std::vector< double > * gpx_st3
std::vector< int > * gTrackID
std::vector< double > * gy_st1
std::vector< int > * hitID
std::vector< int > * elementID
void set_branch_name(const std::string &branchName)
std::vector< int > * detectorID
int SyncIt(const SyncObject *mastersync)
std::vector< double > * driftDistance
std::vector< int > * hitTrackID
std::vector< double > * gvx
std::vector< double > * gpz_st3
std::vector< double > * gz_st3
std::vector< double > * gy_st3
std::vector< double > * gpy_st1
const std::string & get_branch_name() const
int fileopen(const std::string &filename)
std::vector< double > * gpz
void set_tree_name(const std::string &treeName)
std::vector< double > * gz_st1
std::vector< double > * gpy_st3
const std::string & get_tree_name() const
std::vector< double > * gvz
std::vector< double > * gpy
std::vector< double > * tdcTime
int run(const int nevents=0)
int GetSyncObject(SyncObject **mastersync)
std::vector< double > * gpx
std::vector< double > * gx_st1
std::vector< double > * gvy
std::vector< double > * gpx_st1
void Print(const std::string &what="ALL") const
std::vector< int > * gCharge
Fun4AllRUSInputManager(const std::string &name="DUMMY", const std::string &topnodename="TOP")
std::vector< double > * gpz_st1
std::vector< double > * gx_st3
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
An SQ interface class to hold a list of SQSpill objects.
Definition: SQSpillMap.h:19
An SQ interface class to hold a list of SQTrack objects.
Definition: SQTrackVector.h:19