BOSS 6.6.4.p01
BESIII Offline Software System
Loading...
Searching...
No Matches
TDisTrack Class Reference

#include <TDisTrack.h>

+ Inheritance diagram for TDisTrack:

Public Member Functions

 TDisTrack ()
 
virtual ~TDisTrack ()
 
void initialize ()
 
void Clear (Option_t *option="")
 
void Print (Option_t *option="") const
 
const TObjArray * getRecMdcTrackCol () const
 retrieve the whole TObjArray of RecMdcTrack Data
 
void addRecMdcTrack (TRecMdcTrack *Track)
 Add a TkrTrack into the Mdc data collection.
 
const TRecMdcTrackgetRecMdcTrack (Int_t i) const
 retrieve a MdcTrack from the collection, using the index into the array
 
void clearRecMdcTrackCol ()
 clear the whole array (necessary because of the consts-s)
 
const TObjArray * getRecMdcHitCol () const
 retrieve the whole TObjArray of RecMdcHit Data
 
void addRecMdcHit (TRecMdcHit *Hit)
 Add a Rec Mdc Hit into the Mdc data collection.
 
const TRecMdcHitgetRecMdcHit (Int_t i) const
 retrieve a RecMdcHit from the collection, using the index into the array
 
void clearRecMdcHitCol ()
 clear the whole array (necessary because of the consts-s)
 
const TObjArray * getTofTrackCol () const
 retrieve the whole TObjArray of TofTrack Data

 
void addTofTrack (TRecTofTrack *Track)
 
const TRecTofTrackgetTofTrack (Int_t i) const
 retrieve a TofTrack From the collection, using the index into the array
 
void clearTofTrackCol ()
 clear the whole array
 
const TObjArray * getMucTrackCol () const
 retrieve the whole TObjArray of MucTrack Data
 
void addMucTrack (TRecMucTrack *Track)
 Add a MucTrack into the TOF Data collection.
 
const TRecMucTrackgetMucTrack (Int_t i) const
 retrieve a MucTrack From the collection, using the index into the array
 
void clearMucTrackCol ()
 clear the whole array
 
int getMdcTrackNum ()
 
int getTofTrackNum ()
 
int getEmcShowerNum ()
 
int getMucTrackNum ()
 
int getMdcHitNum ()
 
const TObjArray * getEmcShowerCol () const
 retrieve the whole TObjArray of EmcShower Data
 
void addEmcShower (TRecEmcShower *Track)
 Add a TkrTrack into the Emc data collection.
 
const TRecEmcShowergetEmcShower (Int_t i) const
 retrieve a EmcShower from the collection, using the index into the array
 
void clearEmcShowerCol ()
 clear the whole array (necessary because of the consts-s)
 

Detailed Description

Definition at line 12 of file TDisTrack.h.

Constructor & Destructor Documentation

◆ TDisTrack()

TDisTrack::TDisTrack ( )

◆ ~TDisTrack()

TDisTrack::~TDisTrack ( )
virtual

Definition at line 30 of file TDisTrack.cxx.

30 {
31
32
33 /**************************** Dst Track *************************/
34
35 // delete m_recMdcTrackCol;
36 if(m_recMdcTrackCol){ //m_recMdcTrackCol->Clear();
37 m_recMdcTrackCol->Delete();
38 delete m_recMdcTrackCol;}
39 m_recMdcTrackCol = 0;
40
41 if(m_recMdcHitCol){ //m_recMdcHitCol->Clear();
42 m_recMdcHitCol->Delete();
43 delete m_recMdcHitCol;}
44 m_recMdcHitCol = 0;
45
46 if(m_recTofTrackCol){// m_recTofTrackCol->Clear();
47 m_recTofTrackCol->Delete();
48 delete m_recTofTrackCol;}
49 m_recTofTrackCol = 0;
50
51 if(m_recMucTrackCol){ //m_recMucTrackCol->Clear();
52 m_recMucTrackCol->Delete();
53 delete m_recMucTrackCol;}
54 m_recMucTrackCol = 0;
55
56 if(m_recEmcShowerCol){//m_recEmcShowerCol->Clear();
57 m_recEmcShowerCol->Delete();
58 delete m_recEmcShowerCol;}
59 m_recEmcShowerCol =0;
60
61}

