BOSS 7.0.6
BESIII Offline Software System
Loading...
Searching...
No Matches
TEvtRecObject Class Reference

#include <TEvtRecObject.h>

+ Inheritance diagram for TEvtRecObject:

Public Member Functions

 TEvtRecObject ()
 
virtual ~TEvtRecObject ()
 
void initialize ()
 
void Clear (Option_t *option="")
 
void Print (Option_t *option="") const
 
const TEvtRecEventgetEvtRecEvent () const
 
void setEvtRecEvent (TEvtRecEvent *evtRecEvent)
 
const TObjArray * getEvtRecTrackCol () const
 
void addEvtRecTrack (TEvtRecTrack *track)
 
const TEvtRecTrackgetEvtRecTrack (Int_t i) const
 
void clearEvtRecTrackCol ()
 
const TEvtRecPrimaryVertexgetEvtRecPrimaryVertex () const
 
void setEvtRecPrimaryVertex (TEvtRecPrimaryVertex *evtRecPrimaryVertex)
 
const TObjArray * getEvtRecVeeVertexCol () const
 
void addEvtRecVeeVertex (TEvtRecVeeVertex *veeVertex)
 
const TEvtRecVeeVertexgetEvtRecVeeVertex (Int_t i) const
 
void clearEvtRecVeeVertexCol ()
 
const TObjArray * getEvtRecPi0Col () const
 
void addEvtRecPi0 (TEvtRecPi0 *pi0)
 
const TEvtRecPi0getEvtRecPi0 (Int_t i) const
 
void clearEvtRecPi0Col ()
 
const TObjArray * getEvtRecEtaToGGCol () const
 
void addEvtRecEtaToGG (TEvtRecEtaToGG *eta)
 
const TEvtRecEtaToGGgetEvtRecEtaToGG (Int_t i) const
 
void clearEvtRecEtaToGGCol ()
 
const TObjArray * getEvtRecDTagCol () const
 
void addEvtRecDTag (TEvtRecDTag *dtag)
 
const TEvtRecDTaggetEvtRecDTag (Int_t i) const
 
void clearEvtRecDTagCol ()
 

Detailed Description

Definition at line 15 of file TEvtRecObject.h.

Constructor & Destructor Documentation

◆ TEvtRecObject()

TEvtRecObject::TEvtRecObject ( )

Definition at line 16 of file TEvtRecObject.cxx.

17{
18 if ( ! s_staticEvtRecEvent ) {
19 s_staticEvtRecEvent = new TEvtRecEvent;
20 }
21 m_evtRecEvent = s_staticEvtRecEvent;
22
23 if ( !s_staticEvtRecTrackCol) {
24 s_staticEvtRecTrackCol = new TObjArray();
25 }
26 m_evtRecTrackCol = s_staticEvtRecTrackCol;
27
28 if ( ! s_staticEvtRecPrimaryVertex ) {
29 s_staticEvtRecPrimaryVertex = new TEvtRecPrimaryVertex();
30 }
31 m_evtRecPrimaryVertex = s_staticEvtRecPrimaryVertex;
32
33 if ( ! s_staticEvtRecVeeVertexCol ) {
34 s_staticEvtRecVeeVertexCol = new TObjArray();
35 }
36 m_evtRecVeeVertexCol = s_staticEvtRecVeeVertexCol;
37
38 if ( ! s_staticEvtRecPi0Col ) {
39 s_staticEvtRecPi0Col = new TObjArray();
40 }
41 m_evtRecPi0Col = s_staticEvtRecPi0Col;
42
43 if ( ! s_staticEvtRecEtaToGGCol ) {
44 s_staticEvtRecEtaToGGCol = new TObjArray();
45 }
46 m_evtRecEtaToGGCol = s_staticEvtRecEtaToGGCol;
47
48 if ( ! s_staticEvtRecDTagCol ) {
49 s_staticEvtRecDTagCol = new TObjArray();
50 }
51 m_evtRecDTagCol = s_staticEvtRecDTagCol;
52
53
54
55 Clear();
56}
void Clear(Option_t *option="")

◆ ~TEvtRecObject()

TEvtRecObject::~TEvtRecObject ( )
virtual

Definition at line 58 of file TEvtRecObject.cxx.

