BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
TDstEvent Class Reference

#include <TDstEvent.h>

+ Inheritance diagram for TDstEvent:

Public Member Functions

 TDstEvent ()
 
virtual ~TDstEvent ()
 
void initialize ()
 
void Clear (Option_t *option="")
 
void Print (Option_t *option="") const
 
const TObjArray * getMdcTrackCol () const
 retrieve the whole TObjArray of MdcTrack Data
 
void addMdcTrack (TMdcTrack *Track)
 Add a TkrTrack into the Mdc data collection.
 
const TMdcTrackgetMdcTrack (Int_t i) const
 retrieve a MdcTrack from the collection, using the index into the array
 
void clearMdcTrackCol ()
 clear the whole array (necessary because of the consts-s)
 
const TObjArray * getEmcTrackCol () const
 retrieve the whole TObjArray of EmcTrack Data
 
void addEmcTrack (TEmcTrack *Track)
 Add a TkrTrack into the Emc data collection.
 
const TEmcTrackgetEmcTrack (Int_t i) const
 retrieve a EmcTrack from the collection, using the index into the array
 
void clearEmcTrackCol ()
 clear the whole array (necessary because of the consts-s)
 
const TObjArray * getTofTrackCol () const
 retrieve the whole TObjArray of TofTrack Data
 
void addTofTrack (TTofTrack *Track)
 Add a TofTrack into the TOF Data collection.
 
