AliRoot Core  edcc906 (edcc906)
AliESDCaloTrigger Class Reference

Container with calorimeter trigger information in the ESD event. More...

#include <AliESDCaloTrigger.h>

Inheritance diagram for AliESDCaloTrigger:

Public Member Functions

 AliESDCaloTrigger ()
 
 AliESDCaloTrigger (const AliESDCaloTrigger &ctrig)
 
virtual ~AliESDCaloTrigger ()
 
AliESDCaloTriggeroperator= (const AliESDCaloTrigger &ctrig)
 
Bool_t IsEmpty ()
 
virtual void Reset ()
 
void Allocate (Int_t size)
 
void DeAllocate ()
 
Bool_t Add (Int_t col, Int_t row, Float_t amp, Float_t time, Int_t trgtimes[], Int_t ntrgtimes, Int_t trgts, Int_t trgbits)
 
Bool_t Add (Int_t col, Int_t row, Float_t amp, Float_t time, Int_t trgtimes[], Int_t ntrgtimes, Int_t trgts, Int_t subra, Int_t trgbits)
 
void SetL1Threshold (Int_t i, Int_t thr)
 
void SetL1Threshold (Int_t i, Int_t j, Int_t thr)
 
void SetL1V0 (const Int_t *v)
 
void SetL1V0 (Int_t i, const Int_t *v)
 
void SetL1FrameMask (Int_t m)
 
void SetL1FrameMask (Int_t i, Int_t m)
 
void SetTriggerBitWord (Int_t w)
 
void SetMedian (Int_t i, Int_t m)
 
void GetPosition (Int_t &col, Int_t &row) const
 Access to position of the current fastor channel. More...
 
void GetAmplitude (Float_t &amp) const
 Access to L0-amplitude of the current fastor channel. More...
 
void GetTime (Float_t &time) const
 
void GetTriggerBits (Int_t &bits) const
 Get the trigger bits for a given fastor position. More...
 
void GetNL0Times (Int_t &ntimes) const
 Get the number of L0 times for the current patch. More...
 
void GetL0Times (Int_t times[]) const
 Get level0 times for the current L0 patch. More...
 
Int_t GetEntries () const
 Get the number of entries in the trigger data. More...
 
void GetL1TimeSum (Int_t &timesum) const
 Get the L1 time sums (L1 ADC values) for the current fastor. More...
 
Int_t GetL1TimeSum () const
 Get the L1 time sums (L1 ADC values) for the current fastor. More...
 
void GetL1SubRegion (Int_t &subreg) const
 
Int_t GetL1SubRegion () const
 
Int_t GetL1Threshold (Int_t i) const
 
Int_t GetL1Threshold (Int_t i, Int_t j) const
 
Int_t GetL1V0 (Int_t i) const
 
Int_t GetL1V0 (Int_t i, Int_t j) const
 
Int_t GetL1FrameMask () const
 
Int_t GetL1FrameMask (Int_t i) const
 
Int_t GetMedian (Int_t i) const
 
Int_t GetTriggerBitWord () const
 
void GetTriggerBitWord (Int_t &bw) const
 
virtual Bool_t Next ()
 Forward to next trigger entry (fastor / L0 patch) More...
 
virtual void Copy (TObject &obj) const
 
virtual void Print (const Option_t *opt) const
 
- Public Member Functions inherited from AliVCaloTrigger
 AliVCaloTrigger ()
 
 AliVCaloTrigger (const char *name, const char *title)
 
 AliVCaloTrigger (const AliVCaloTrigger &ctrig)
 
virtual ~AliVCaloTrigger ()
 
AliVCaloTriggeroperator= (const AliVCaloTrigger &ctrig)
 
virtual Bool_t Add (Int_t, Int_t, Float_t, Float_t, Int_t *, Int_t, Int_t, Int_t)=0
 
virtual Bool_t Add (Int_t, Int_t, Float_t, Float_t, Int_t *, Int_t, Int_t, Int_t, Int_t)=0
 
virtual void GetL0Times (Int_t *) const =0
 Get level0 times for the current L0 patch. More...
 

Private Attributes

Int_t fNEntries
 Number of entries in the trigger object (usually mapped to fastor channels) More...
 
Int_t fCurrent
 Index of the current entry. More...
 
Int_t * fColumn
 
