CaloEvent Class Reference

Describe calorimeter event. More...

#include <CaloEvent.hh>

Inheritance diagram for CaloEvent:

Inheritance graph
[legend]
Collaboration diagram for CaloEvent:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CaloEvent ()
 Constructor.
CaloEventoperator= (const MTEvent &rhs)
 copy assignment operator
virtual ~CaloEvent ()
 Destructor.
CaloHitAddHit (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.
UInt_t GetEventId (void)
 Getter for fEventId .
void SetEventId (const UInt_t value)
 Setter for event id.
UInt_t GetDeltaTmax (void)
 Getter for deltaT candidate (number of hits upper than threshold) fDeltaTmax .
UInt_t GetBcIdAbs (void)
 Getter for fBcIdAbs. BcIdAbs is RAMFull record time (identical for all CalEvent of a Lcio record).
void SetBcIdAbs (UInt_t value)
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
UInt_t fBcIdAbs

Static Private Attributes

static TClonesArray * fgHits

Detailed Description

Describe calorimeter event.

-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.


Constructor & Destructor Documentation

CaloEvent::CaloEvent (  ) 

Constructor.

CaloEvent class constructor

Parameters:
none 

CaloEvent::~CaloEvent (  )  [virtual]

Destructor.

CaloEvent class destructor

Parameters:
none 

Definition at line 37 of file CaloEvent.cpp.

00038 {
00039   this->Clear();
00040 }


Member Function Documentation

CaloEvent & CaloEvent::operator= ( const MTEvent rhs  ) 

copy assignment operator

CaloEvent copy assignment operator. Copy MTEvent to CaloEvent

Parameters:
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 }

CaloHit * CaloEvent::AddHit ( const CaloHit ahit  ) 

Add hits to this event.

Parameters:
const reference on CaloHit.
new CaloHit and store it into class fHits TClonesArray.
Returns:
pouinter to the new created CaloHit.

Definition at line 76 of file CaloEvent.cpp.

Referenced by AddCaloHit(), 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.

Parameters:
Option_t for TClonesArray::Clear method

Definition at line 68 of file CaloEvent.cpp.

Referenced by selectAndCopyEvent(), and ~CaloEvent().

00069 {
00070   fHits->Clear("C"); //will also call Channel::Clear
00071   fNHits = 0;
00072 
00073 }

CaloEvent::GetHits ( void   )  const [inline]

Getter for fHits TClonesArray.

Parameters:
void. 
Returns:
pointer to fHits TClonesArray

Definition at line 108 of file CaloEvent.hh.

Referenced by EventDisplay::adjustSlider(), EventDisplay::DisplayCaloEvent(), and main().

00108 { return fHits; };

CaloEvent::GetNHits ( void   )  const [inline]

Getter for number of event's hits, fNHits .

Parameters:
void. 
Returns:
fNHits, number of eventÅ› hits

Definition at line 116 of file CaloEvent.hh.

Referenced by EventDisplay::adjustSlider(), EventDisplay::DisplayCaloEvent(), and main().

00116 { return fNHits; };

CaloEvent::GetXExtrapol ( void   )  const [inline]

Getter expected position along x axis of CaloHit (calculated from telescope info).

Parameters:
void. 
Returns:
fXExtrapol

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).

Parameters:
void. 
Returns:
fYExtrapol

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.

Parameters:
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)
Returns:
track quality

Definition at line 143 of file CaloEvent.hh.

00143 { return fTrkQuality; } ;

CaloEvent::GetEventId ( void   )  [inline]

Getter for fEventId .

Parameters:
void. 
Returns:
fEventI

Definition at line 151 of file CaloEvent.hh.

Referenced by main().

00151 { return fEventId; } ; 

CaloEvent::SetEventId ( const UInt_t  value  )  [inline]

Setter for event id.

Parameters:
UInt_t new event id.
Returns:
none

Definition at line 159 of file CaloEvent.hh.

Referenced by selectAndCopyEvent().

