CGEM BOSS 6.6.5.h
BESIII Offline Software System
Loading...
Searching...
No Matches
TDigiEvent.h
Go to the documentation of this file.
1#ifndef ROOT_TDigiEvent_H
2#define ROOT_TDigiEvent_H
3
4#include "TObject.h"
5#include "TClonesArray.h"
6#include "TObjArray.h"
7
8#include "TMdcDigi.h"
9#include "TCgemDigi.h"
10#include "TEmcDigi.h"
11#include "TTofDigi.h"
12#include "TMucDigi.h"
13#include "TLumiDigi.h"
14
15class TDigiEvent: public TObject {
16public:
17
18 TDigiEvent();
19 virtual ~TDigiEvent();
20
21 void initialize( Bool_t fromMc=true);
22
23 void Clear(Option_t *option="");
24
25 void Print(Option_t *option="") const;
26
27
28 inline Bool_t getFromMc() { return m_fromMc; };
29
30
31 /// retrieve the whole TObjArray of TkrDigi Data
32 const TObjArray* getMdcDigiCol() const { return m_mdcDigiCol; };
33
34 /// Add a TkrDigi into the TKR data collection
35 void addMdcDigi(TMdcDigi *digi);
36
37 /// retrieve a TkrDigi from the collection, using the index into the array
38 const TMdcDigi* getMdcDigi(Int_t i) const;
39
40 /// clear the whole array (necessary because of the consts-s)
41 void clearMdcDigiCol() { m_mdcDigiCol->Clear(); }
42
43 /// retrieve the whole TObjArray of TkrDigi Data
44 const TObjArray* getCgemDigiCol() const { return m_cgemDigiCol; };
45
46 /// Add a TkrDigi into the TKR data collection
47 void addCgemDigi(TCgemDigi *digi);
48
49 /// retrieve a TkrDigi from the collection, using the index into the array
50 const TCgemDigi* getCgemDigi(Int_t i) const;
51
52 /// clear the whole array (necessary because of the consts-s)
53 void clearCgemDigiCol() { m_cgemDigiCol->Clear(); }
54
55
56 /// retrieve the whole TObjArray of TkrDigi Data
57 const TObjArray* getEmcDigiCol() const { return m_emcDigiCol; };
58
59 /// Add a TkrDigi into the TKR data collection
60 void addEmcDigi(TEmcDigi *digi);
61
62 /// retrieve a EmcDigi from the collection, using the index into the array
63 const TEmcDigi* getEmcDigi(Int_t i) const;
64
65 /// clear the whole array (necessary because of the consts-s)
66 void clearEmcDigiCol() { m_emcDigiCol->Clear(); }
67
68 /// retrieve the whole TObjArray of TofDigi Data
69 const TObjArray* getTofDigiCol() const { return m_tofDigiCol; };
70
71 ///Add a TofDigi into the TOF Data collection
72 void addTofDigi(TTofDigi * digi);
73
74 /// retrieve a TofDigi From the collection, using the index into the array
75 const TTofDigi* getTofDigi(Int_t i) const;
76
77 /// clear the whole array
78 void clearTofDigiCol() { m_tofDigiCol->Clear();}
79
80 /// retrieve the whole TObjArray of MucDigi Data
81 const TObjArray* getMucDigiCol() const { return m_mucDigiCol; };
82
83 ///Add a MucDigi into the MUC Data collection
84 void addMucDigi(TMucDigi * digi);
85
86 /// retrieve a MucDigi From the collection, using the index into the array
87 const TMucDigi* getMucDigi(Int_t i) const;
88
89 /// clear the whole array
90 void clearMucDigiCol() { m_mucDigiCol->Clear();}
91
92 /// retrieve the whole TObjArray of LumiDigi Data
93 const TObjArray* getLumiDigiCol() const { return m_lumiDigiCol; };
94
95 ///Add a LumiDigi into the MUC Data collection
96 void addLumiDigi(TLumiDigi * digi);
97
98 /// retrieve a LumiDigi From the collection, using the index into the array
99 const TLumiDigi* getLumiDigi(Int_t i) const;
100
101 /// clear the whole array
102 void clearLumiDigiCol() { m_lumiDigiCol->Clear();}
103
104private:
105
106
107 /// Denote whether or not this data was simulated
108 Bool_t m_fromMc;
109
110 /// data members to store Mdc data
111 static TObjArray *s_staticMdcDigiCol;
112 TObjArray* m_mdcDigiCol; //->
113
114 /// data members to store Cgem data
115 static TObjArray *s_staticCgemDigiCol;
116 TObjArray* m_cgemDigiCol; //->
117
118 /// data members to store Emc data
119 static TObjArray *s_staticEmcDigiCol;
120 TObjArray* m_emcDigiCol; //->
121
122 /// data members to store Tof data
123 static TObjArray * s_staticTofDigiCol;
124 TObjArray* m_tofDigiCol; //->
125
126 /// data members to store Muc data
127 static TObjArray * s_staticMucDigiCol;
128 TObjArray* m_mucDigiCol; //->
129
130 /// data members to store Lumi data
131 static TObjArray * s_staticLumiDigiCol;
132 TObjArray* m_lumiDigiCol; //->
133
134
135 ClassDef(TDigiEvent,6) // Storage for Raw(Digi) event and subsystem data
136};
137
138#endif
const TObjArray * getMucDigiCol() const
retrieve the whole TObjArray of MucDigi Data
Definition TDigiEvent.h:81
void addMucDigi(TMucDigi *digi)
Add a MucDigi into the MUC Data collection.
void addEmcDigi(TEmcDigi *digi)
Add a TkrDigi into the TKR data collection.
void clearLumiDigiCol()
clear the whole array
Definition TDigiEvent.h:102
const TMucDigi * getMucDigi(Int_t i) const
retrieve a MucDigi From the collection, using the index into the array
virtual ~TDigiEvent()
void Print(Option_t *option="") const
void clearMdcDigiCol()
clear the whole array (necessary because of the consts-s)
Definition TDigiEvent.h:41
void initialize(Bool_t fromMc=true)
const TObjArray * getMdcDigiCol() const
retrieve the whole TObjArray of TkrDigi Data
Definition TDigiEvent.h:32
void Clear(Option_t *option="")
const TMdcDigi * getMdcDigi(Int_t i) const
retrieve a TkrDigi from the collection, using the index into the array
void addTofDigi(TTofDigi *digi)
Add a TofDigi into the TOF Data collection.
const TEmcDigi * getEmcDigi(Int_t i) const
retrieve a EmcDigi from the collection, using the index into the array
void clearEmcDigiCol()
clear the whole array (necessary because of the consts-s)
Definition TDigiEvent.h:66
void clearMucDigiCol()
clear the whole array
Definition TDigiEvent.h:90
void addMdcDigi(TMdcDigi *digi)
Add a TkrDigi into the TKR data collection.
const TLumiDigi * getLumiDigi(Int_t i) const
retrieve a LumiDigi From the collection, using the index into the array
void addLumiDigi(TLumiDigi *digi)
Add a LumiDigi into the MUC Data collection.
const TCgemDigi * getCgemDigi(Int_t i) const
retrieve a TkrDigi from the collection, using the index into the array
const TObjArray * getLumiDigiCol() const
retrieve the whole TObjArray of LumiDigi Data
Definition TDigiEvent.h:93
void clearCgemDigiCol()
clear the whole array (necessary because of the consts-s)
Definition TDigiEvent.h:53
void clearTofDigiCol()
clear the whole array
Definition TDigiEvent.h:78
const TTofDigi * getTofDigi(Int_t i) const
retrieve a TofDigi From the collection, using the index into the array
const TObjArray * getTofDigiCol() const
retrieve the whole TObjArray of TofDigi Data
Definition TDigiEvent.h:69
const TObjArray * getEmcDigiCol() const
retrieve the whole TObjArray of TkrDigi Data
Definition TDigiEvent.h:57
const TObjArray * getCgemDigiCol() const
retrieve the whole TObjArray of TkrDigi Data
Definition TDigiEvent.h:44
void addCgemDigi(TCgemDigi *digi)
Add a TkrDigi into the TKR data collection.
Bool_t getFromMc()
Definition TDigiEvent.h:28