const TTofTrackgetTofTrack (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 (TMucTrack *Track)
 Add a MucTrack into the TOF Data collection.
 
const TMucTrackgetMucTrack (Int_t i) const
 retrieve a MucTrack From the collection, using the index into the array
 
void clearMucTrackCol ()
 clear the whole array
 
const TObjArray * getMdcDedxCol () const
 retrieve the whole TObjArray of Dedx Data
 
void addMdcDedx (TMdcDedx *Track)
 Add a Dedx into the TOF Data collection.
 
const TMdcDedxgetMdcDedx (Int_t i) const
 retrieve a TofTrack From the collection, using the index into the array
 
void clearMdcDedxCol ()
 clear the whole array
 
const TObjArray * getExtTrackCol () const
 retrieve the whole TObjArray of Ext Data
 
void addExtTrack (TExtTrack *Track)
 Add a ExtTrack into the Ext Data collection.
 
const TExtTrackgetExtTrack (Int_t i) const
 retrieve a MucTrack From the collection, using the index into the array
 
void clearExtTrackCol ()
 clear the whole array
 
const TObjArray * getMdcKalTrackCol () const
 
void addMdcKalTrack (TMdcKalTrack *Track)
 
const TMdcKalTrackgetMdcKalTrack (Int_t i) const
 
void clearMdcKalTrackCol ()
 

Detailed Description

Definition at line 16 of file TDstEvent.h.

Constructor & Destructor Documentation

◆ TDstEvent()

TDstEvent::TDstEvent ( )

Definition at line 17 of file TDstEvent.cxx.

18{
19 //Dst Track
20
21 if (!s_staticMdcTrackCol) {
22 s_staticMdcTrackCol = new TObjArray();
23 }
24 m_mdcTrackCol = s_staticMdcTrackCol;
25
26 if (!s_staticEmcTrackCol ){
27 s_staticEmcTrackCol = new TObjArray();
28 }
29 m_emcTrackCol = s_staticEmcTrackCol;
30
31 if (! s_staticTofTrackCol ){
32 s_staticTofTrackCol = new TObjArray();
33 }
34 m_tofTrackCol = s_staticTofTrackCol;
35
36 if (! s_staticMucTrackCol ){
37 s_staticMucTrackCol = new TObjArray();
38 }
39 m_mucTrackCol = s_staticMucTrackCol;
40
41 if (! s_staticMdcDedxCol ){
42 s_staticMdcDedxCol = new TObjArray();
43 }
44 m_mdcDedxCol = s_staticMdcDedxCol;
45
46 if (! s_staticExtTrackCol ){
47 s_staticExtTrackCol = new TObjArray();
48 }
49 m_extTrackCol = s_staticExtTrackCol;
50
51
52 if (! s_staticMdcKalTrackCol ){
53 s_staticMdcKalTrackCol = new TObjArray();
54 }
55 m_mdcKalTrackCol = s_staticMdcKalTrackCol;
56
57 Clear();
58
59}
void Clear(Option_t *option="")

◆ ~TDstEvent()

TDstEvent::~TDstEvent ( )
virtual

Definition at line 62 of file TDstEvent.cxx.

62 {
63
64 /**************************** Dst Track *************************/
65 if(m_mdcTrackCol == s_staticMdcTrackCol) s_staticMdcTrackCol = 0;
66 m_mdcTrackCol->Delete();
67 delete m_mdcTrackCol;
68 m_mdcTrackCol = 0;
69
70 if(m_emcTrackCol == s_staticEmcTrackCol) s_staticEmcTrackCol = 0;
71 m_emcTrackCol->Delete();
72 delete m_emcTrackCol;
73 m_emcTrackCol = 0;
74
75 if(m_tofTrackCol == s_staticTofTrackCol ) s_staticTofTrackCol = 0;
76 m_tofTrackCol->Delete();
77 delete m_tofTrackCol;
78 m_tofTrackCol = 0;
79
80 if(m_mucTrackCol == s_staticMucTrackCol ) s_staticMucTrackCol = 0;
81 m_mucTrackCol->Delete();
82 delete m_mucTrackCol;
83 m_mucTrackCol = 0;
84
85 if(m_mdcDedxCol == s_staticMdcDedxCol ) s_staticMdcDedxCol = 0;
86 m_mdcDedxCol->Delete();
87 delete m_mdcDedxCol;
88 m_mdcDedxCol = 0;
89
90 if(m_extTrackCol == s_staticExtTrackCol ) s_staticExtTrackCol = 0;
91 m_extTrackCol->Delete();
92 delete m_extTrackCol;
93 m_extTrackCol = 0;
94
95 if(m_mdcKalTrackCol == s_staticMdcKalTrackCol ) s_staticMdcKalTrackCol = 0;
96 m_mdcKalTrackCol->Delete();
97 delete m_mdcKalTrackCol;
98 m_mdcKalTrackCol = 0;
99
100
101}

Member Function Documentation

◆ addEmcTrack()

void TDstEvent::addEmcTrack ( TEmcTrack * Track)

Add a TkrTrack into the Emc data collection.

Emc.

Definition at line 130 of file TDstEvent.cxx.

130 {
131 m_emcTrackCol->Add(Track);
132}
#define Track
Definition TTrackBase.h:30

Referenced by EmcTrackCnv::DataObjectToTObject().

◆ addExtTrack()

void TDstEvent::addExtTrack ( TExtTrack * Track)

Add a ExtTrack into the Ext Data collection.

Definition at line 175 of file TDstEvent.cxx.

175 {
176 m_extTrackCol->Add(Track);
177}

Referenced by ExtTrackCnv::DataObjectToTObject().

◆ addMdcDedx()

void TDstEvent::addMdcDedx ( TMdcDedx * Track)

Add a Dedx into the TOF Data collection.

Dedx.

Definition at line 163 of file TDstEvent.cxx.

163 {
164 m_mdcDedxCol->Add(Track);
165}

Referenced by MdcDedxCnv::DataObjectToTObject().

◆ addMdcKalTrack()

void TDstEvent::addMdcKalTrack ( TMdcKalTrack * Track)

Definition at line 186 of file TDstEvent.cxx.

186 {
187 m_mdcKalTrackCol->Add(Track);
188}

Referenced by MdcKalTrackCnv::DataObjectToTObject().

◆ addMdcTrack()

void TDstEvent::addMdcTrack ( TMdcTrack * Track)

Add a TkrTrack into the Mdc data collection.

Mdc.

Definition at line 120 of file TDstEvent.cxx.

120 {
121 m_mdcTrackCol->Add(Track);
122}

Referenced by MdcTrackCnv::DataObjectToTObject().

◆ addMucTrack()

void TDstEvent::addMucTrack ( TMucTrack * Track)

Add a MucTrack into the TOF Data collection.

Muc.

Definition at line 152 of file TDstEvent.cxx.

152 {
153 m_mucTrackCol->Add(Track);
154}

Referenced by MucTrackCnv::DataObjectToTObject().

◆ addTofTrack()

void TDstEvent::addTofTrack ( TTofTrack * Track)

Add a TofTrack into the TOF Data collection.

Tof.

Definition at line 141 of file TDstEvent.cxx.

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

Referenced by TofTrackCnv::DataObjectToTObject().

◆ Clear()

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

Definition at line 108 of file TDstEvent.cxx.

108 {
109
110}

Referenced by TDstEvent().

◆ clearEmcTrackCol()

void TDstEvent::clearEmcTrackCol ( )
inline

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

Definition at line 57 of file TDstEvent.h.

57{ m_emcTrackCol->Clear(); }

Referenced by EmcTrackCnv::DataObjectToTObject().

◆ clearExtTrackCol()

void TDstEvent::clearExtTrackCol ( )
inline

clear the whole array

Definition at line 105 of file TDstEvent.h.

105{ m_extTrackCol->Clear();}

Referenced by ExtTrackCnv::DataObjectToTObject().

◆ clearMdcDedxCol()

void TDstEvent::clearMdcDedxCol ( )
inline

clear the whole array

Definition at line 93 of file TDstEvent.h.

93{ m_mdcDedxCol->Clear();}

Referenced by MdcDedxCnv::DataObjectToTObject().

◆ clearMdcKalTrackCol()

void TDstEvent::clearMdcKalTrackCol ( )
inline

Definition at line 111 of file TDstEvent.h.

111{ m_mdcKalTrackCol->Clear();}

Referenced by MdcKalTrackCnv::DataObjectToTObject().

◆ clearMdcTrackCol()

void TDstEvent::clearMdcTrackCol ( )
inline

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

Definition at line 45 of file TDstEvent.h.

45{ m_mdcTrackCol->Clear(); }

Referenced by MdcTrackCnv::DataObjectToTObject().

◆ clearMucTrackCol()

void TDstEvent::clearMucTrackCol ( )
inline

clear the whole array

Definition at line 81 of file TDstEvent.h.

81{ m_mucTrackCol->Clear();}

Referenced by MucTrackCnv::DataObjectToTObject().

◆ clearTofTrackCol()

void TDstEvent::clearTofTrackCol ( )
inline

clear the whole array

Definition at line 69 of file TDstEvent.h.

69{ m_tofTrackCol->Clear();}

Referenced by TofTrackCnv::DataObjectToTObject().

◆ getEmcTrack()

const TEmcTrack * TDstEvent::getEmcTrack ( Int_t i) const

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

Definition at line 134 of file TDstEvent.cxx.

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

Referenced by BesClient::GetEvent().

◆ getEmcTrackCol()

const TObjArray * TDstEvent::getEmcTrackCol ( ) const
inline

retrieve the whole TObjArray of EmcTrack Data

Definition at line 48 of file TDstEvent.h.

48{ return m_emcTrackCol; };

Referenced by EmcTrackCnv::DataObjectToTObject(), and BesClient::GetEvent().

◆ getExtTrack()

const TExtTrack * TDstEvent::getExtTrack ( Int_t i) const

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

Definition at line 179 of file TDstEvent.cxx.

179 {
180 if(Int_t(i) >=m_extTrackCol->GetEntries())
181 return 0;
182 return (TExtTrack*) m_extTrackCol->At(i);
183}

◆ getExtTrackCol()

const TObjArray * TDstEvent::getExtTrackCol ( ) const
inline

retrieve the whole TObjArray of Ext Data

Definition at line 96 of file TDstEvent.h.

96{ return m_extTrackCol; };

Referenced by ExtTrackCnv::DataObjectToTObject().

◆ getMdcDedx()

const TMdcDedx * TDstEvent::getMdcDedx ( Int_t i) const

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

Definition at line 168 of file TDstEvent.cxx.

168 {
169 if(Int_t(i) >=m_mdcDedxCol->GetEntries())
170 return 0;
171 return (TMdcDedx*) m_mdcDedxCol->At(i);
172}

◆ getMdcDedxCol()

const TObjArray * TDstEvent::getMdcDedxCol ( ) const
inline

retrieve the whole TObjArray of Dedx Data

Definition at line 84 of file TDstEvent.h.

84{ return m_mdcDedxCol; };

Referenced by MdcDedxCnv::DataObjectToTObject().

◆ getMdcKalTrack()

const TMdcKalTrack * TDstEvent::getMdcKalTrack ( Int_t i) const

Definition at line 190 of file TDstEvent.cxx.

190 {
191 if(Int_t(i) >=m_mdcKalTrackCol->GetEntries())
192 return 0;
193 return (TMdcKalTrack*) m_mdcKalTrackCol->At(i);
194}

◆ getMdcKalTrackCol()

const TObjArray * TDstEvent::getMdcKalTrackCol ( ) const
inline

Definition at line 108 of file TDstEvent.h.

108{ return m_mdcKalTrackCol; };

Referenced by MdcKalTrackCnv::DataObjectToTObject().

◆ getMdcTrack()

const TMdcTrack * TDstEvent::getMdcTrack ( Int_t i) const

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

Definition at line 124 of file TDstEvent.cxx.

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

Referenced by BesClient::GetEvent().

◆ getMdcTrackCol()

const TObjArray * TDstEvent::getMdcTrackCol ( ) const
inline

retrieve the whole TObjArray of MdcTrack Data

Definition at line 36 of file TDstEvent.h.

36{ return m_mdcTrackCol; };

Referenced by MdcTrackCnv::DataObjectToTObject(), and BesClient::GetEvent().

◆ getMucTrack()

const TMucTrack * TDstEvent::getMucTrack ( Int_t i) const

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

Definition at line 157 of file TDstEvent.cxx.

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

Referenced by BesClient::GetEvent().

◆ getMucTrackCol()

const TObjArray * TDstEvent::getMucTrackCol ( ) const
inline

retrieve the whole TObjArray of MucTrack Data

Definition at line 72 of file TDstEvent.h.

72{ return m_mucTrackCol; };

Referenced by MucTrackCnv::DataObjectToTObject(), and BesClient::GetEvent().

◆ getTofTrack()

const TTofTrack * TDstEvent::getTofTrack ( Int_t i) const

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

Definition at line 146 of file TDstEvent.cxx.

146 {
147 if(Int_t(i) >=m_tofTrackCol->GetEntries())
148 return 0;
149 return (TTofTrack*) m_tofTrackCol->At(i);
150}

Referenced by BesClient::GetEvent().

◆ getTofTrackCol()

const TObjArray * TDstEvent::getTofTrackCol ( ) const
inline

retrieve the whole TObjArray of TofTrack Data

Definition at line 60 of file TDstEvent.h.

60{ return m_tofTrackCol; };

Referenced by TofTrackCnv::DataObjectToTObject(), and BesClient::GetEvent().

◆ initialize()

void TDstEvent::initialize ( )

Definition at line 104 of file TDstEvent.cxx.

104 {
105}

Referenced by DstCnv::DataObjectToTObject().

◆ Print()

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

Definition at line 113 of file TDstEvent.cxx.

113 {
114 TObject::Print(option);
115}

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