58 {
59
60 if ( m_evtRecEvent == s_staticEvtRecEvent ) s_staticEvtRecEvent = 0;
61 delete m_evtRecEvent;
62 m_evtRecEvent = 0;
63
64 if ( m_evtRecTrackCol == s_staticEvtRecTrackCol ) s_staticEvtRecTrackCol = 0;
65 m_evtRecTrackCol->Delete();
66 delete m_evtRecTrackCol;
67 m_evtRecTrackCol = 0;
68
69 if ( m_evtRecPrimaryVertex == s_staticEvtRecPrimaryVertex ) s_staticEvtRecPrimaryVertex = 0;
70 delete m_evtRecPrimaryVertex;
71 m_evtRecPrimaryVertex = 0;
72
73 if ( m_evtRecVeeVertexCol == s_staticEvtRecVeeVertexCol ) s_staticEvtRecVeeVertexCol = 0;
74 m_evtRecVeeVertexCol->Delete();
75 delete m_evtRecVeeVertexCol;
76 m_evtRecVeeVertexCol = 0;
77
78 if ( m_evtRecPi0Col == s_staticEvtRecPi0Col ) s_staticEvtRecPi0Col = 0;
79 m_evtRecPi0Col->Delete();
80 delete m_evtRecPi0Col;
81 m_evtRecPi0Col = 0;
82
83 if ( m_evtRecEtaToGGCol == s_staticEvtRecEtaToGGCol ) s_staticEvtRecEtaToGGCol = 0;
84 m_evtRecEtaToGGCol->Delete();
85 delete m_evtRecEtaToGGCol;
86 m_evtRecEtaToGGCol = 0;
87
88 if ( m_evtRecDTagCol == s_staticEvtRecDTagCol ) s_staticEvtRecDTagCol = 0;
89 m_evtRecDTagCol->Delete();
90 delete m_evtRecDTagCol;
91 m_evtRecDTagCol = 0;
92
93}

Member Function Documentation

◆ addEvtRecDTag()

void TEvtRecObject::addEvtRecDTag ( TEvtRecDTag dtag)

Definition at line 159 of file TEvtRecObject.cxx.

159 {
160 m_evtRecDTagCol->Add(dtag);
161}

Referenced by EvtRecDTagCnv::DataObjectToTObject().

◆ addEvtRecEtaToGG()

void TEvtRecObject::addEvtRecEtaToGG ( TEvtRecEtaToGG eta)

Definition at line 155 of file TEvtRecObject.cxx.

155 {
156 m_evtRecEtaToGGCol->Add(eta);
157}

Referenced by EvtRecEtaToGGCnv::DataObjectToTObject().

◆ addEvtRecPi0()

void TEvtRecObject::addEvtRecPi0 ( TEvtRecPi0 pi0)

Definition at line 150 of file TEvtRecObject.cxx.

150 {
151 m_evtRecPi0Col->Add(pi0);
152}

Referenced by EvtRecPi0Cnv::DataObjectToTObject().

◆ addEvtRecTrack()

void TEvtRecObject::addEvtRecTrack ( TEvtRecTrack track)

Definition at line 115 of file TEvtRecObject.cxx.

115 {
116 m_evtRecTrackCol->Add(track);
117}

Referenced by EvtRecTrackCnv::DataObjectToTObject().

◆ addEvtRecVeeVertex()

void TEvtRecObject::addEvtRecVeeVertex ( TEvtRecVeeVertex veeVertex)

Definition at line 144 of file TEvtRecObject.cxx.

144 {
145 m_evtRecVeeVertexCol->Add(veeVertex);
146}

Referenced by EvtRecVeeVertexCnv::DataObjectToTObject().

◆ Clear()

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

Definition at line 98 of file TEvtRecObject.cxx.

98 {
99}

Referenced by RootCnvSvc::commitOutput(), and TEvtRecObject().

◆ clearEvtRecDTagCol()

void TEvtRecObject::clearEvtRecDTagCol ( )
inline

Definition at line 69 of file TEvtRecObject.h.

69{ m_evtRecDTagCol->Clear(); }

Referenced by EvtRecDTagCnv::DataObjectToTObject().

◆ clearEvtRecEtaToGGCol()

void TEvtRecObject::clearEvtRecEtaToGGCol ( )
inline

Definition at line 60 of file TEvtRecObject.h.

60{ m_evtRecEtaToGGCol->Clear(); }

Referenced by EvtRecEtaToGGCnv::DataObjectToTObject().

◆ clearEvtRecPi0Col()

void TEvtRecObject::clearEvtRecPi0Col ( )
inline

Definition at line 54 of file TEvtRecObject.h.