Member Function Documentation

◆ addEmcShower()

void TDisTrack::addEmcShower ( TRecEmcShower Track)

Add a TkrTrack into the Emc data collection.

Definition at line 152 of file TDisTrack.cxx.

152 {
153 m_recEmcShowerCol->Add(Track);
154}
#define Track
Definition: TTrackBase.h:30

Referenced by BesClient::GetEvent().

◆ addMucTrack()

void TDisTrack::addMucTrack ( TRecMucTrack Track)

Add a MucTrack into the TOF Data collection.

Muc.

Definition at line 141 of file TDisTrack.cxx.

141 {
142 m_recMucTrackCol->Add(Track);
143 }

Referenced by BesClient::GetEvent().

◆ addRecMdcHit()

void TDisTrack::addRecMdcHit ( TRecMdcHit Hit)

Add a Rec Mdc Hit into the Mdc data collection.

Definition at line 120 of file TDisTrack.cxx.

120 {
121 m_recMdcHitCol->Add(Hit);
122 }

Referenced by BesClient::GetEvent().

◆ addRecMdcTrack()

void TDisTrack::addRecMdcTrack ( TRecMdcTrack Track)

Add a TkrTrack into the Mdc data collection.

Mdc.

Definition at line 109 of file TDisTrack.cxx.

109 {
110 m_recMdcTrackCol->Add(Track);
111 }

Referenced by BesClient::GetEvent().

◆ addTofTrack()

void TDisTrack::addTofTrack ( TRecTofTrack Track)

Definition at line 131 of file TDisTrack.cxx.

131 {
132 m_recTofTrackCol->Add(Track);
133}

Referenced by BesClient::GetEvent().

◆ Clear()

void TDisTrack::Clear ( Option_t *  option = "")

Definition at line 68 of file TDisTrack.cxx.

68 {
69 if(m_recMdcTrackCol){// m_recMdcTrackCol->Clear();
70 std::cout<<"step1"<<std::endl;
71 // m_recMdcTrackCol->Delete();
72 delete m_recMdcTrackCol;}
73 m_recMdcTrackCol = 0;
74
75 if(m_recMdcHitCol){ //m_recMdcHitCol->Clear();
76 std::cout<<"step2"<<std::endl;
77 // m_recMdcHitCol->Delete();
78 delete m_recMdcHitCol;}
79 m_recMdcHitCol = 0;
80
81 if(m_recTofTrackCol){ //m_recTofTrackCol->Clear();
82 std::cout<<"step3"<<std::endl;
83// m_recTofTrackCol->Delete();
84delete m_recTofTrackCol;}
85 m_recTofTrackCol = 0;
86
87 if(m_recMucTrackCol){ //m_recMucTrackCol->Clear();
88 std::cout<<"step4"<<std::endl;
89//; m_recMucTrackCol->Delete();
90 delete m_recMucTrackCol;}
91 m_recMucTrackCol = 0;
92
93 if(m_recEmcShowerCol){//m_recEmcShowerCol->Clear();
94 std::cout<<"step5"<<std::endl;
95// m_recEmcShowerCol->Delete();
96 delete m_recEmcShowerCol;}
97 m_recEmcShowerCol =0;
98
99}

◆ clearEmcShowerCol()

void TDisTrack::clearEmcShowerCol ( )
inline

clear the whole array (necessary because of the consts-s)

Definition at line 126 of file TDisTrack.h.

126{ m_recEmcShowerCol->Clear(); }

◆ clearMucTrackCol()

void TDisTrack::clearMucTrackCol ( )
inline

clear the whole array

Definition at line 69 of file TDisTrack.h.

69{ m_recMucTrackCol->Clear();}

◆ clearRecMdcHitCol()

void TDisTrack::clearRecMdcHitCol ( )
inline