Int_t * fRow
 
Float_t * fAmplitude
 
Float_t * fTime
 
Int_t * fNL0Times
 
TArrayI * fL0Times
 
Int_t * fL1TimeSum
 
Int_t * fTriggerBits
 
Int_t fL1Threshold [4]
 L1 thresholds from raw data. More...
 
Int_t fL1V0 [2]
 L1 threshold components. More...
 
Int_t fL1FrameMask
 Validation flag for L1 data. More...
 
Int_t fL1DCALThreshold [4]
 L1 thresholds from raw data. More...
 
Int_t * fL1SubRegion
 
Int_t fL1DCALFrameMask
 Validation flag for L1 data. More...
 
Int_t fMedian [2]
 Background median. More...
 
Int_t fTriggerBitWord
 Trigger bit word. More...
 
Int_t fL1DCALV0 [2]
 L1 threshold components. More...
 

Detailed Description

Container with calorimeter trigger information in the ESD event.

Author
R. Guernane, LPSC Grenoble CNRS/IN2P3

Definition at line 17 of file AliESDCaloTrigger.h.

Constructor & Destructor Documentation

AliESDCaloTrigger::AliESDCaloTrigger ( )

Definition at line 34 of file AliESDCaloTrigger.cxx.

AliESDCaloTrigger::AliESDCaloTrigger ( const AliESDCaloTrigger ctrig)

Definition at line 63 of file AliESDCaloTrigger.cxx.

AliESDCaloTrigger::~AliESDCaloTrigger ( )
virtual

Definition at line 88 of file AliESDCaloTrigger.cxx.

Member Function Documentation

Bool_t AliESDCaloTrigger::Add ( Int_t  col,
Int_t  row,
Float_t  amp,
Float_t  time,
Int_t  trgtimes[],
Int_t  ntrgtimes,
Int_t  trgts,
Int_t  trgbits 
)

Definition at line 186 of file AliESDCaloTrigger.cxx.

Referenced by Add(), Copy(), AliEMCALReconstructor::FillESD(), and Reset().

Bool_t AliESDCaloTrigger::Add ( Int_t  col,
Int_t  row,
Float_t  amp,
Float_t  time,
Int_t  trgtimes[],
Int_t  ntrgtimes,
Int_t  trgts,
Int_t  subra,
Int_t  trgbits 
)

Definition at line 211 of file AliESDCaloTrigger.cxx.

void AliESDCaloTrigger::Allocate ( Int_t  size)
virtual

Implements AliVCaloTrigger.

Definition at line 154 of file AliESDCaloTrigger.cxx.

Referenced by Copy(), AliEMCALReconstructor::FillESD(), and Reset().

void AliESDCaloTrigger::Copy ( TObject &  obj) const
virtual

Reimplemented from AliVCaloTrigger.

Definition at line 125 of file AliESDCaloTrigger.cxx.

Referenced by AliESDCaloTrigger(), GetTriggerBitWord(), and operator=().

void AliESDCaloTrigger::DeAllocate ( )
virtual

Implements AliVCaloTrigger.

Definition at line 97 of file AliESDCaloTrigger.cxx.

Referenced by Copy(), Reset(), AliESDEvent::ResetStdContent(), and ~AliESDCaloTrigger().

void AliESDCaloTrigger::GetAmplitude ( Float_t &  amp) const
virtual

Access to L0-amplitude of the current fastor channel.

Parameters
[out]ampL0-amplitude for the given fastor channel

Implements AliVCaloTrigger.

Definition at line 242 of file AliESDCaloTrigger.cxx.

Referenced by SetMedian().

Int_t AliESDCaloTrigger::GetEntries ( ) const
inlinevirtual

Get the number of entries in the trigger data.

Returns
Number of entries

Implements AliVCaloTrigger.

Definition at line 97 of file AliESDCaloTrigger.h.

void AliESDCaloTrigger::GetL0Times ( Int_t  times[]) const

Get level0 times for the current L0 patch.

Parameters
timesL0 times for the current L0 patch

Definition at line 314 of file AliESDCaloTrigger.cxx.

Referenced by SetMedian().

Int_t AliESDCaloTrigger::GetL1FrameMask ( ) const
inlinevirtual

Implements AliVCaloTrigger.

Definition at line 120 of file AliESDCaloTrigger.h.