00159 { fEventId = value; } ; 

CaloEvent::GetDeltaTmax ( void   )  [inline]

Getter for deltaT candidate (number of hits upper than threshold) fDeltaTmax .

Parameters:
void. 
Returns:
fDeltaTmaxNHits, deltaT candidate

Definition at line 167 of file CaloEvent.hh.

Referenced by main().

00167 { return fDeltaTmax; } ; 

CaloEvent::GetBcIdAbs ( void   )  [inline]

Getter for fBcIdAbs. BcIdAbs is RAMFull record time (identical for all CalEvent of a Lcio record).

Parameters:
void. 
Returns:
fBcIdAbs

Definition at line 175 of file CaloEvent.hh.

Referenced by main().

00175 { return fBcIdAbs; } ; 

void CaloEvent::SetBcIdAbs ( UInt_t  value  )  [inline]

Definition at line 183 of file CaloEvent.hh.

Referenced by selectAndCopyEvent().

00183 { fBcIdAbs = value; } ; 

CaloEvent::SetXExtrapol ( const Float_t  value  )  [inline]

Setter for expected position along x axis of CaloHit (calculated from telescope info).

Parameters:
Float_t new telescope value along x axis
Returns:
none

Definition at line 191 of file CaloEvent.hh.

Referenced by buildCaloEvent().

00191 { fXExtrapol = value; } ; 

CaloEvent::SetYExtrapol ( const Float_t  value  )  [inline]

Setter for expected position along y axis of CaloHit (calculated from telescope info).

Parameters:
Float_t new telescope value along y axis
Returns:
none

Definition at line 199 of file CaloEvent.hh.

Referenced by buildCaloEvent().

00199 { fYExtrapol = value; } ; 

CaloEvent::SetTrkQuality ( const UInt_t  value  )  [inline]

Setter for quality of trak from pad telescope.

Parameters:
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)
Returns:
none

Definition at line 210 of file CaloEvent.hh.

Referenced by buildCaloEvent().

00210 { fTrkQuality = value; } ; 

void CaloEvent::SetDeltaTmax ( const UInt_t  dtmax  )  [inline]

Definition at line 218 of file CaloEvent.hh.

Referenced by selectAndCopyEvent().

00218 { fDeltaTmax = dtmax; } ; 


Member Data Documentation

TClonesArray* CaloEvent::fgHits [static, private]

Definition at line 218 of file CaloEvent.hh.

UInt_t CaloEvent::fEventId [private]

Definition at line 225 of file CaloEvent.hh.

Referenced by GetEventId(), and SetEventId().

TClonesArray* CaloEvent::fHits [private]

Definition at line 226 of file CaloEvent.hh.

Referenced by AddHit(), Clear(), and GetHits().

Int_t CaloEvent::fNHits [private]

Definition at line 227 of file CaloEvent.hh.

Referenced by AddHit(), Clear(), and GetNHits().

Float_t CaloEvent::fXExtrapol [private]

Definition at line 228 of file CaloEvent.hh.

Referenced by GetXExtrapol(), and SetXExtrapol().

Float_t CaloEvent::fYExtrapol [private]

Definition at line 229 of file CaloEvent.hh.

Referenced by GetYExtrapol(), and SetYExtrapol().

UInt_t CaloEvent::fTrkQuality [private]

Definition at line 230 of file CaloEvent.hh.

Referenced by GetTrkQuality(), and SetTrkQuality().

UInt_t CaloEvent::fDeltaTmax [private]

Definition at line 231 of file CaloEvent.hh.

Referenced by GetDeltaTmax(), and SetDeltaTmax().

UInt_t CaloEvent::fBcIdAbs [private]

Definition at line 232 of file CaloEvent.hh.

Referenced by GetBcIdAbs(), and SetBcIdAbs().


The documentation for this class was generated from the following files:
Generated on Mon Jan 7 13:18:02 2013 for MicromegasFramework by  doxygen 1.4.7