clear the whole array (necessary because of the consts-s)

Definition at line 49 of file TDisTrack.h.

49{ m_recMdcHitCol->Clear(); }

◆ clearRecMdcTrackCol()

void TDisTrack::clearRecMdcTrackCol ( )
inline

clear the whole array (necessary because of the consts-s)

Definition at line 40 of file TDisTrack.h.

40{ m_recMdcTrackCol->Clear(); }

◆ clearTofTrackCol()

void TDisTrack::clearTofTrackCol ( )
inline

clear the whole array

Definition at line 60 of file TDisTrack.h.

60{ m_recTofTrackCol->Clear();}

◆ getEmcShower()

const TRecEmcShower * TDisTrack::getEmcShower ( Int_t  i) const

retrieve a EmcShower from the collection, using the index into the array

Definition at line 157 of file TDisTrack.cxx.

157 {
158 if(Int_t(i) >=m_recEmcShowerCol->GetEntries())
159 return 0;
160 return (TRecEmcShower*) m_recEmcShowerCol->At(i);
161 }

Referenced by BesEvent::GetEmcShower(), and BesEvent::SetEmcShowers().

◆ getEmcShowerCol()

const TObjArray * TDisTrack::getEmcShowerCol ( ) const
inline

retrieve the whole TObjArray of EmcShower Data

Definition at line 117 of file TDisTrack.h.

117{ return m_recEmcShowerCol; };

◆ getEmcShowerNum()

int TDisTrack::getEmcShowerNum ( )

Definition at line 183 of file TDisTrack.cxx.

183 {
184 std::cout<<"getEmcShowerNum step1"<<std::endl;
185 if(m_recEmcShowerCol){
186 std::cout<<"getEmcShowerNum step2"<<std::endl;
187 return m_recEmcShowerCol->GetEntries();
188}
189std::cout<<"getEmcShowerNum step3"<<std::endl;
190 return 0;
191}

Referenced by BesEvent::GetEmcShowerNum(), and BesEvent::SetEmcShowers().

◆ getMdcHitNum()

int TDisTrack::getMdcHitNum ( )

Definition at line 203 of file TDisTrack.cxx.

203 {
204 std::cout<<"getMdcHitkNum step1"<<std::endl;
205 if(m_recMdcHitCol){
206 std::cout<<"getMdcHitkNum step2"<<std::endl;
207 return m_recMdcHitCol->GetEntries();
208}
209 std::cout<<"getMdcHitkNum step3"<<std::endl;
210 return 0;
211}

◆ getMdcTrackNum()

int TDisTrack::getMdcTrackNum ( )

Definition at line 163 of file TDisTrack.cxx.

163 {
164 std::cout<<"getMdcTrackNum step1"<<std::endl;
165 if(m_recMdcTrackCol){
166 std::cout<<"getMdcTrackNum step2"<<std::endl;
167 return m_recMdcTrackCol->GetEntries();
168}
169 std::cout<<"getMdcTrackNum step3"<<std::endl;
170 return 0;
171}

Referenced by BesEvent::GetMdcTrackNum(), and BesEvent::SetMdcTracks().

◆ getMucTrack()

const TRecMucTrack * TDisTrack::getMucTrack ( Int_t  i) const

retrieve a MucTrack From the collection, using the index into the array

Definition at line 145 of file TDisTrack.cxx.

145 {
146 if(Int_t(i) >=m_recMucTrackCol->GetEntries())
147 return 0;
148 return (TRecMucTrack*) m_recMucTrackCol->At(i);
149 }

Referenced by BesEvent::GetMucTrack(), and BesEvent::SetMucTracks().

◆ getMucTrackCol()

const TObjArray * TDisTrack::getMucTrackCol ( ) const
inline

retrieve the whole TObjArray of MucTrack Data

Definition at line 63 of file TDisTrack.h.

63{ return m_recMucTrackCol; };

Referenced by BesEvent::GetMucTrackCol().

◆ getMucTrackNum()

int TDisTrack::getMucTrackNum ( )