54{ m_evtRecPi0Col->Clear(); }

Referenced by EvtRecPi0Cnv::DataObjectToTObject().

◆ clearEvtRecTrackCol()

void TEvtRecObject::clearEvtRecTrackCol ( )
inline

Definition at line 36 of file TEvtRecObject.h.

36{ m_evtRecTrackCol->Clear(); }

Referenced by EvtRecTrackCnv::DataObjectToTObject().

◆ clearEvtRecVeeVertexCol()

void TEvtRecObject::clearEvtRecVeeVertexCol ( )
inline

Definition at line 46 of file TEvtRecObject.h.

46{ m_evtRecVeeVertexCol->Clear(); }

Referenced by EvtRecVeeVertexCnv::DataObjectToTObject().

◆ getEvtRecDTag()

const TEvtRecDTag * TEvtRecObject::getEvtRecDTag ( Int_t  i) const

Definition at line 184 of file TEvtRecObject.cxx.

184 {
185 if ( i >= m_evtRecDTagCol->GetEntries() || i < 0 )
186 return 0;
187 return (TEvtRecDTag*) m_evtRecDTagCol->At(i);
188}

◆ getEvtRecDTagCol()

const TObjArray * TEvtRecObject::getEvtRecDTagCol ( ) const
inline

Definition at line 66 of file TEvtRecObject.h.

66{return m_evtRecDTagCol; }

Referenced by EvtRecDTagCnv::DataObjectToTObject().

◆ getEvtRecEtaToGG()

const TEvtRecEtaToGG * TEvtRecObject::getEvtRecEtaToGG ( Int_t  i) const

Definition at line 177 of file TEvtRecObject.cxx.

177 {
178 if ( i >= m_evtRecEtaToGGCol->GetEntries() || i < 0 )
179 return 0;
180 return (TEvtRecEtaToGG*) m_evtRecEtaToGGCol->At(i);
181}

◆ getEvtRecEtaToGGCol()

const TObjArray * TEvtRecObject::getEvtRecEtaToGGCol ( ) const
inline

Definition at line 57 of file TEvtRecObject.h.

57{return m_evtRecEtaToGGCol; }

Referenced by EvtRecEtaToGGCnv::DataObjectToTObject().

◆ getEvtRecEvent()

const TEvtRecEvent * TEvtRecObject::getEvtRecEvent ( ) const
inline

Definition at line 29 of file TEvtRecObject.h.

29{ return m_evtRecEvent; }

Referenced by EvtRecEventCnv::DataObjectToTObject().

◆ getEvtRecPi0()

const TEvtRecPi0 * TEvtRecObject::getEvtRecPi0 ( Int_t  i) const

Definition at line 170 of file TEvtRecObject.cxx.

170 {
171 if ( i >= m_evtRecPi0Col->GetEntries() || i < 0 )
172 return 0;
173 return (TEvtRecPi0*) m_evtRecPi0Col->At(i);
174}

◆ getEvtRecPi0Col()

const TObjArray * TEvtRecObject::getEvtRecPi0Col ( ) const
inline

Definition at line 51 of file TEvtRecObject.h.

51{return m_evtRecPi0Col; }

Referenced by EvtRecPi0Cnv::DataObjectToTObject().

◆ getEvtRecPrimaryVertex()

const TEvtRecPrimaryVertex * TEvtRecObject::getEvtRecPrimaryVertex ( ) const
inline

Definition at line 39 of file TEvtRecObject.h.

39{return m_evtRecPrimaryVertex; }

Referenced by EvtRecPrimaryVertexCnv::DataObjectToTObject().

◆ getEvtRecTrack()

const TEvtRecTrack * TEvtRecObject::getEvtRecTrack ( Int_t  i) const

Definition at line 119 of file TEvtRecObject.cxx.

119 {
120 if ( i >= m_evtRecTrackCol->GetEntries() || i < 0 )
121 return 0;
122 return (TEvtRecTrack*) m_evtRecTrackCol->At(i);
123}

◆ getEvtRecTrackCol()

const TObjArray * TEvtRecObject::getEvtRecTrackCol ( ) const
inline

Definition at line 33 of file TEvtRecObject.h.

33{ return m_evtRecTrackCol; }

Referenced by EvtRecTrackCnv::DataObjectToTObject().

◆ getEvtRecVeeVertex()

const TEvtRecVeeVertex * TEvtRecObject::getEvtRecVeeVertex ( Int_t  i) const

