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