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