AliPhysics  c2a2810 (c2a2810)
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
AliEmcalTriggerPatchInfo Class Reference

Main data structure storing all relevant information of EMCAL/DCAL trigger patches. More...

#include <AliEmcalTriggerPatchInfo.h>

Inheritance diagram for AliEmcalTriggerPatchInfo:

Public Types

enum  TriggerMakerBits_t { kRecalcJetBitNum = 22, kRecalcGammaBitNum = 23, kMainTriggerBitNum = 24, kSimpleOfflineBitNum = 25 }
 

Public Member Functions

 AliEmcalTriggerPatchInfo ()
 
 AliEmcalTriggerPatchInfo (const AliEmcalTriggerPatchInfo &p)
 
AliEmcalTriggerPatchInfooperator= (const AliEmcalTriggerPatchInfo &p)
 
virtual ~AliEmcalTriggerPatchInfo ()
 
Double_t GetPhiGeo () const
 
Double_t GetPhiCM () const
 
Double_t GetPhiMin () const
 
Double_t GetPhiMax () const
 
Double_t GetEtaGeo () const
 
Double_t GetEtaCM () const
 
Double_t GetEtaMin () const
 
Double_t GetEtaMax () const
 
Double_t GetPatchE () const
 
Int_t GetADCAmp () const
 
Int_t GetADCOfflineAmp () const
 
Double_t GetADCAmpGeVRough () const
 
Int_t GetTriggerBits () const
 
Int_t GetEdgeCellX () const
 
Int_t GetEdgeCellY () const
 
void GetCellIndices (AliEMCALGeometry *geom, TArrayI *cells)
 
Bool_t IsLevel0 () const
 
Bool_t IsJetLow () const
 
Bool_t IsJetHigh () const
 
Bool_t IsGammaLow () const
 
Bool_t IsGammaHigh () const
 
Bool_t IsMainTrigger () const
 
Bool_t IsJetLowSimple () const
 
Bool_t IsJetHighSimple () const
 
Bool_t IsGammaLowSimple () const
 
Bool_t IsGammaHighSimple () const
 
Bool_t IsMainTriggerSimple () const
 
Bool_t IsOfflineSimple () const
 
Bool_t IsRecalcJet () const
 
Bool_t IsRecalcGamma () const
 
void SetCenterGeo (TVector3 &v, Double_t e)
 
void SetCenterGeo (TLorentzVector &v)
 
void SetCenterMass (TLorentzVector &v)
 
void SetCenterMass (TVector3 &v, Double_t e)
 
void SetEdge1 (TLorentzVector &v)
 
void SetEdge1 (TVector3 &v, Double_t e)
 
void SetEdge2 (TLorentzVector &v)
 
void SetEdge2 (TVector3 &v, Double_t e)
 
void SetADCAmp (Int_t a)
 
void SetADCOfflineAmp (Int_t a)
 
void SetEdgeCell (Int_t x, Int_t y)
 
void SetOfflineSimple ()
 
void SetLorentzVector (TLorentzVector &lv, TVector3 &v, Double_t e)
 
void SetTriggerBits (Int_t i)
 
void SetOffSet (Int_t i)
 
void SetTriggerBitConfig (const AliEmcalTriggerBitConfig *ref)
 
const AliEmcalTriggerBitConfigGetTriggerBitConfig () const
 

Protected Attributes

TLorentzVector fCenterGeo
 geometrical center More...
 
TLorentzVector fCenterMass
 CM. More...
 
TLorentzVector fEdge1
 max eta/ min phi edge More...
 
TLorentzVector fEdge2
 min eta/ max phi edge More...
 
Int_t fADCAmp
 online (trigger) ADC amplitude More...
 
Int_t fADCOfflineAmp
 offline (FEE) ADC amplitude More...
 
Int_t fTriggerBits
 trigger bit mask, see definitions in AliEmcalTriggerType and TriggerMakerBits_t (above) More...
 
