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