Definition at line 163 of file TEvtRecObject.cxx.

163 {
164 if ( i >= m_evtRecVeeVertexCol->GetEntries() || i < 0 )
165 return 0;
166 return (TEvtRecVeeVertex*) m_evtRecVeeVertexCol->At(i);
167}

◆ getEvtRecVeeVertexCol()

const TObjArray * TEvtRecObject::getEvtRecVeeVertexCol ( ) const
inline

Definition at line 43 of file TEvtRecObject.h.

43{return m_evtRecVeeVertexCol; }

Referenced by EvtRecVeeVertexCnv::DataObjectToTObject().

◆ initialize()

void TEvtRecObject::initialize ( )

Definition at line 95 of file TEvtRecObject.cxx.

95 {
96}

Referenced by EvtRecCnv::DataObjectToTObject().

◆ Print()

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

Definition at line 101 of file TEvtRecObject.cxx.

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

◆ setEvtRecEvent()

void TEvtRecObject::setEvtRecEvent ( TEvtRecEvent evtRecEvent)

Definition at line 105 of file TEvtRecObject.cxx.

105 {
106 m_evtRecEvent->setTotalTracks ( evtRecEvent->totalTracks() );
107 m_evtRecEvent->setTotalCharged( evtRecEvent->totalCharged() );
108 m_evtRecEvent->setTotalNeutral( evtRecEvent->totalNeutral() );
109 m_evtRecEvent->setNumberOfVee ( evtRecEvent->numberOfVee() );
110 m_evtRecEvent->setNumberOfPi0 ( evtRecEvent->numberOfPi0() );
111 m_evtRecEvent->setNumberOfEtaToGG ( evtRecEvent->numberOfEtaToGG() );
112 m_evtRecEvent->setNumberOfDTag( evtRecEvent->numberOfDTag() );
113}
Int_t numberOfPi0() const
Definition: TEvtRecEvent.h:24
Int_t totalNeutral() const
Definition: TEvtRecEvent.h:22
void setNumberOfVee(const int nvee)
Definition: TEvtRecEvent.h:31
void setTotalCharged(const int nchrg)
Definition: TEvtRecEvent.h:29
Int_t totalCharged() const
Definition: TEvtRecEvent.h:21
void setNumberOfPi0(const int npi0)
Definition: TEvtRecEvent.h:32
void setNumberOfEtaToGG(const int neta)
Definition: TEvtRecEvent.h:33
Int_t totalTracks() const
Definition: TEvtRecEvent.h:20
Int_t numberOfEtaToGG() const
Definition: TEvtRecEvent.h:25
void setTotalNeutral(const int nneu)
Definition: TEvtRecEvent.h:30
void setTotalTracks(const int tottks)
Definition: TEvtRecEvent.h:28
void setNumberOfDTag(const int ndtag)
Definition: TEvtRecEvent.h:34
Int_t numberOfDTag() const
Definition: TEvtRecEvent.h:26
Int_t numberOfVee() const
Definition: TEvtRecEvent.h:23

◆ setEvtRecPrimaryVertex()

void TEvtRecObject::setEvtRecPrimaryVertex ( TEvtRecPrimaryVertex evtRecPrimaryVertex)

Definition at line 125 of file TEvtRecObject.cxx.

125 {
126 m_evtRecPrimaryVertex->setIsValid (evtRecPrimaryVertex->isValid() );
127 m_evtRecPrimaryVertex->setNTracks (evtRecPrimaryVertex->nTracks() );
128 m_evtRecPrimaryVertex->setTrackIdList (evtRecPrimaryVertex->trackIdList() );
129 m_evtRecPrimaryVertex->setChi2 (evtRecPrimaryVertex->chi2() );
130 m_evtRecPrimaryVertex->setNdof (evtRecPrimaryVertex->ndof() );
131 m_evtRecPrimaryVertex->setFitMethod (evtRecPrimaryVertex->fitMethod() );
132 Double_t vtx[3];
133 for (Int_t i = 0; i < 3; i++) {
134 vtx[i] = evtRecPrimaryVertex->vertex(i);
135 }
136 Double_t Evtx[6];
137 for (Int_t i = 0; i < 6; i++) {
138 Evtx[i] = evtRecPrimaryVertex->errorVertex(i);
139 }
140 m_evtRecPrimaryVertex->setVertex (vtx);
141 m_evtRecPrimaryVertex->setErrorVertex (Evtx);
142}
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
void setNdof(Int_t ndof)
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)

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