#include <CaloEvent.hh>
Inheritance diagram for CaloEvent:
Public Member Functions | |
CaloEvent () | |
Constructor. | |
CaloEvent & | operator= (const MTEvent &rhs) |
copy assignment operator | |
virtual | ~CaloEvent () |
Destructor. | |
CaloHit * | AddHit (const CaloHit &ahit) |
Add hits to this event. | |
void | Clear (Option_t *option="") |
Clear fHits TClonesArray and set number of hit for this event to zero. | |
TClonesArray * | GetHits () const |
Getter for fHits TClonesArray. | |
UInt_t | GetNHits () const |
Getter for number of event's hits, fNHits . | |
Float_t | GetXExtrapol (void) const |
Getter expected position along x axis of CaloHit (calculated from telescope info). | |
Float_t | GetYExtrapol (void) const |
Getter expected position along y axis of CaloHit (calculated from telescope info). | |
UInt_t | GetTrkQuality (void) |
Getter for quality of trak from pad telescope. | |
void | SetEventId (const UInt_t value) |
Setter for event id. | |
UInt_t | GetDeltaTmax (void) |
Getter for number of event's hits, fNHits . | |
void | SetXExtrapol (const Float_t value) |
Setter for expected position along x axis of CaloHit (calculated from telescope info). | |
void | SetYExtrapol (const Float_t value) |
Setter for expected position along y axis of CaloHit (calculated from telescope info). | |
void | SetTrkQuality (const UInt_t value) |
Setter for quality of trak from pad telescope. | |
void | SetDeltaTmax (const UInt_t dtmax) |
Private Attributes | |
UInt_t | fEventId |
TClonesArray * | fHits |
Int_t | fNHits |
Float_t | fXExtrapol |
Float_t | fYExtrapol |
UInt_t | fTrkQuality |
UInt_t | fDeltaTmax |
Static Private Attributes | |
static TClonesArray * | fgHits |
-pointer to event's hits collection: fHits
-event Id: fEventId
-number of hits : fNHits
-value along x axis for telescope : fXTelescope
-value along y axis for telescope : fYTelescope
Definition at line 54 of file CaloEvent.hh.
CaloEvent::CaloEvent | ( | ) |
CaloEvent::~CaloEvent | ( | ) | [virtual] |
Destructor.
CaloEvent class destructor
none |
Definition at line 37 of file CaloEvent.cpp.
00038 { 00039 this->Clear(); 00040 }
copy assignment operator
CaloEvent copy assignment operator. Copy MTEvent to CaloEvent
const | reference of MTEvent to copy |
Definition at line 44 of file CaloEvent.cpp.
00045 { 00046 // Set filtered event id to current input event ID 00047 this->fEventId = rhs.GetEventId(); 00048 CaloHit hit; 00049 00050 // Loop over MTEvent channelHit 00051 int nbChannel = rhs.GetNchannel(); 00052 for(int i=0;i<nbChannel ;i++) 00053 { 00054 MTChannel *channel = (MTChannel*)rhs.GetChannels()->UncheckedAt(i); 00055 00056 hit.SetX(channel->GetX()); 00057 hit.SetY(channel->GetY()); 00058 hit.SetZ(channel->GetZ()); 00059 00060 this->AddHit(hit); 00061 } 00062 00063 return *this; 00064 00065 }
Add hits to this event.
const | reference on CaloHit. |
Definition at line 76 of file CaloEvent.cpp.
Referenced by buildCaliceEvent(), buildCaloEvent(), and operator=().
00076 { 00077 00078 00079 TClonesArray &hits = *fHits; 00080 CaloHit *hit = new(hits[fNHits++]) CaloHit(aHit); 00081 00082 return hit; 00083 00084 }
void CaloEvent::Clear | ( | Option_t * | option = "" |
) |
Clear fHits TClonesArray and set number of hit for this event to zero.
Option_t | for TClonesArray::Clear method |
Definition at line 68 of file CaloEvent.cpp.
Referenced by selectAndCopyEvent(), and ~CaloEvent().
CaloEvent::GetHits | ( | void | ) | const [inline] |
Getter for fHits TClonesArray.
void. |
Definition at line 108 of file CaloEvent.hh.
Referenced by EventDisplay::adjustSlider(), and main().
00108 { return fHits; };
CaloEvent::GetNHits | ( | void | ) | const [inline] |
Getter for number of event's hits, fNHits .
void. |
Definition at line 116 of file CaloEvent.hh.
Referenced by EventDisplay::adjustSlider(), main(), and selectAndCopyEvent().
00116 { return fNHits; };
CaloEvent::GetXExtrapol | ( | void | ) | const [inline] |
Getter expected position along x axis of CaloHit (calculated from telescope info).
void. |
Definition at line 124 of file CaloEvent.hh.
00124 { return fXExtrapol; };
CaloEvent::GetYExtrapol | ( | void | ) | const [inline] |
Getter expected position along y axis of CaloHit (calculated from telescope info).
void. |
Definition at line 132 of file CaloEvent.hh.
00132 { return fYExtrapol; };
UInt_t CaloEvent::GetTrkQuality | ( | void | ) | [inline] |
Getter for quality of trak from pad telescope.
UInt_t | value = 0,1,2 0: track (aligned 3x3 cm2 clusters in all chambers) 1: straight track (aligned max. in all chambers) 2: stiff track (single hit in all chambers) |
Definition at line 143 of file CaloEvent.hh.
00143 { return fTrkQuality; } ;
CaloEvent::SetEventId | ( | const UInt_t | value | ) | [inline] |
Setter for event id.
UInt_t | new event id. |
Definition at line 151 of file CaloEvent.hh.
Referenced by selectAndCopyEvent().
00151 { fEventId = value; } ;
CaloEvent::GetDeltaTmax | ( | void | ) | [inline] |
Getter for number of event's hits, fNHits .
void. |
Definition at line 159 of file CaloEvent.hh.
Referenced by main().
00159 { return fDeltaTmax; } ;
CaloEvent::SetXExtrapol | ( | const Float_t | value | ) | [inline] |
Setter for expected position along x axis of CaloHit (calculated from telescope info).
Float_t | new telescope value along x axis |
Definition at line 167 of file CaloEvent.hh.
Referenced by buildCaloEvent().
00167 { fXExtrapol = value; } ;
CaloEvent::SetYExtrapol | ( | const Float_t | value | ) | [inline] |
Setter for expected position along y axis of CaloHit (calculated from telescope info).
Float_t | new telescope value along y axis |
Definition at line 175 of file CaloEvent.hh.
Referenced by buildCaloEvent().
00175 { fYExtrapol = value; } ;
CaloEvent::SetTrkQuality | ( | const UInt_t | value | ) | [inline] |
Setter for quality of trak from pad telescope.
UInt_t | value = 0,1,2 0: track (aligned 3x3 cm2 clusters in all chambers) 1: straight track (aligned max. in all chambers) 2: stiff track (single hit in all chambers) |
Definition at line 186 of file CaloEvent.hh.
Referenced by buildCaloEvent().
00186 { fTrkQuality = value; } ;
void CaloEvent::SetDeltaTmax | ( | const UInt_t | dtmax | ) | [inline] |
Definition at line 194 of file CaloEvent.hh.
Referenced by selectAndCopyEvent().
00194 { fDeltaTmax = dtmax; } ;
TClonesArray* CaloEvent::fgHits [static, private] |
Definition at line 194 of file CaloEvent.hh.
UInt_t CaloEvent::fEventId [private] |
TClonesArray* CaloEvent::fHits [private] |
Int_t CaloEvent::fNHits [private] |
Float_t CaloEvent::fXExtrapol [private] |
Float_t CaloEvent::fYExtrapol [private] |
UInt_t CaloEvent::fTrkQuality [private] |
UInt_t CaloEvent::fDeltaTmax [private] |