Int_t AliESDCaloTrigger::GetL1FrameMask ( Int_t  i) const
inlinevirtual

Implements AliVCaloTrigger.

Definition at line 121 of file AliESDCaloTrigger.h.

void AliESDCaloTrigger::GetL1SubRegion ( Int_t &  subreg) const
virtual

Implements AliVCaloTrigger.

Definition at line 278 of file AliESDCaloTrigger.cxx.

Int_t AliESDCaloTrigger::GetL1SubRegion ( ) const
virtual

Implements AliVCaloTrigger.

Definition at line 287 of file AliESDCaloTrigger.cxx.

Referenced by GetEntries().

Int_t AliESDCaloTrigger::GetL1Threshold ( Int_t  i) const
inlinevirtual

Implements AliVCaloTrigger.

Definition at line 114 of file AliESDCaloTrigger.h.

Int_t AliESDCaloTrigger::GetL1Threshold ( Int_t  i,
Int_t  j 
) const
inlinevirtual

Implements AliVCaloTrigger.

Definition at line 115 of file AliESDCaloTrigger.h.

void AliESDCaloTrigger::GetL1TimeSum ( Int_t &  timesum) const
virtual

Get the L1 time sums (L1 ADC values) for the current fastor.

Parameters
[out]timesumL1 timesums for the current fastor

Implements AliVCaloTrigger.

Definition at line 260 of file AliESDCaloTrigger.cxx.

Referenced by TestESD().

Int_t AliESDCaloTrigger::GetL1TimeSum ( ) const
virtual

Get the L1 time sums (L1 ADC values) for the current fastor.

Returns
L1 timesums for the current fastor

Implements AliVCaloTrigger.

Definition at line 269 of file AliESDCaloTrigger.cxx.

Referenced by GetEntries().

Int_t AliESDCaloTrigger::GetL1V0 ( Int_t  i) const
inlinevirtual

Implements AliVCaloTrigger.

Definition at line 117 of file AliESDCaloTrigger.h.

Int_t AliESDCaloTrigger::GetL1V0 ( Int_t  i,
Int_t  j 
) const
inlinevirtual

Implements AliVCaloTrigger.

Definition at line 118 of file AliESDCaloTrigger.h.

Int_t AliESDCaloTrigger::GetMedian ( Int_t  i) const
inlinevirtual

Implements AliVCaloTrigger.

Definition at line 123 of file AliESDCaloTrigger.h.

void AliESDCaloTrigger::GetNL0Times ( Int_t &  ntimes) const
virtual

Get the number of L0 times for the current patch.

Level0 times are handled per L0 patch. Indexing is different with respect to the fastor indexing.

Parameters
[out]ntimesNumber of level0

Implements AliVCaloTrigger.

Definition at line 296 of file AliESDCaloTrigger.cxx.

Referenced by SetMedian().

void AliESDCaloTrigger::GetPosition ( Int_t &  col,
Int_t &  row 
) const
virtual

Access to position of the current fastor channel.

Parameters
[out]colColumn of the current fastor in the detector plane
[out]rowRow of the current fastor in the detector plane

Implements AliVCaloTrigger.

Definition at line 232 of file AliESDCaloTrigger.cxx.

Referenced by SetMedian(), and TestESD().

void AliESDCaloTrigger::GetTime ( Float_t &  time) const
virtual

Implements AliVCaloTrigger.

Definition at line 251 of file AliESDCaloTrigger.cxx.

Referenced by SetMedian().

void AliESDCaloTrigger::GetTriggerBits ( Int_t &  bits) const
virtual

Get the trigger bits for a given fastor position.

Trigger bits define the starting position of online patches. They are defined in AliEMCALTriggerTypes.h. Note that for reconstructed patches an offset (MC offset) has to be taken into account

Parameters
[out]bitsTrigger bits connected to a given position

Implements AliVCaloTrigger.

Definition at line 305 of file AliESDCaloTrigger.cxx.

Referenced by SetMedian(), and TestESD().

Int_t AliESDCaloTrigger::GetTriggerBitWord ( ) const
inlinevirtual

Implements AliVCaloTrigger.

Definition at line 125 of file AliESDCaloTrigger.h.

void AliESDCaloTrigger::GetTriggerBitWord ( Int_t &  bw) const
inlinevirtual