Int_t fEdgeCell [2]
 cell "bottom lower" edge (min phi, max eta) More...
 
Int_t fOffSet
 offset of bit (different in data and MC) More...
 
AliEmcalTriggerBitConfig fTriggerBitConfig
 Trigger bit configuration. More...
 

Detailed Description

Main data structure storing all relevant information of EMCAL/DCAL trigger patches.

Emcal trigger patch information class Can contain three types of information, distinguished by the various bits in the bit field:

  1. online trigger information (no extra bits set)
  2. offline recalculated trigger patches (bit 25, kSimpleOfflineTriggerBit set)
  3. highest patch energy, also for events that did not fire the trigger (bits 22, 23 kRecalc... (using both online and offline info, use bit 25 to distinguish)

Definition at line 39 of file AliEmcalTriggerPatchInfo.h.

Member Enumeration Documentation

Enumerator
kRecalcJetBitNum 

Trigger bit for recalculated jet patches.

kRecalcGammaBitNum 

Trigger bit for recalculated gamma patches.

kMainTriggerBitNum 

Trigger bit indicating the main (highest energy) trigger patch of a given type per event.

kSimpleOfflineBitNum 

Trigger bit indicating that the patch was created by the offline trigger algorithm.

Definition at line 49 of file AliEmcalTriggerPatchInfo.h.

Constructor & Destructor Documentation

AliEmcalTriggerPatchInfo::AliEmcalTriggerPatchInfo ( )

Default constructor

Definition at line 23 of file AliEmcalTriggerPatchInfo.cxx.

AliEmcalTriggerPatchInfo::AliEmcalTriggerPatchInfo ( const AliEmcalTriggerPatchInfo p)

Copy constructor

Parameters
pReference for the copy

Definition at line 44 of file AliEmcalTriggerPatchInfo.cxx.

AliEmcalTriggerPatchInfo::~AliEmcalTriggerPatchInfo ( )
virtual

Destructor

Definition at line 64 of file AliEmcalTriggerPatchInfo.cxx.

Member Function Documentation

Double_t AliEmcalTriggerPatchInfo::GetADCAmpGeVRough ( ) const
inline
void AliEmcalTriggerPatchInfo::GetCellIndices ( AliEMCALGeometry *  geom,
TArrayI *  cells 
)

Return cell indices of the given patch in the cell array

Parameters
geomEMCAL Geometry used in the run where the trigger patch was created from
cellsOutput array of cell indices corresponding to the given trigger patch

Definition at line 96 of file AliEmcalTriggerPatchInfo.cxx.

Int_t AliEmcalTriggerPatchInfo::GetEdgeCellX ( ) const
inline

Get X position of the edge cell

Returns
Cell x-position

Definition at line 125 of file AliEmcalTriggerPatchInfo.h.

Referenced by GetCellIndices().

Int_t AliEmcalTriggerPatchInfo::GetEdgeCellY ( ) const
inline

Get Y position of the edge cell

Returns
Cell y-position

Definition at line 130 of file AliEmcalTriggerPatchInfo.h.

Referenced by GetCellIndices().

Double_t AliEmcalTriggerPatchInfo::GetEtaCM ( ) const
inline

Get \( \eta \) of the patch at the center of mass

Returns
Patch \( \eta \)

Definition at line 85 of file AliEmcalTriggerPatchInfo.h.

Double_t AliEmcalTriggerPatchInfo::GetEtaGeo ( ) const
inline
Double_t AliEmcalTriggerPatchInfo::GetEtaMax ( ) const
inline

Get maximum \( \eta \) of the patch

Returns
Patch \( \eta \)

Definition at line 95 of file AliEmcalTriggerPatchInfo.h.

Double_t AliEmcalTriggerPatchInfo::GetEtaMin ( ) const
inline

Get minimum \( \eta \) of the patch

Returns
Patch \( \eta \)

Definition at line 90 of file AliEmcalTriggerPatchInfo.h.

Double_t AliEmcalTriggerPatchInfo::GetPhiCM ( ) const
inline

Access \( \phi \) angle of the patch at the center of mass

Returns
\( \phi \) angle

Definition at line 65 of file AliEmcalTriggerPatchInfo.h.

Double_t AliEmcalTriggerPatchInfo::GetPhiGeo ( ) const
inline
Double_t AliEmcalTriggerPatchInfo::GetPhiMax ( ) const
inline

Get maximal \( \phi \) of the patch

Returns
\( \phi \) angle

Definition at line 75 of file AliEmcalTriggerPatchInfo.h.

Double_t AliEmcalTriggerPatchInfo::GetPhiMin ( ) const
inline

Get minimal \( \phi \) of the patch

Returns
\( \phi \) angle

Definition at line 70 of file AliEmcalTriggerPatchInfo.h.

const AliEmcalTriggerBitConfig* AliEmcalTriggerPatchInfo::GetTriggerBitConfig ( ) const
inline

Get the trigger bit configuration used to create the trigger patch

Returns
Trigger bit configuration of the patch

Definition at line 295 of file AliEmcalTriggerPatchInfo.h.

Int_t AliEmcalTriggerPatchInfo::GetTriggerBits ( ) const
inline

Get the trigger bits of the classes which fired the patch

Returns
Selected trigger bits

Definition at line 120 of file AliEmcalTriggerPatchInfo.h.

Referenced by AliEmcalTriggerMaker::Run().

Bool_t AliEmcalTriggerPatchInfo::IsMainTrigger ( ) const
inline

Check whether patch is the main EMCAL trigger patch of a given trigger type, found by the trigger electronics or the trigger simulation

Returns
True if patch is the main trigger patch, false otherwise

Definition at line 162 of file AliEmcalTriggerPatchInfo.h.

Referenced by EMCalTriggerPtAnalysis::AliEMCalTriggerPatchAnalysisComponent::FillAmplitudeHistogram(), EMCalTriggerPtAnalysis::AliEMCalTriggerPatchAnalysisComponent::FillTriggerInfoHistogram(), and EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::Run().

Bool_t AliEmcalTriggerPatchInfo::IsMainTriggerSimple ( ) const
inline

Check whether patch is the main EMCAL trigger patch of a given trigger type, found by the simple offline trigger

Returns
True if patch is the main trigger patch, false otherwise

Definition at line 187 of file AliEmcalTriggerPatchInfo.h.

Referenced by EMCalTriggerPtAnalysis::AliEMCalTriggerPatchAnalysisComponent::FillAmplitudeHistogram(), and EMCalTriggerPtAnalysis::AliEMCalTriggerPatchAnalysisComponent::FillTriggerInfoHistogram().

Bool_t AliEmcalTriggerPatchInfo::IsRecalcGamma ( ) const
inline

Check if the patch is a recalculated gamma patch

Returns
True if the patch is a recalculated gamma patch, false otherwise

Definition at line 204 of file AliEmcalTriggerPatchInfo.h.

Bool_t AliEmcalTriggerPatchInfo::IsRecalcJet ( ) const
inline

Check if the patch is a recalculated jet patch

Returns
True if the patch is a recalculated jet patch, false otherwise

Definition at line 199 of file AliEmcalTriggerPatchInfo.h.

AliEmcalTriggerPatchInfo & AliEmcalTriggerPatchInfo::operator= ( const AliEmcalTriggerPatchInfo p)

Assignment operator

Parameters
pReference for assignment
Returns
This object after assignment

Definition at line 74 of file AliEmcalTriggerPatchInfo.cxx.

void AliEmcalTriggerPatchInfo::SetADCAmp ( Int_t  a)
inline

Set online ADC amplitude

Parameters
aOnline ADC amplitude

Definition at line 254 of file AliEmcalTriggerPatchInfo.h.

Referenced by AliEmcalTriggerMaker::ProcessPatch(), and AliEmcalPatchFromCellMaker::RunSimpleOfflineTrigger().

void AliEmcalTriggerPatchInfo::SetADCOfflineAmp ( Int_t  a)
inline

Set offline ADC amplitude (derived from cell energies converted to ADC amplitude)

Parameters
aOffline ADC amplitude

Definition at line 259 of file AliEmcalTriggerPatchInfo.h.

Referenced by AliEmcalTriggerMaker::ProcessPatch().

void AliEmcalTriggerPatchInfo::SetCenterGeo ( TVector3 &  v,
Double_t  e 
)
inline

Set the geometric center position of the patch

Parameters
vPosition 3-vector
ePatch energy

Definition at line 211 of file AliEmcalTriggerPatchInfo.h.

Referenced by AliEmcalTriggerMaker::ProcessPatch(), and AliEmcalPatchFromCellMaker::RunSimpleOfflineTrigger().

void AliEmcalTriggerPatchInfo::SetCenterGeo ( TLorentzVector &  v)
inline

Set the geometric center position of the patch

Parameters
vPosition Lorentz vector

Definition at line 216 of file AliEmcalTriggerPatchInfo.h.

void AliEmcalTriggerPatchInfo::SetCenterMass ( TLorentzVector &  v)
inline

Set the center-of-mass position of the trigger patch

Parameters
vPosition Lorentz vector

Definition at line 221 of file AliEmcalTriggerPatchInfo.h.

Referenced by AliEmcalTriggerMaker::ProcessPatch().

void AliEmcalTriggerPatchInfo::SetCenterMass ( TVector3 &  v,
Double_t  e 
)
inline

Set the center-of-mass position of the trigger patch

Parameters
vPosition 3-vector
ePatch energy

Definition at line 227 of file AliEmcalTriggerPatchInfo.h.

void AliEmcalTriggerPatchInfo::SetEdge1 ( TLorentzVector &  v)
inline

Set lower edge position of the trigger patch

Parameters
vPosition Lorentz vector

Definition at line 232 of file AliEmcalTriggerPatchInfo.h.

Referenced by AliEmcalTriggerMaker::ProcessPatch(), and AliEmcalPatchFromCellMaker::RunSimpleOfflineTrigger().

void AliEmcalTriggerPatchInfo::SetEdge1 ( TVector3 &  v,
Double_t  e 
)
inline

Set lower edge position of the trigger patch

Parameters
vPosition 3-vector
ePatch energy

Definition at line 238 of file AliEmcalTriggerPatchInfo.h.

void AliEmcalTriggerPatchInfo::SetEdge2 ( TLorentzVector &  v)
inline

Set upper edge position of the trigger patch

Parameters
vLorentz-vector of the upper edge position of the trigger patch

Definition at line 243 of file AliEmcalTriggerPatchInfo.h.

Referenced by AliEmcalTriggerMaker::ProcessPatch(), and AliEmcalPatchFromCellMaker::RunSimpleOfflineTrigger().

void AliEmcalTriggerPatchInfo::SetEdge2 ( TVector3 &  v,
Double_t  e 
)
inline

Set upper edge position of the trigger patch

Parameters
vPosition 3-vector
ePatch Energy

Definition at line 249 of file AliEmcalTriggerPatchInfo.h.

void AliEmcalTriggerPatchInfo::SetEdgeCell ( Int_t  x,
Int_t  y 
)
inline

Set Indices in x and y of the edge cell

Parameters
xCell index in x-direction
yCell index in y-direction

Definition at line 265 of file AliEmcalTriggerPatchInfo.h.

Referenced by AliEmcalTriggerMaker::ProcessPatch(), and AliEmcalPatchFromCellMaker::RunSimpleOfflineTrigger().

void AliEmcalTriggerPatchInfo::SetLorentzVector ( TLorentzVector &  lv,
TVector3 &  v,
Double_t  e 
)

Define Lorentz vector of the given trigger patch

Parameters
lvLorentz vector to be defined
vPatch vector position
ePatch energy

Definition at line 135 of file AliEmcalTriggerPatchInfo.cxx.

Referenced by SetCenterGeo(), SetCenterMass(), SetEdge1(), and SetEdge2().

void AliEmcalTriggerPatchInfo::SetOfflineSimple ( )
inline

Mark patch as created by the simple offline trigger

Definition at line 269 of file AliEmcalTriggerPatchInfo.h.

void AliEmcalTriggerPatchInfo::SetOffSet ( Int_t  i)
inline

Set the MC trigger bit offset

Parameters
iMC trigger bit offset

Definition at line 283 of file AliEmcalTriggerPatchInfo.h.

Referenced by AliEmcalTriggerMaker::ProcessPatch().

void AliEmcalTriggerPatchInfo::SetTriggerBitConfig ( const AliEmcalTriggerBitConfig ref)
inline

Set the trigger bit configuration

Parameters
refTrigger bit configuration used to create the patch

Definition at line 289 of file AliEmcalTriggerPatchInfo.h.

Referenced by AliEmcalTriggerMaker::ProcessPatch(), and AliEmcalPatchFromCellMaker::RunSimpleOfflineTrigger().

void AliEmcalTriggerPatchInfo::SetTriggerBits ( Int_t  i)
inline

Set the trigger bits

Parameters
iTrigger bits of the patch

Definition at line 277 of file AliEmcalTriggerPatchInfo.h.

Referenced by AliEmcalTriggerMaker::ProcessPatch(), and AliEmcalTriggerMaker::Run().

Member Data Documentation

Int_t AliEmcalTriggerPatchInfo::fADCAmp
protected

online (trigger) ADC amplitude

Definition at line 305 of file AliEmcalTriggerPatchInfo.h.

Referenced by GetADCAmp(), GetADCAmpGeVRough(), operator=(), and SetADCAmp().

Int_t AliEmcalTriggerPatchInfo::fADCOfflineAmp
protected

offline (FEE) ADC amplitude

Definition at line 306 of file AliEmcalTriggerPatchInfo.h.

Referenced by GetADCOfflineAmp(), operator=(), and SetADCOfflineAmp().

TLorentzVector AliEmcalTriggerPatchInfo::fCenterGeo
protected

geometrical center

Definition at line 301 of file AliEmcalTriggerPatchInfo.h.

Referenced by GetEtaGeo(), GetPatchE(), GetPhiGeo(), operator=(), and SetCenterGeo().

TLorentzVector AliEmcalTriggerPatchInfo::fCenterMass
protected

CM.

Definition at line 302 of file AliEmcalTriggerPatchInfo.h.

Referenced by GetEtaCM(), GetPhiCM(), operator=(), and SetCenterMass().

TLorentzVector AliEmcalTriggerPatchInfo::fEdge1
protected

max eta/ min phi edge

Definition at line 303 of file AliEmcalTriggerPatchInfo.h.

Referenced by GetEtaMax(), GetPhiMin(), operator=(), and SetEdge1().

TLorentzVector AliEmcalTriggerPatchInfo::fEdge2
protected

min eta/ max phi edge

Definition at line 304 of file AliEmcalTriggerPatchInfo.h.

Referenced by GetEtaMin(), GetPhiMax(), operator=(), and SetEdge2().

Int_t AliEmcalTriggerPatchInfo::fEdgeCell[2]
protected

cell "bottom lower" edge (min phi, max eta)

Definition at line 308 of file AliEmcalTriggerPatchInfo.h.

Referenced by AliEmcalTriggerPatchInfo(), GetEdgeCellX(), GetEdgeCellY(), operator=(), and SetEdgeCell().

Int_t AliEmcalTriggerPatchInfo::fOffSet
protected
AliEmcalTriggerBitConfig AliEmcalTriggerPatchInfo::fTriggerBitConfig
protected
Int_t AliEmcalTriggerPatchInfo::fTriggerBits
protected

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