Definition at line 193 of file TDisTrack.cxx.

193 {
194 std::cout<<"getMucTrackNum step1"<<std::endl;
195 if(m_recMucTrackCol){
196 std::cout<<"getMucTrackNum step2"<<std::endl;
197 return m_recMucTrackCol->GetEntries();
198}
199 std::cout<<"getMucTrackNum step3"<<std::endl;
200 return 0;
201}

Referenced by BesEvent::GetMucTrackNum(), and BesEvent::SetMucTracks().

◆ getRecMdcHit()

const TRecMdcHit * TDisTrack::getRecMdcHit ( Int_t  i) const

retrieve a RecMdcHit from the collection, using the index into the array

Definition at line 124 of file TDisTrack.cxx.

124 {
125 if (Int_t(i) >= m_recMdcHitCol->GetEntries())
126 return 0;
127 return (TRecMdcHit*)m_recMdcHitCol->At(i);
128 }

◆ getRecMdcHitCol()

const TObjArray * TDisTrack::getRecMdcHitCol ( ) const
inline

retrieve the whole TObjArray of RecMdcHit Data

Definition at line 43 of file TDisTrack.h.

43{ return m_recMdcHitCol; };

Referenced by BesEvent::ConstructMdcTrackFromRec().

◆ getRecMdcTrack()

const TRecMdcTrack * TDisTrack::getRecMdcTrack ( Int_t  i) const

retrieve a MdcTrack from the collection, using the index into the array

Definition at line 113 of file TDisTrack.cxx.

113 {
114 if (Int_t(i) >= m_recMdcTrackCol->GetEntries())
115 return 0;
116 return (TRecMdcTrack*)m_recMdcTrackCol->At(i);
117 }

Referenced by BesEvent::GetMdcTrack(), and BesEvent::SetMdcTracks().

◆ getRecMdcTrackCol()

const TObjArray * TDisTrack::getRecMdcTrackCol ( ) const
inline

retrieve the whole TObjArray of RecMdcTrack Data

Definition at line 31 of file TDisTrack.h.

31{ return m_recMdcTrackCol; };

Referenced by BesEvent::GetMdcTrackCol().

◆ getTofTrack()

const TRecTofTrack * TDisTrack::getTofTrack ( Int_t  i) const

retrieve a TofTrack From the collection, using the index into the array

Definition at line 134 of file TDisTrack.cxx.

134 {
135 if(Int_t(i) >=m_recTofTrackCol->GetEntries())
136 return 0;
137 return (TRecTofTrack*) m_recTofTrackCol->At(i);
138}

Referenced by BesEvent::GetTofTrack(), and BesEvent::SetTofTracks().

◆ getTofTrackCol()

const TObjArray * TDisTrack::getTofTrackCol ( ) const
inline

retrieve the whole TObjArray of TofTrack Data

Definition at line 52 of file TDisTrack.h.

52 {
53 // std::cout<<" in TObjArray* getTofTrackCol()"<<std::endl;
54 return m_recTofTrackCol; };

Referenced by BesEvent::ConstructTofTrackFromRec(), and BesEvent::GetTofTrackCol().

◆ getTofTrackNum()

int TDisTrack::getTofTrackNum ( )

Definition at line 173 of file TDisTrack.cxx.

173 {
174 std::cout<<"getTofTrackNum step1"<<std::endl;
175 if(m_recTofTrackCol){
176 std::cout<<"getTofTrackNum step2"<<std::endl;
177 return m_recTofTrackCol->GetEntries();
178}
179 std::cout<<"getTofTrackNum step3"<<std::endl;
180 return 0;
181}

Referenced by BesEvent::GetTofTrackNum(), and BesEvent::SetTofTracks().

◆ initialize()

void TDisTrack::initialize ( )

Definition at line 64 of file TDisTrack.cxx.

64 {
65}

◆ Print()

void TDisTrack::Print ( Option_t *  option = "") const

Definition at line 102 of file TDisTrack.cxx.

102 {
103 TObject::Print(option);
104}

The documentation for this class was generated from the following files: