#include <TEvtRecObject.h>
Definition at line 15 of file TEvtRecObject.h.
TEvtRecObject::TEvtRecObject | ( | ) |
Definition at line 16 of file TEvtRecObject.cxx.
00017 { 00018 if ( ! s_staticEvtRecEvent ) { 00019 s_staticEvtRecEvent = new TEvtRecEvent; 00020 } 00021 m_evtRecEvent = s_staticEvtRecEvent; 00022 00023 if ( !s_staticEvtRecTrackCol) { 00024 s_staticEvtRecTrackCol = new TObjArray(); 00025 } 00026 m_evtRecTrackCol = s_staticEvtRecTrackCol; 00027 00028 if ( ! s_staticEvtRecPrimaryVertex ) { 00029 s_staticEvtRecPrimaryVertex = new TEvtRecPrimaryVertex(); 00030 } 00031 m_evtRecPrimaryVertex = s_staticEvtRecPrimaryVertex; 00032 00033 if ( ! s_staticEvtRecVeeVertexCol ) { 00034 s_staticEvtRecVeeVertexCol = new TObjArray(); 00035 } 00036 m_evtRecVeeVertexCol = s_staticEvtRecVeeVertexCol; 00037 00038 if ( ! s_staticEvtRecPi0Col ) { 00039 s_staticEvtRecPi0Col = new TObjArray(); 00040 } 00041 m_evtRecPi0Col = s_staticEvtRecPi0Col; 00042 00043 if ( ! s_staticEvtRecEtaToGGCol ) { 00044 s_staticEvtRecEtaToGGCol = new TObjArray(); 00045 } 00046 m_evtRecEtaToGGCol = s_staticEvtRecEtaToGGCol; 00047 00048 if ( ! s_staticEvtRecDTagCol ) { 00049 s_staticEvtRecDTagCol = new TObjArray(); 00050 } 00051 m_evtRecDTagCol = s_staticEvtRecDTagCol; 00052 00053 00054 00055 Clear(); 00056 }
TEvtRecObject::~TEvtRecObject | ( | ) | [virtual] |
Definition at line 58 of file TEvtRecObject.cxx.
References m_evtRecDTagCol, m_evtRecEtaToGGCol, m_evtRecEvent, m_evtRecPi0Col, m_evtRecPrimaryVertex, m_evtRecTrackCol, m_evtRecVeeVertexCol, s_staticEvtRecDTagCol, s_staticEvtRecEtaToGGCol, s_staticEvtRecEvent, s_staticEvtRecPi0Col, s_staticEvtRecPrimaryVertex, s_staticEvtRecTrackCol, and s_staticEvtRecVeeVertexCol.
00058 { 00059 00060 if ( m_evtRecEvent == s_staticEvtRecEvent ) s_staticEvtRecEvent = 0; 00061 delete m_evtRecEvent; 00062 m_evtRecEvent = 0; 00063 00064 if ( m_evtRecTrackCol == s_staticEvtRecTrackCol ) s_staticEvtRecTrackCol = 0; 00065 m_evtRecTrackCol->Delete(); 00066 delete m_evtRecTrackCol; 00067 m_evtRecTrackCol = 0; 00068 00069 if ( m_evtRecPrimaryVertex == s_staticEvtRecPrimaryVertex ) s_staticEvtRecPrimaryVertex = 0; 00070 delete m_evtRecPrimaryVertex; 00071 m_evtRecPrimaryVertex = 0; 00072 00073 if ( m_evtRecVeeVertexCol == s_staticEvtRecVeeVertexCol ) s_staticEvtRecVeeVertexCol = 0; 00074 m_evtRecVeeVertexCol->Delete(); 00075 delete m_evtRecVeeVertexCol; 00076 m_evtRecVeeVertexCol = 0; 00077 00078 if ( m_evtRecPi0Col == s_staticEvtRecPi0Col ) s_staticEvtRecPi0Col = 0; 00079 m_evtRecPi0Col->Delete(); 00080 delete m_evtRecPi0Col; 00081 m_evtRecPi0Col = 0; 00082 00083 if ( m_evtRecEtaToGGCol == s_staticEvtRecEtaToGGCol ) s_staticEvtRecEtaToGGCol = 0; 00084 m_evtRecEtaToGGCol->Delete(); 00085 delete m_evtRecEtaToGGCol; 00086 m_evtRecEtaToGGCol = 0; 00087 00088 if ( m_evtRecDTagCol == s_staticEvtRecDTagCol ) s_staticEvtRecDTagCol = 0; 00089 m_evtRecDTagCol->Delete(); 00090 delete m_evtRecDTagCol; 00091 m_evtRecDTagCol = 0; 00092 00093 }
void TEvtRecObject::addEvtRecDTag | ( | TEvtRecDTag * | dtag | ) |
Definition at line 159 of file TEvtRecObject.cxx.
References m_evtRecDTagCol.
Referenced by EvtRecDTagCnv::DataObjectToTObject().
00159 { 00160 m_evtRecDTagCol->Add(dtag); 00161 }
void TEvtRecObject::addEvtRecEtaToGG | ( | TEvtRecEtaToGG * | eta | ) |
Definition at line 155 of file TEvtRecObject.cxx.
References m_evtRecEtaToGGCol.
Referenced by EvtRecEtaToGGCnv::DataObjectToTObject().
00155 { 00156 m_evtRecEtaToGGCol->Add(eta); 00157 }
void TEvtRecObject::addEvtRecPi0 | ( | TEvtRecPi0 * | pi0 | ) |
Definition at line 150 of file TEvtRecObject.cxx.
References m_evtRecPi0Col.
Referenced by EvtRecPi0Cnv::DataObjectToTObject().
00150 { 00151 m_evtRecPi0Col->Add(pi0); 00152 }
void TEvtRecObject::addEvtRecTrack | ( | TEvtRecTrack * | track | ) |
Definition at line 115 of file TEvtRecObject.cxx.
References m_evtRecTrackCol.
Referenced by EvtRecTrackCnv::DataObjectToTObject().
00115 { 00116 m_evtRecTrackCol->Add(track); 00117 }
void TEvtRecObject::addEvtRecVeeVertex | ( | TEvtRecVeeVertex * | veeVertex | ) |
Definition at line 144 of file TEvtRecObject.cxx.
References m_evtRecVeeVertexCol.
Referenced by EvtRecVeeVertexCnv::DataObjectToTObject().
00144 { 00145 m_evtRecVeeVertexCol->Add(veeVertex); 00146 }
void TEvtRecObject::Clear | ( | Option_t * | option = "" |
) |
void TEvtRecObject::clearEvtRecDTagCol | ( | ) | [inline] |
Definition at line 69 of file TEvtRecObject.h.
References m_evtRecDTagCol.
Referenced by EvtRecDTagCnv::DataObjectToTObject().
00069 { m_evtRecDTagCol->Clear(); }
void TEvtRecObject::clearEvtRecEtaToGGCol | ( | ) | [inline] |
Definition at line 60 of file TEvtRecObject.h.
References m_evtRecEtaToGGCol.
Referenced by EvtRecEtaToGGCnv::DataObjectToTObject().
00060 { m_evtRecEtaToGGCol->Clear(); }
void TEvtRecObject::clearEvtRecPi0Col | ( | ) | [inline] |
Definition at line 54 of file TEvtRecObject.h.
References m_evtRecPi0Col.
Referenced by EvtRecPi0Cnv::DataObjectToTObject().
00054 { m_evtRecPi0Col->Clear(); }
void TEvtRecObject::clearEvtRecTrackCol | ( | ) | [inline] |
Definition at line 36 of file TEvtRecObject.h.
References m_evtRecTrackCol.
Referenced by EvtRecTrackCnv::DataObjectToTObject().
00036 { m_evtRecTrackCol->Clear(); }
void TEvtRecObject::clearEvtRecVeeVertexCol | ( | ) | [inline] |
Definition at line 46 of file TEvtRecObject.h.
References m_evtRecVeeVertexCol.
Referenced by EvtRecVeeVertexCnv::DataObjectToTObject().
00046 { m_evtRecVeeVertexCol->Clear(); }
const TEvtRecDTag * TEvtRecObject::getEvtRecDTag | ( | Int_t | i | ) | const |
Definition at line 184 of file TEvtRecObject.cxx.
References m_evtRecDTagCol.
00184 { 00185 if ( i >= m_evtRecDTagCol->GetEntries() || i < 0 ) 00186 return 0; 00187 return (TEvtRecDTag*) m_evtRecDTagCol->At(i); 00188 }
const TObjArray* TEvtRecObject::getEvtRecDTagCol | ( | ) | const [inline] |
Definition at line 66 of file TEvtRecObject.h.
References m_evtRecDTagCol.
Referenced by EvtRecDTagCnv::DataObjectToTObject().
00066 {return m_evtRecDTagCol; }
const TEvtRecEtaToGG * TEvtRecObject::getEvtRecEtaToGG | ( | Int_t | i | ) | const |
Definition at line 177 of file TEvtRecObject.cxx.
References m_evtRecEtaToGGCol.
00177 { 00178 if ( i >= m_evtRecEtaToGGCol->GetEntries() || i < 0 ) 00179 return 0; 00180 return (TEvtRecEtaToGG*) m_evtRecEtaToGGCol->At(i); 00181 }
const TObjArray* TEvtRecObject::getEvtRecEtaToGGCol | ( | ) | const [inline] |
Definition at line 57 of file TEvtRecObject.h.
References m_evtRecEtaToGGCol.
Referenced by EvtRecEtaToGGCnv::DataObjectToTObject().
00057 {return m_evtRecEtaToGGCol; }
const TEvtRecEvent* TEvtRecObject::getEvtRecEvent | ( | ) | const [inline] |
Definition at line 29 of file TEvtRecObject.h.
References m_evtRecEvent.
Referenced by EvtRecEventCnv::DataObjectToTObject().
00029 { return m_evtRecEvent; }
const TEvtRecPi0 * TEvtRecObject::getEvtRecPi0 | ( | Int_t | i | ) | const |
Definition at line 170 of file TEvtRecObject.cxx.
References m_evtRecPi0Col.
00170 { 00171 if ( i >= m_evtRecPi0Col->GetEntries() || i < 0 ) 00172 return 0; 00173 return (TEvtRecPi0*) m_evtRecPi0Col->At(i); 00174 }
const TObjArray* TEvtRecObject::getEvtRecPi0Col | ( | ) | const [inline] |
Definition at line 51 of file TEvtRecObject.h.
References m_evtRecPi0Col.
Referenced by EvtRecPi0Cnv::DataObjectToTObject().
00051 {return m_evtRecPi0Col; }
const TEvtRecPrimaryVertex* TEvtRecObject::getEvtRecPrimaryVertex | ( | ) | const [inline] |
Definition at line 39 of file TEvtRecObject.h.
References m_evtRecPrimaryVertex.
Referenced by EvtRecPrimaryVertexCnv::DataObjectToTObject().
00039 {return m_evtRecPrimaryVertex; }
const TEvtRecTrack * TEvtRecObject::getEvtRecTrack | ( | Int_t | i | ) | const |
Definition at line 119 of file TEvtRecObject.cxx.
References m_evtRecTrackCol.
00119 { 00120 if ( i >= m_evtRecTrackCol->GetEntries() || i < 0 ) 00121 return 0; 00122 return (TEvtRecTrack*) m_evtRecTrackCol->At(i); 00123 }
const TObjArray* TEvtRecObject::getEvtRecTrackCol | ( | ) | const [inline] |
Definition at line 33 of file TEvtRecObject.h.
References m_evtRecTrackCol.
Referenced by EvtRecTrackCnv::DataObjectToTObject().
00033 { return m_evtRecTrackCol; }
const TEvtRecVeeVertex * TEvtRecObject::getEvtRecVeeVertex | ( | Int_t | i | ) | const |
Definition at line 163 of file TEvtRecObject.cxx.
References m_evtRecVeeVertexCol.
00163 { 00164 if ( i >= m_evtRecVeeVertexCol->GetEntries() || i < 0 ) 00165 return 0; 00166 return (TEvtRecVeeVertex*) m_evtRecVeeVertexCol->At(i); 00167 }
const TObjArray* TEvtRecObject::getEvtRecVeeVertexCol | ( | ) | const [inline] |
Definition at line 43 of file TEvtRecObject.h.
References m_evtRecVeeVertexCol.
Referenced by EvtRecVeeVertexCnv::DataObjectToTObject().
00043 {return m_evtRecVeeVertexCol; }
void TEvtRecObject::initialize | ( | ) |
void TEvtRecObject::Print | ( | Option_t * | option = "" |
) | const |
void TEvtRecObject::setEvtRecEvent | ( | TEvtRecEvent * | evtRecEvent | ) |
Definition at line 105 of file TEvtRecObject.cxx.
References m_evtRecEvent, TEvtRecEvent::numberOfDTag(), TEvtRecEvent::numberOfEtaToGG(), TEvtRecEvent::numberOfPi0(), TEvtRecEvent::numberOfVee(), TEvtRecEvent::setNumberOfDTag(), TEvtRecEvent::setNumberOfEtaToGG(), TEvtRecEvent::setNumberOfPi0(), TEvtRecEvent::setNumberOfVee(), TEvtRecEvent::setTotalCharged(), TEvtRecEvent::setTotalNeutral(), TEvtRecEvent::setTotalTracks(), TEvtRecEvent::totalCharged(), TEvtRecEvent::totalNeutral(), and TEvtRecEvent::totalTracks().
00105 { 00106 m_evtRecEvent->setTotalTracks ( evtRecEvent->totalTracks() ); 00107 m_evtRecEvent->setTotalCharged( evtRecEvent->totalCharged() ); 00108 m_evtRecEvent->setTotalNeutral( evtRecEvent->totalNeutral() ); 00109 m_evtRecEvent->setNumberOfVee ( evtRecEvent->numberOfVee() ); 00110 m_evtRecEvent->setNumberOfPi0 ( evtRecEvent->numberOfPi0() ); 00111 m_evtRecEvent->setNumberOfEtaToGG ( evtRecEvent->numberOfEtaToGG() ); 00112 m_evtRecEvent->setNumberOfDTag( evtRecEvent->numberOfDTag() ); 00113 }
void TEvtRecObject::setEvtRecPrimaryVertex | ( | TEvtRecPrimaryVertex * | evtRecPrimaryVertex | ) |
Definition at line 125 of file TEvtRecObject.cxx.
References TEvtRecPrimaryVertex::chi2(), TEvtRecPrimaryVertex::errorVertex(), TEvtRecPrimaryVertex::fitMethod(), genRecEmupikp::i, TEvtRecPrimaryVertex::isValid(), m_evtRecPrimaryVertex, TEvtRecPrimaryVertex::ndof(), TEvtRecPrimaryVertex::nTracks(), TEvtRecPrimaryVertex::setChi2(), TEvtRecPrimaryVertex::setErrorVertex(), TEvtRecPrimaryVertex::setFitMethod(), TEvtRecPrimaryVertex::setIsValid(), TEvtRecPrimaryVertex::setNdof(), TEvtRecPrimaryVertex::setNTracks(), TEvtRecPrimaryVertex::setTrackIdList(), TEvtRecPrimaryVertex::setVertex(), TEvtRecPrimaryVertex::trackIdList(), and TEvtRecPrimaryVertex::vertex().
00125 { 00126 m_evtRecPrimaryVertex->setIsValid (evtRecPrimaryVertex->isValid() ); 00127 m_evtRecPrimaryVertex->setNTracks (evtRecPrimaryVertex->nTracks() ); 00128 m_evtRecPrimaryVertex->setTrackIdList (evtRecPrimaryVertex->trackIdList() ); 00129 m_evtRecPrimaryVertex->setChi2 (evtRecPrimaryVertex->chi2() ); 00130 m_evtRecPrimaryVertex->setNdof (evtRecPrimaryVertex->ndof() ); 00131 m_evtRecPrimaryVertex->setFitMethod (evtRecPrimaryVertex->fitMethod() ); 00132 Double_t vtx[3]; 00133 for (Int_t i = 0; i < 3; i++) { 00134 vtx[i] = evtRecPrimaryVertex->vertex(i); 00135 } 00136 Double_t Evtx[6]; 00137 for (Int_t i = 0; i < 6; i++) { 00138 Evtx[i] = evtRecPrimaryVertex->errorVertex(i); 00139 } 00140 m_evtRecPrimaryVertex->setVertex (vtx); 00141 m_evtRecPrimaryVertex->setErrorVertex (Evtx); 00142 }
TObjArray* TEvtRecObject::m_evtRecDTagCol [private] |
Definition at line 101 of file TEvtRecObject.h.
Referenced by addEvtRecDTag(), clearEvtRecDTagCol(), getEvtRecDTag(), getEvtRecDTagCol(), and ~TEvtRecObject().
TObjArray* TEvtRecObject::m_evtRecEtaToGGCol [private] |
Definition at line 95 of file TEvtRecObject.h.
Referenced by addEvtRecEtaToGG(), clearEvtRecEtaToGGCol(), getEvtRecEtaToGG(), getEvtRecEtaToGGCol(), and ~TEvtRecObject().
TEvtRecEvent* TEvtRecObject::m_evtRecEvent [private] |
Definition at line 78 of file TEvtRecObject.h.
Referenced by getEvtRecEvent(), setEvtRecEvent(), and ~TEvtRecObject().
TObjArray* TEvtRecObject::m_evtRecPi0Col [private] |
Definition at line 90 of file TEvtRecObject.h.
Referenced by addEvtRecPi0(), clearEvtRecPi0Col(), getEvtRecPi0(), getEvtRecPi0Col(), and ~TEvtRecObject().
Definition at line 84 of file TEvtRecObject.h.
Referenced by getEvtRecPrimaryVertex(), setEvtRecPrimaryVertex(), and ~TEvtRecObject().
TObjArray* TEvtRecObject::m_evtRecTrackCol [private] |
Definition at line 80 of file TEvtRecObject.h.
Referenced by addEvtRecTrack(), clearEvtRecTrackCol(), getEvtRecTrack(), getEvtRecTrackCol(), and ~TEvtRecObject().
TObjArray* TEvtRecObject::m_evtRecVeeVertexCol [private] |
Definition at line 86 of file TEvtRecObject.h.
Referenced by addEvtRecVeeVertex(), clearEvtRecVeeVertexCol(), getEvtRecVeeVertex(), getEvtRecVeeVertexCol(), and ~TEvtRecObject().
TObjArray * TEvtRecObject::s_staticEvtRecDTagCol = 0 [static, private] |
TObjArray * TEvtRecObject::s_staticEvtRecEtaToGGCol = 0 [static, private] |
TEvtRecEvent* TEvtRecObject::s_staticEvtRecEvent [static, private] |
data members of EvtRecEvent and EvtRecTracks
Definition at line 77 of file TEvtRecObject.h.
Referenced by ~TEvtRecObject().
TObjArray * TEvtRecObject::s_staticEvtRecPi0Col = 0 [static, private] |
TEvtRecPrimaryVertex * TEvtRecObject::s_staticEvtRecPrimaryVertex = 0 [static, private] |
data members to store EvtRecPrimaryVertex and EvtRecVeeVertex
Definition at line 83 of file TEvtRecObject.h.
Referenced by ~TEvtRecObject().
TObjArray* TEvtRecObject::s_staticEvtRecTrackCol [static, private] |
TObjArray * TEvtRecObject::s_staticEvtRecVeeVertexCol = 0 [static, private] |