Implements AliVCaloTrigger.

Definition at line 126 of file AliESDCaloTrigger.h.

Bool_t AliESDCaloTrigger::IsEmpty ( )
inlinevirtual

Implements AliVCaloTrigger.

Definition at line 26 of file AliESDCaloTrigger.h.

Bool_t AliESDCaloTrigger::Next ( )
virtual

Forward to next trigger entry (fastor / L0 patch)

Returns
True if successful (next entry existing), false otherwise (was already at the end of the buffer)

Implements AliVCaloTrigger.

Definition at line 221 of file AliESDCaloTrigger.cxx.

Referenced by GetTriggerBitWord(), and TestESD().

AliESDCaloTrigger & AliESDCaloTrigger::operator= ( const AliESDCaloTrigger ctrig)

Definition at line 116 of file AliESDCaloTrigger.cxx.

void AliESDCaloTrigger::Print ( const Option_t *  opt) const
virtual

Implements AliVCaloTrigger.

Definition at line 325 of file AliESDCaloTrigger.cxx.

Referenced by GetTriggerBitWord().

virtual void AliESDCaloTrigger::Reset ( void  )
inlinevirtual

Implements AliVCaloTrigger.

Definition at line 28 of file AliESDCaloTrigger.h.

Referenced by TestESD().

void AliESDCaloTrigger::SetL1FrameMask ( Int_t  m)
inlinevirtual

Implements AliVCaloTrigger.

Definition at line 44 of file AliESDCaloTrigger.h.

Referenced by Copy(), and AliEMCALReconstructor::FillESD().

void AliESDCaloTrigger::SetL1FrameMask ( Int_t  i,
Int_t  m 
)
inlinevirtual

Implements AliVCaloTrigger.

Definition at line 45 of file AliESDCaloTrigger.h.

void AliESDCaloTrigger::SetL1Threshold ( Int_t  i,
Int_t  thr 
)
inlinevirtual

Implements AliVCaloTrigger.

Definition at line 36 of file AliESDCaloTrigger.h.

Referenced by Copy(), and AliEMCALReconstructor::FillESD().

void AliESDCaloTrigger::SetL1Threshold ( Int_t  i,
Int_t  j,
Int_t  thr 
)
inlinevirtual

Implements AliVCaloTrigger.

Definition at line 37 of file AliESDCaloTrigger.h.

void AliESDCaloTrigger::SetL1V0 ( const Int_t *  v)
inlinevirtual

Implements AliVCaloTrigger.

Definition at line 39 of file AliESDCaloTrigger.h.

Referenced by Copy(), and AliEMCALReconstructor::FillESD().

void AliESDCaloTrigger::SetL1V0 ( Int_t  i,
const Int_t *  v 
)
inlinevirtual

Implements AliVCaloTrigger.

Definition at line 40 of file AliESDCaloTrigger.h.

void AliESDCaloTrigger::SetMedian ( Int_t  i,
Int_t  m 
)
inline

Definition at line 48 of file AliESDCaloTrigger.h.

Referenced by AliEMCALReconstructor::FillESD().

void AliESDCaloTrigger::SetTriggerBitWord ( Int_t  w)
inline

Definition at line 47 of file AliESDCaloTrigger.h.

Referenced by AliEMCALReconstructor::FillESD().

Member Data Documentation

Float_t* AliESDCaloTrigger::fAmplitude
private

Array with L0 amplitudes for a trigger entry, one entry corresponds to a certain fastor channel

Definition at line 150 of file AliESDCaloTrigger.h.

Referenced by Add(), Allocate(), Copy(), DeAllocate(), GetAmplitude(), and Print().

Int_t* AliESDCaloTrigger::fColumn
private

Array of col positions for a trigger entry, one entry corresponds to a certain fastor channel

Definition at line 144 of file AliESDCaloTrigger.h.

Referenced by Add(), Allocate(), Copy(), DeAllocate(), GetPosition(), and Print().

Int_t AliESDCaloTrigger::fCurrent
private
TArrayI* AliESDCaloTrigger::fL0Times
private

Array of Level0 times, one entry corresponds to a certain L0 patch

Definition at line 159 of file AliESDCaloTrigger.h.

Referenced by Add(), Allocate(), Copy(), DeAllocate(), GetL0Times(), Print(), and ~AliESDCaloTrigger().

