2#include "TCollection.h"
9TObjArray* TEvtRecObject::s_staticEvtRecTrackCol = 0;
11TObjArray *TEvtRecObject::s_staticEvtRecVeeVertexCol = 0;
12TObjArray *TEvtRecObject::s_staticEvtRecPi0Col = 0;
13TObjArray *TEvtRecObject::s_staticEvtRecEtaToGGCol = 0;
14TObjArray *TEvtRecObject::s_staticEvtRecDTagCol = 0;
18 if ( ! s_staticEvtRecEvent ) {
21 m_evtRecEvent = s_staticEvtRecEvent;
23 if ( !s_staticEvtRecTrackCol) {
24 s_staticEvtRecTrackCol =
new TObjArray();
26 m_evtRecTrackCol = s_staticEvtRecTrackCol;
28 if ( ! s_staticEvtRecPrimaryVertex ) {
31 m_evtRecPrimaryVertex = s_staticEvtRecPrimaryVertex;
33 if ( ! s_staticEvtRecVeeVertexCol ) {
34 s_staticEvtRecVeeVertexCol =
new TObjArray();
36 m_evtRecVeeVertexCol = s_staticEvtRecVeeVertexCol;
38 if ( ! s_staticEvtRecPi0Col ) {
39 s_staticEvtRecPi0Col =
new TObjArray();
41 m_evtRecPi0Col = s_staticEvtRecPi0Col;
43 if ( ! s_staticEvtRecEtaToGGCol ) {
44 s_staticEvtRecEtaToGGCol =
new TObjArray();
46 m_evtRecEtaToGGCol = s_staticEvtRecEtaToGGCol;
48 if ( ! s_staticEvtRecDTagCol ) {
49 s_staticEvtRecDTagCol =
new TObjArray();
51 m_evtRecDTagCol = s_staticEvtRecDTagCol;
60 if ( m_evtRecEvent == s_staticEvtRecEvent ) s_staticEvtRecEvent = 0;
64 if ( m_evtRecTrackCol == s_staticEvtRecTrackCol ) s_staticEvtRecTrackCol = 0;
65 m_evtRecTrackCol->Delete();
66 delete m_evtRecTrackCol;
69 if ( m_evtRecPrimaryVertex == s_staticEvtRecPrimaryVertex ) s_staticEvtRecPrimaryVertex = 0;
70 delete m_evtRecPrimaryVertex;
71 m_evtRecPrimaryVertex = 0;
73 if ( m_evtRecVeeVertexCol == s_staticEvtRecVeeVertexCol ) s_staticEvtRecVeeVertexCol = 0;
74 m_evtRecVeeVertexCol->Delete();
75 delete m_evtRecVeeVertexCol;
76 m_evtRecVeeVertexCol = 0;
78 if ( m_evtRecPi0Col == s_staticEvtRecPi0Col ) s_staticEvtRecPi0Col = 0;
79 m_evtRecPi0Col->Delete();
80 delete m_evtRecPi0Col;
83 if ( m_evtRecEtaToGGCol == s_staticEvtRecEtaToGGCol ) s_staticEvtRecEtaToGGCol = 0;
84 m_evtRecEtaToGGCol->Delete();
85 delete m_evtRecEtaToGGCol;
86 m_evtRecEtaToGGCol = 0;
88 if ( m_evtRecDTagCol == s_staticEvtRecDTagCol ) s_staticEvtRecDTagCol = 0;
89 m_evtRecDTagCol->Delete();
90 delete m_evtRecDTagCol;
102 TObject::Print(option);
116 m_evtRecTrackCol->Add(track);
120 if ( i >= m_evtRecTrackCol->GetEntries() || i < 0 )
129 m_evtRecPrimaryVertex->
setChi2 (evtRecPrimaryVertex->
chi2() );
130 m_evtRecPrimaryVertex->
setNdof (evtRecPrimaryVertex->
ndof() );
133 for (Int_t i = 0; i < 3; i++) {
134 vtx[i] = evtRecPrimaryVertex->
vertex(i);
137 for (Int_t i = 0; i < 6; i++) {
145 m_evtRecVeeVertexCol->Add(veeVertex);
151 m_evtRecPi0Col->Add(pi0);
156 m_evtRecEtaToGGCol->Add(eta);
160 m_evtRecDTagCol->Add(dtag);
164 if ( i >= m_evtRecVeeVertexCol->GetEntries() || i < 0 )
171 if ( i >= m_evtRecPi0Col->GetEntries() || i < 0 )
178 if ( i >= m_evtRecEtaToGGCol->GetEntries() || i < 0 )
185 if ( i >= m_evtRecDTagCol->GetEntries() || i < 0 )
ClassImp(TBossFullEvent) TBossFullEvent
Int_t numberOfPi0() const
Int_t totalNeutral() const
void setNumberOfVee(const int nvee)
void setTotalCharged(const int nchrg)
Int_t totalCharged() const
void setNumberOfPi0(const int npi0)
void setNumberOfEtaToGG(const int neta)
Int_t totalTracks() const
Int_t numberOfEtaToGG() const
void setTotalNeutral(const int nneu)
void setTotalTracks(const int tottks)
void setNumberOfDTag(const int ndtag)
Int_t numberOfDTag() const
Int_t numberOfVee() const
const TEvtRecVeeVertex * getEvtRecVeeVertex(Int_t i) const
const TEvtRecTrack * getEvtRecTrack(Int_t i) const
const TEvtRecPi0 * getEvtRecPi0(Int_t i) const
const TEvtRecEtaToGG * getEvtRecEtaToGG(Int_t i) const
void addEvtRecEtaToGG(TEvtRecEtaToGG *eta)
void Clear(Option_t *option="")
void addEvtRecPi0(TEvtRecPi0 *pi0)
void Print(Option_t *option="") const
void setEvtRecPrimaryVertex(TEvtRecPrimaryVertex *evtRecPrimaryVertex)
void addEvtRecTrack(TEvtRecTrack *track)
void setEvtRecEvent(TEvtRecEvent *evtRecEvent)
const TEvtRecDTag * getEvtRecDTag(Int_t i) const
void addEvtRecVeeVertex(TEvtRecVeeVertex *veeVertex)
void addEvtRecDTag(TEvtRecDTag *dtag)
Double_t errorVertex(Int_t i) const
void setChi2(Double_t chi2)
void setTrackIdList(const std::vector< Int_t > &trackIdList)
Double_t vertex(Int_t i) const
const std::vector< Int_t > & trackIdList() const
void setErrorVertex(Double_t Evtx[6])
void setIsValid(Bool_t isValid)
void setFitMethod(Int_t fitMethod)
void setVertex(Double_t vtx[3])
void setNTracks(Int_t nTracks)