BOSS 6.6.4.p03
BESIII Offline Software System
Loading...
Searching...
No Matches
TDstEvent.h
Go to the documentation of this file.
1#ifndef ROOT_TDstEvent_H
2#define ROOT_TDstEvent_H 1
3
4#include "TObject.h"
5#include "TClonesArray.h"
6#include "TObjArray.h"
7
8#include "TMdcTrack.h"
9#include "TEmcTrack.h"
10#include "TTofTrack.h"
11#include "TMucTrack.h"
12#include "TMdcDedx.h"
13#include "TExtTrack.h"
14#include "TMdcKalTrack.h"
15
16class TDstEvent : public TObject {
17
18public:
19
20 TDstEvent();
21 virtual ~TDstEvent();
22
23 void initialize();
24
25 void Clear(Option_t *option="");
26
27 void Print(Option_t *option="") const;
28
29
30 // inline Bool_t getFromMc() { return m_fromMc; };
31
32
33 // ********************* Dst Track ******************************/
34
35 /// retrieve the whole TObjArray of MdcTrack Data
36 const TObjArray* getMdcTrackCol() const { return m_mdcTrackCol; };
37
38 /// Add a TkrTrack into the Mdc data collection
40
41 /// retrieve a MdcTrack from the collection, using the index into the array
42 const TMdcTrack* getMdcTrack(Int_t i) const;
43
44 /// clear the whole array (necessary because of the consts-s)
45 void clearMdcTrackCol() { m_mdcTrackCol->Clear(); }
46
47 /// retrieve the whole TObjArray of EmcTrack Data
48 const TObjArray* getEmcTrackCol() const { return m_emcTrackCol; };
49
50 /// Add a TkrTrack into the Emc data collection
52
53 /// retrieve a EmcTrack from the collection, using the index into the array
54 const TEmcTrack* getEmcTrack(Int_t i) const;
55
56 /// clear the whole array (necessary because of the consts-s)
57 void clearEmcTrackCol() { m_emcTrackCol->Clear(); }
58
59 /// retrieve the whole TObjArray of TofTrack Data
60 const TObjArray* getTofTrackCol() const { return m_tofTrackCol; };
61
62 ///Add a TofTrack into the TOF Data collection
64
65 /// retrieve a TofTrack From the collection, using the index into the array
66 const TTofTrack* getTofTrack(Int_t i) const;
67
68 /// clear the whole array
69 void clearTofTrackCol() { m_tofTrackCol->Clear();}
70
71 /// retrieve the whole TObjArray of MucTrack Data
72 const TObjArray* getMucTrackCol() const { return m_mucTrackCol; };
73
74 ///Add a MucTrack into the TOF Data collection
76
77 /// retrieve a MucTrack From the collection, using the index into the array
78 const TMucTrack* getMucTrack(Int_t i) const;
79
80 /// clear the whole array
81 void clearMucTrackCol() { m_mucTrackCol->Clear();}
82
83 /// retrieve the whole TObjArray of Dedx Data
84 const TObjArray* getMdcDedxCol() const { return m_mdcDedxCol; };
85
86 ///Add a Dedx into the TOF Data collection
88
89 /// retrieve a TofTrack From the collection, using the index into the array
90 const TMdcDedx* getMdcDedx(Int_t i) const;
91
92 /// clear the whole array
93 void clearMdcDedxCol() { m_mdcDedxCol->Clear();}
94
95 /// retrieve the whole TObjArray of Ext Data
96 const TObjArray* getExtTrackCol() const { return m_extTrackCol; };
97
98 ///Add a ExtTrack into the Ext Data collection
100
101 /// retrieve a MucTrack From the collection, using the index into the array
102 const TExtTrack* getExtTrack(Int_t i) const;
103
104 /// clear the whole array
105 void clearExtTrackCol() { m_extTrackCol->Clear();}
106
107 // TObjArray of MdcKal Data
108 const TObjArray* getMdcKalTrackCol() const { return m_mdcKalTrackCol; };
110 const TMdcKalTrack* getMdcKalTrack(Int_t i) const;
111 void clearMdcKalTrackCol() { m_mdcKalTrackCol->Clear();}
112
113private:
114
115
116 /// data members to store Emc track data
117 static TObjArray * s_staticEmcTrackCol;
118 TObjArray* m_emcTrackCol; //->
119
120 /// data members to store Mdc data
121 static TObjArray *s_staticMdcTrackCol;
122 TObjArray* m_mdcTrackCol; //->
123
124 /// data members to store Tof data
125 static TObjArray * s_staticTofTrackCol;
126 TObjArray* m_tofTrackCol; //->
127
128 /// data members to store Muc data
129 static TObjArray *s_staticMucTrackCol;
130 TObjArray* m_mucTrackCol; //->
131
132 /// data members to store Dedx data
133 static TObjArray * s_staticMdcDedxCol;
134 TObjArray* m_mdcDedxCol; //->
135
136 /// data members to store Ext data
137 static TObjArray * s_staticExtTrackCol;
138 TObjArray* m_extTrackCol; //->
139
140 /// data members to store MdcKal data
141 static TObjArray * s_staticMdcKalTrackCol;
142 TObjArray* m_mdcKalTrackCol; //->
143
144 ClassDef(TDstEvent,6)
145
146};
147
148#endif
#define Track
Definition: TTrackBase.h:30
void addMdcTrack(TMdcTrack *Track)
Add a TkrTrack into the Mdc data collection.
Definition: TDstEvent.cxx:120
const TMdcDedx * getMdcDedx(Int_t i) const
retrieve a TofTrack From the collection, using the index into the array
Definition: TDstEvent.cxx:168
const TObjArray * getMdcDedxCol() const
retrieve the whole TObjArray of Dedx Data
Definition: TDstEvent.h:84
void addEmcTrack(TEmcTrack *Track)
Add a TkrTrack into the Emc data collection.
Definition: TDstEvent.cxx:130
void clearMdcTrackCol()
clear the whole array (necessary because of the consts-s)
Definition: TDstEvent.h:45
void initialize()
Definition: TDstEvent.cxx:104
const TObjArray * getEmcTrackCol() const
retrieve the whole TObjArray of EmcTrack Data
Definition: TDstEvent.h:48
const TEmcTrack * getEmcTrack(Int_t i) const
retrieve a EmcTrack from the collection, using the index into the array
Definition: TDstEvent.cxx:134
void clearMdcDedxCol()
clear the whole array
Definition: TDstEvent.h:93
void addExtTrack(TExtTrack *Track)
Add a ExtTrack into the Ext Data collection.
Definition: TDstEvent.cxx:175
void clearMucTrackCol()
clear the whole array
Definition: TDstEvent.h:81
void clearMdcKalTrackCol()
Definition: TDstEvent.h:111
const TObjArray * getMdcKalTrackCol() const
Definition: TDstEvent.h:108
void clearEmcTrackCol()
clear the whole array (necessary because of the consts-s)
Definition: TDstEvent.h:57
void addMdcKalTrack(TMdcKalTrack *Track)
Definition: TDstEvent.cxx:186
void addMucTrack(TMucTrack *Track)
Add a MucTrack into the TOF Data collection.
Definition: TDstEvent.cxx:152
void clearExtTrackCol()
clear the whole array
Definition: TDstEvent.h:105
void Print(Option_t *option="") const
Definition: TDstEvent.cxx:113
const TObjArray * getMucTrackCol() const
retrieve the whole TObjArray of MucTrack Data
Definition: TDstEvent.h:72
const TExtTrack * getExtTrack(Int_t i) const
retrieve a MucTrack From the collection, using the index into the array
Definition: TDstEvent.cxx:179
void addMdcDedx(TMdcDedx *Track)
Add a Dedx into the TOF Data collection.
Definition: TDstEvent.cxx:163
const TMdcKalTrack * getMdcKalTrack(Int_t i) const
Definition: TDstEvent.cxx:190
void clearTofTrackCol()
clear the whole array
Definition: TDstEvent.h:69
virtual ~TDstEvent()
Definition: TDstEvent.cxx:62
const TTofTrack * getTofTrack(Int_t i) const
retrieve a TofTrack From the collection, using the index into the array
Definition: TDstEvent.cxx:146
const TMucTrack * getMucTrack(Int_t i) const
retrieve a MucTrack From the collection, using the index into the array
Definition: TDstEvent.cxx:157
const TMdcTrack * getMdcTrack(Int_t i) const
retrieve a MdcTrack from the collection, using the index into the array
Definition: TDstEvent.cxx:124
const TObjArray * getTofTrackCol() const
retrieve the whole TObjArray of TofTrack Data
Definition: TDstEvent.h:60
const TObjArray * getExtTrackCol() const
retrieve the whole TObjArray of Ext Data
Definition: TDstEvent.h:96
const TObjArray * getMdcTrackCol() const
retrieve the whole TObjArray of MdcTrack Data
Definition: TDstEvent.h:36
void Clear(Option_t *option="")
Definition: TDstEvent.cxx:108
void addTofTrack(TTofTrack *Track)
Add a TofTrack into the TOF Data collection.
Definition: TDstEvent.cxx:141