Int_t AliESDCaloTrigger::fL1DCALFrameMask
private

Validation flag for L1 data.

Definition at line 177 of file AliESDCaloTrigger.h.

Referenced by Copy(), GetL1FrameMask(), and SetL1FrameMask().

Int_t AliESDCaloTrigger::fL1DCALThreshold[4]
private

L1 thresholds from raw data.

Definition at line 175 of file AliESDCaloTrigger.h.

Referenced by Copy(), GetL1Threshold(), and SetL1Threshold().

Int_t AliESDCaloTrigger::fL1DCALV0[2]
private

L1 threshold components.

Definition at line 180 of file AliESDCaloTrigger.h.

Referenced by Copy(), GetL1V0(), and SetL1V0().

Int_t AliESDCaloTrigger::fL1FrameMask
private

Validation flag for L1 data.

Definition at line 173 of file AliESDCaloTrigger.h.

Referenced by Copy(), GetL1FrameMask(), and SetL1FrameMask().

Int_t* AliESDCaloTrigger::fL1SubRegion
private

Definition at line 176 of file AliESDCaloTrigger.h.

Referenced by Add(), Allocate(), Copy(), DeAllocate(), and GetL1SubRegion().

Int_t AliESDCaloTrigger::fL1Threshold[4]
private

L1 thresholds from raw data.

Definition at line 171 of file AliESDCaloTrigger.h.

Referenced by Copy(), GetL1Threshold(), Print(), and SetL1Threshold().

Int_t* AliESDCaloTrigger::fL1TimeSum
private

Array of the L1 time sums (L1 ADC values), one entry corresponds to a certain fastor channel

Definition at line 162 of file AliESDCaloTrigger.h.

Referenced by Add(), Allocate(), Copy(), DeAllocate(), GetL1TimeSum(), and Print().

Int_t AliESDCaloTrigger::fL1V0[2]
private

L1 threshold components.

Definition at line 172 of file AliESDCaloTrigger.h.

Referenced by Copy(), GetL1V0(), and SetL1V0().

Int_t AliESDCaloTrigger::fMedian[2]
private

Background median.

Definition at line 178 of file AliESDCaloTrigger.h.

Referenced by GetMedian(), and SetMedian().

Int_t AliESDCaloTrigger::fNEntries
private

Number of entries in the trigger object (usually mapped to fastor channels)

Definition at line 140 of file AliESDCaloTrigger.h.

Referenced by Allocate(), Copy(), DeAllocate(), GetEntries(), IsEmpty(), Next(), and ~AliESDCaloTrigger().

Int_t* AliESDCaloTrigger::fNL0Times
private

Array of the number of Level0 times, one entry corresponds to a certain L0 patch

Definition at line 156 of file AliESDCaloTrigger.h.

Referenced by Add(), Allocate(), Copy(), DeAllocate(), GetL0Times(), GetNL0Times(), and Print().

Int_t* AliESDCaloTrigger::fRow
private

Array of row positions for a trigger entry, one entry corresponds to a certain fastor channel

Definition at line 147 of file AliESDCaloTrigger.h.

Referenced by Add(), Allocate(), Copy(), DeAllocate(), GetPosition(), and Print().

Float_t* AliESDCaloTrigger::fTime
private

Array of trigger times, one entry corresponds to a certain fastor channel

Definition at line 153 of file AliESDCaloTrigger.h.

Referenced by Add(), Allocate(), Copy(), DeAllocate(), GetTime(), and Print().

Int_t* AliESDCaloTrigger::fTriggerBits
private

Array of trigger bits: Each bit position corresponds to a certain trigger (L0/L1) fired. Note that there is a MC offset to be taken into account. Reconsturcted triggers start from the position of the MC offset. Trigger bits are defined in AliEMCALTriggerTypes.h. One entry correspons to a certain fastor position.

Definition at line 169 of file AliESDCaloTrigger.h.

Referenced by Add(), Allocate(), Copy(), DeAllocate(), GetTriggerBits(), and Print().

Int_t AliESDCaloTrigger::fTriggerBitWord
private

Trigger bit word.

Definition at line 179 of file AliESDCaloTrigger.h.

Referenced by GetTriggerBitWord(), and SetTriggerBitWord().


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