AliPhysics  9b6b435 (9b6b435)
AliEmcalTriggerMakerKernel Class Reference

Kernel of the EMCAL trigger patch maker. More...

#include <AliEmcalTriggerMakerKernel.h>

Inheritance diagram for AliEmcalTriggerMakerKernel:

Public Types

enum  ELevel0TriggerStatus_t { kNotLevel0, kLevel0Candidate, kLevel0Fired }
 

Public Member Functions

 AliEmcalTriggerMakerKernel ()
 Constructor. More...
 
virtual ~AliEmcalTriggerMakerKernel ()
 Destructor. More...
 
void Init ()
 Initialize the trigger maker Kernel. More...
 
void CreateTriggerPatches (const AliVEvent *inputevent, std::vector< AliEMCALTriggerPatchInfo > &outputcont, Bool_t useL0amp=kFALSE)
 Run patch finders on input data. More...
 
const std::set< Short_t > & GetListOfBadFastORAbsIDs () const
 Get the list of online masked FastOR's used in the trigger maker. More...
 
const std::set< Short_t > & GetListOfOfflineBadCellAbsIDs () const
 Get the list of bad cells used when calculating offline patch energy. More...
 
void SetTriggerThresholdJetLow (Int_t a, Int_t b, Int_t c)
 
void SetTriggerThresholdJetHigh (Int_t a, Int_t b, Int_t c)
 
void SetTriggerThresholdGammaLow (Int_t a, Int_t b, Int_t c)
 
void SetTriggerThresholdGammaHigh (Int_t a, Int_t b, Int_t c)
 
void SetBackgroundThreshold (Int_t t)
 
void SetL0Threshold (Int_t t)
 
void SetOnlineBackgroundSubtraction (Bool_t doSubtraction)
 Switch on median subtraction of the online ADC value. More...
 
double GetL0TriggerChannelAmplitude (Int_t col, Int_t row) const
 Get L0 amplitude of a given trigger channel (in col-row space) More...
 
double GetTriggerChannelADC (Int_t col, Int_t row) const
 Get ADC value of a given trigger channel (in col-row space) More...
 
double GetTriggerChannelEnergyRough (Int_t col, Int_t row) const
 Get estimated energy of the trigger channel based on ADC measurement (in col-row space) More...
 
double GetTriggerChannelADCSimple (Int_t col, Int_t row) const
 Get ADC value of trigger channel estimated from cell energies. More...
 
double GetTriggerChannelEnergy (Int_t col, Int_t row) const
 Get energy of the trigger channel estimated from cells (in col-row space) More...
 
double GetTriggerChannelEnergySmeared (Int_t col, Int_t row) const
 Get (simulated) smeared energy of a trigger channel estimated based on the measured energy from cells (in col-row space) More...
 
double GetDataGridDimensionRows () const
 Get the dimension of the underlying data grids in row direction. More...
 
void SetIsMC (Bool_t isMC)
 Define whether running on MC or not (for offset) More...
 
void SetGeometry (const AliEMCALGeometry *const geo)
 Provide the EMCAL geometry to the trigger maker Kernel. More...
 
void SetTriggerBitConfig (const AliEMCALTriggerBitConfig *const config)
 Set the trigger bit configuration applied for the given data set. More...
 
void SetL0TimeRange (Int_t min, Int_t max)
 Set range for L0 time. More...
 
void SetFastORandCellThresholds (Int_t l0, Int_t l1, Int_t cell)
 Set thresholds applied to FastORs and offline cells before patch reconstruction. More...
 
void SetL1ADCtoGeVConversion (Double_t conversionfactor)
 Set conversion between ADC counts and energy in GeV. More...
 
void AddFastORBadChannel (Short_t absId)
 Add a FastOR bad channel to the list. More...
 
void ReadFastORBadChannelFromStream (std::istream &stream)
 Read the FastOR bad channel map from a standard stream. More...
 
void ClearFastORBadChannels ()
 Clear FastOR bad channel list. More...
 
void ReadFastORBadChannelFromFile (const char *fname)
 Read the FastOR bad channel map from a text file. More...
 
void AddOfflineBadChannel (Short_t absId)
 Add an offline bad channel to the set. More...
 
void ReadOfflineBadChannelFromStream (std::istream &stream)
 Read the offline bad channel map from a standard stream. More...
 
void ReadOfflineBadChannelFromFile (const char *fname)
 Read the offline bad channel map from a text file. More...
 
void ClearOfflineBadChannels ()
 Clear offline bad channel list. More...
 
void ReadFastORPedestalFromStream (std::istream &stream)
 Read the FastOR pedestals from a standard stream. More...
 
void ReadFastORPedestalFromFile (const char *fname)
 Read the FastOR pedestals from a text file. More...
 
void SetFastORPedestal (Short_t absId, Float_t ped)
 Set the pedestal value for a FastOR. More...
 
void ResetFastORPedestal ()
 Reset the FastOR pedestal array. More...
 
void SetMaxAbsCellTime (Double_t maxCellTime)
 Set symmmetric limit of the cell time allowed to accept the cell contributing to cell offline energy / offline patches. More...
 
void SetAcceptCellTimeRange (Double_t minCellTime, Double_t maxCellTime)
 Set symmmetric limit of the cell time allowed to accept the cell contributing to cell offline energy / offline patches. More...
 
void SetLowerCellTimeCut (Double_t minCellTime)
 Set lower cut on the cell time allowed to accept the cell contributing to cell offline energy / offline patches. More...
 
void SetUpperCellTimeCut (Double_t maxCellTime)
 Set upper cut on the cell time allowed to accept the cell contributing to cell offline energy / offline patches. More...
 
void SetMinFEEAmplitude (Double_t minamp)
 Set cut on the minimum cell amplitude. More...
 
void SetApplyOnlineBadChannelMaskingToOffline (Bool_t doApply=kTRUE)
 Apply online bad channel masking to offline channel energies. This means that cell energies in cells within FastOrs that are masked online are ignored. By applying this the online trigger acceptance can be applied to offline patches as well. More...
 
void Reset ()
 Reset all data grids and VZERO-dependent L1 thresholds. More...
 
void ReadTriggerData (AliVCaloTrigger *trigger)
 Read the calo trigger data. More...
 
void ReadCellData (AliVCaloCells *cells)
 Read the EMCAL cell data. More...
 
void BuildL1ThresholdsOffline (const AliVVZERO *vzdata)
 Build VZERO-dependent thresholds for the offline trigger. More...
 
void AddL1TriggerAlgorithm (Int_t rowmin, Int_t rowmax, UInt_t bitmask, Int_t patchSize, Int_t subregionSize)
 
void SetL0TriggerAlgorithm (Int_t rowmin, Int_t rowmax, UInt_t bitmask, Int_t patchSize, Int_t subregionSize)
 Set the L0 algorithm. More...
 
void SetSmearModel (TF1 *mean, TF1 *width)
 Set energy-dependent models for gaussian energy smearing. More...
 
void SetSmearThreshold (Double_t threshold)
 Set the energy threshold for smearing. More...
 
void SetScaleShift (Double_t scaleshift)
 Simulate constant shift of the EMCAL Energy scale. More...
 
Bool_t IsConfigured () const
 
void ConfigureForPbPb2015 ()
 Configure the class for 2015 PbPb. More...
 
void ConfigureForPP2015 ()
 Configure the class for 2015 pp. More...
 
void ConfigureForPP20158x8 ()
 Configure the class for 2015 pp. More...
 
void ConfigureForPPb2013 ()
 Configure the class for 2013 pPb. More...
 
void ConfigureForPP2012 ()
 Configure the class for 2012 pp. More...
 
void ConfigureForPbPb2011 ()
 Configure the class for 2011 PbPb. More...
 
void ConfigureForPP2011 ()
 Configure the class for 2011 pp. More...
 

Protected Types

enum  { kColsEta = 48 }
 
enum  { kIndRhoEMCAL = 0, kIndRhoDCAL = 1, kNIndRho = 2 }
 

Protected Member Functions

ELevel0TriggerStatus_t CheckForL0 (Int_t col, Int_t row) const
 Accept trigger patch as Level0 patch. More...
 
Bool_t IsGammaPatch (const AliEMCALTriggerRawPatch &patch) const
 Check from the bitmask whether the patch is a gamma patch. More...
 
Bool_t IsJetPatch (const AliEMCALTriggerRawPatch &patch) const
 Check from the bitmask whether the patch is a jet patch. More...
 
Bool_t IsBkgPatch (const AliEMCALTriggerRawPatch &patch) const
 Check from the bitmask whether the patch is a background patch. More...
 
bool HasPHOSOverlap (const AliEMCALTriggerRawPatch &patch) const
 

Protected Attributes

std::set< Short_tfBadChannels
 Container of bad channels. More...
 
std::set< Short_tfOfflineBadChannels
 Abd ID of offline bad channels. More...
 
TArrayF fFastORPedestal
 FastOR pedestal. More...
 
const AliEMCALTriggerBitConfig * fTriggerBitConfig
 Trigger bit configuration, aliroot-dependent. More...
 
AliEMCALTriggerPatchFinder< double > * fPatchFinder
 The actual patch finder. More...
 
AliEMCALTriggerAlgorithm< double > * fLevel0PatchFinder
 Patch finder for Level0 patches. More...
 
Int_t fL0MinTime
 Minimum L0 time. More...
 
Int_t fL0MaxTime
 Maximum L0 time. More...
 
Int_t fMinCellAmp
 Minimum offline amplitude of the cells used to generate the patches. More...
 
Int_t fMinL0FastORAmp
 Minimum L0 amplitude of the FastORs used to generate the patches. More...
 
Int_t fMinL1FastORAmp
 Minimum L1 amplitude of the FastORs used to generate the patches. More...
 
Int_t fThresholdConstants [4][3]
 simple offline trigger thresholds constants More...
 
ULong64_t fL1ThresholdsOffline [4]
 container for V0-dependent offline thresholds More...
 
Int_t fBkgThreshold
 threshold for the background patches (8x8) More...
 
Int_t fL0Threshold
 threshold for the L0 patches (2x2) More...
 
Bool_t fIsMC
 Set MC offset. More...
 
Int_t fDebugLevel
 Debug lebel;. More...
 
Double_t fCellTimeLimits [2]
 Maximum allowed abs cell time (default [0] = - 10000, [1] = 10000) More...
 
Double_t fMinCellAmplitude
 Minimum amplitude in cell required to be considered for filling the data grid. More...
 
Bool_t fApplyOnlineBadChannelsToOffline
 Apply online bad channels to offline ADC values. More...
 
Bool_t fConfigured
 Switch specifying whether the trigger maker kernel has been configured for a given data set. More...
 
TF1 * fSmearModelMean
 Smearing parameterization for the mean. More...
 
TF1 * fSmearModelSigma
 Smearing parameterization for the width. More...
 
Double_t fSmearThreshold
 Smear threshold: Only cell energies above threshold are smeared. More...
 
Double_t fScaleShift
 Scale shift simulation. More...
 
Bool_t fDoBackgroundSubtraction
 Swtich for background subtraction (only online ADC) More...
 
const AliEMCALGeometry * fGeometry
 ! Underlying EMCAL geometry More...
 
AliEMCALTriggerDataGrid< double > * fPatchAmplitudes
 ! TRU Amplitudes (for L0) More...
 
AliEMCALTriggerDataGrid< double > * fPatchADCSimple
 ! patch map for simple offline trigger More...
 
AliEMCALTriggerDataGrid< double > * fPatchADC
 ! ADC values map More...
 
AliEMCALTriggerDataGrid< double > * fPatchEnergySimpleSmeared
 ! Data grid for smeared energy values from cell energies More...
 
AliEMCALTriggerDataGrid< char > * fLevel0TimeMap
 ! Map needed to store the level0 times More...
 
AliEMCALTriggerDataGrid< int > * fTriggerBitMap
 ! Map of trigger bits More...
 
Double_t fRhoValues [kNIndRho]
 ! Rho values for background subtraction (only online ADC) More...
 
Double_t fADCtoGeV
 ! Conversion factor from ADC to GeV More...
 

Detailed Description

Kernel of the EMCAL trigger patch maker.

Author
Markus Fasel marku.nosp@m.s.fa.nosp@m.sel@c.nosp@m.ern..nosp@m.ch, Lawrence Berkeley National Laboratory
Salvatore Aiola, Yale University
Since
Oct. 22nd, 2015

The trigger maker kernel contains the core functionality of the trigger maker:

  • Filling of the data grids
  • Steering and running the patch finders
  • Conversion of the raw patches obtained by the patch finders to full EMCAL trigger patch info objects. I/O, which means interaction with the ALICE analysis system, is done outside in a dedicated steering task.

Definition at line 50 of file AliEmcalTriggerMakerKernel.h.

Member Enumeration Documentation

anonymous enum
protected
Enumerator
kColsEta 

Definition at line 445 of file AliEmcalTriggerMakerKernel.h.

anonymous enum
protected
Enumerator
kIndRhoEMCAL 
kIndRhoDCAL 
kNIndRho 

Definition at line 448 of file AliEmcalTriggerMakerKernel.h.

Enumerator
kNotLevel0 
kLevel0Candidate 
kLevel0Fired 

Definition at line 53 of file AliEmcalTriggerMakerKernel.h.

Constructor & Destructor Documentation

AliEmcalTriggerMakerKernel::AliEmcalTriggerMakerKernel ( )

Constructor.

Definition at line 45 of file AliEmcalTriggerMakerKernel.cxx.

AliEmcalTriggerMakerKernel::~AliEmcalTriggerMakerKernel ( )
virtual

Destructor.

Definition at line 86 of file AliEmcalTriggerMakerKernel.cxx.

Member Function Documentation

void AliEmcalTriggerMakerKernel::AddFastORBadChannel ( Short_t  absId)
inline

Add a FastOR bad channel to the list.

Parameters
[in]absIdAbsolute ID of the bad channel

Definition at line 220 of file AliEmcalTriggerMakerKernel.h.

Referenced by AliEmcalTriggerMakerTask::InitializeFastORMaskingFromOADB(), AliEmcalTriggerMakerTask::InitializeFastORMaskingFromOCDB(), and ReadFastORBadChannelFromStream().

void AliEmcalTriggerMakerKernel::AddL1TriggerAlgorithm ( Int_t  rowmin,
Int_t  rowmax,
UInt_t  bitmask,
Int_t  patchSize,
Int_t  subregionSize 
)

Add a L1 trigger algorithm

Parameters
[in]rowminMinimum row value
[in]rowmaxMaximum row value
[in]bitmaskOffline bit mask to be applied to the patches
[in]patchSizeSize of the patches
[in]subregionSizeSize of the sliding sub region

Definition at line 127 of file AliEmcalTriggerMakerKernel.cxx.

Referenced by ConfigureForPbPb2011(), ConfigureForPbPb2015(), ConfigureForPP2012(), ConfigureForPP2015(), ConfigureForPP20158x8(), and ConfigureForPPb2013().

void AliEmcalTriggerMakerKernel::AddOfflineBadChannel ( Short_t  absId)
inline

Add an offline bad channel to the set.

Parameters
[in]absIdAbsolute ID of the bad channel

Definition at line 243 of file AliEmcalTriggerMakerKernel.h.

Referenced by AliEmcalTriggerMakerTask::InitializeBadFEEChannels(), and ReadOfflineBadChannelFromStream().

void AliEmcalTriggerMakerKernel::BuildL1ThresholdsOffline ( const AliVVZERO *  vzdata)

Build VZERO-dependent thresholds for the offline trigger.

Parameters
vzdataVERO charges

Definition at line 476 of file AliEmcalTriggerMakerKernel.cxx.

Referenced by AliEmcalTriggerMakerTask::Run().

AliEmcalTriggerMakerKernel::ELevel0TriggerStatus_t AliEmcalTriggerMakerKernel::CheckForL0 ( Int_t  col,
Int_t  row 
) const
protected

Accept trigger patch as Level0 patch.

Level0 patches are identified as 2x2 FASTOR patches in the same TRU

Parameters
[in]colStarting coloumn of the patch
[in]rowStarting row of the patch
Returns
the status of the patch (not L0, candidate, fired)

Definition at line 679 of file AliEmcalTriggerMakerKernel.cxx.

Referenced by CreateTriggerPatches().

void AliEmcalTriggerMakerKernel::ClearFastORBadChannels ( )

Clear FastOR bad channel list.

Definition at line 713 of file AliEmcalTriggerMakerKernel.cxx.

Referenced by AliEmcalTriggerMakerTask::RunChanged().

void AliEmcalTriggerMakerKernel::ClearOfflineBadChannels ( )

Clear offline bad channel list.

Definition at line 717 of file AliEmcalTriggerMakerKernel.cxx.

Referenced by AliEmcalTriggerMakerTask::InitializeBadFEEChannels(), and AliEmcalTriggerMakerTask::RunChanged().

void AliEmcalTriggerMakerKernel::ConfigureForPbPb2011 ( )

Configure the class for 2011 PbPb.

Definition at line 226 of file AliEmcalTriggerMakerKernel.cxx.

Referenced by AliEmcalTriggerMakerTask::ExecOnce().

void AliEmcalTriggerMakerKernel::ConfigureForPbPb2015 ( )

Configure the class for 2015 PbPb.

Definition at line 144 of file AliEmcalTriggerMakerKernel.cxx.

Referenced by AliEmcalTriggerMakerTask::ExecOnce().

void AliEmcalTriggerMakerKernel::ConfigureForPP2011 ( )

Configure the class for 2011 pp.

Definition at line 241 of file AliEmcalTriggerMakerKernel.cxx.

Referenced by AliEmcalTriggerMakerTask::ExecOnce().

void AliEmcalTriggerMakerKernel::ConfigureForPP2012 ( )

Configure the class for 2012 pp.

Definition at line 211 of file AliEmcalTriggerMakerKernel.cxx.

Referenced by AliEmcalTriggerMakerTask::ExecOnce().

void AliEmcalTriggerMakerKernel::ConfigureForPP2015 ( )

Configure the class for 2015 pp.

Definition at line 162 of file AliEmcalTriggerMakerKernel.cxx.

Referenced by AliEmcalTriggerMakerTask::ExecOnce().

void AliEmcalTriggerMakerKernel::ConfigureForPP20158x8 ( )

Configure the class for 2015 pp.

Definition at line 179 of file AliEmcalTriggerMakerKernel.cxx.

void AliEmcalTriggerMakerKernel::ConfigureForPPb2013 ( )

Configure the class for 2013 pPb.

Definition at line 196 of file AliEmcalTriggerMakerKernel.cxx.

Referenced by AliEmcalTriggerMakerTask::ExecOnce().

void AliEmcalTriggerMakerKernel::CreateTriggerPatches ( const AliVEvent *  inputevent,
std::vector< AliEMCALTriggerPatchInfo > &  outputcont,
Bool_t  useL0amp = kFALSE 
)

Run patch finders on input data.

Patches are converted from raw patches into AliEMCALTriggerPatchInfo data. Trigger patches contain all information of the given category;

  • Bit selection map from the STU (bits for non-matching patch types are removed)
  • Offline trigger selection status
  • Recalculation trigger selection status There are no more several patches for the three categories. The only difference left over is the distinction of patch types according to
  • Jet patches (16x16 FAST-ors)
  • Gamma patches (2x2 FAST-ors)
  • Level0 patches (2x2 FAST-ors, using L0 amplitude and L0 times for the selection)
    Parameters
    [in]inputeventInput ESD/AOD event, used for kinematics calculation
    [out]outputcontainer for reconstructed trigger patches
    [in]useL0ampif true the Level0 amplitude is used
    Returns
    Array of reconstructed trigger patches

Definition at line 488 of file AliEmcalTriggerMakerKernel.cxx.

Referenced by AliEmcalTriggerMakerTask::Run().

double AliEmcalTriggerMakerKernel::GetDataGridDimensionRows ( ) const

Get the dimension of the underlying data grids in row direction.

Returns
Number of rows

Definition at line 675 of file AliEmcalTriggerMakerKernel.cxx.

Referenced by AliEmcalTriggerMakerTask::Run().

double AliEmcalTriggerMakerKernel::GetL0TriggerChannelAmplitude ( Int_t  col,
Int_t  row 
) const

Get L0 amplitude of a given trigger channel (in col-row space)

Parameters
[in]colColumn of the trigger channel
[in]rowRow of the trigger channel
Returns
L0 amplitude of the given trigger channel (0 for invalid channel IDs)

Definition at line 613 of file AliEmcalTriggerMakerKernel.cxx.

const std::set<Short_t>& AliEmcalTriggerMakerKernel::GetListOfBadFastORAbsIDs ( ) const
inline

Get the list of online masked FastOR's used in the trigger maker.

Returns
Absolute FastOR IDs (full EMCAL + DCAL in run2+) of masked channels

Definition at line 100 of file AliEmcalTriggerMakerKernel.h.

Referenced by AliEmcalTriggerMakerTask::RunChanged().

const std::set<Short_t>& AliEmcalTriggerMakerKernel::GetListOfOfflineBadCellAbsIDs ( ) const
inline

Get the list of bad cells used when calculating offline patch energy.

Bad cells were not masked at online level, instead they were determined by a calibration algorithm.

Returns
Absolute Cell IDs (full EMCAL + DCAL in run2+) of bad cells

Definition at line 109 of file AliEmcalTriggerMakerKernel.h.

double AliEmcalTriggerMakerKernel::GetTriggerChannelADC ( Int_t  col,
Int_t  row 
) const

Get ADC value of a given trigger channel (in col-row space)

Parameters
[in]colColumn of the trigger channel
[in]rowRow of the trigger channel
Returns
ADC value of the given trigger channel (0 for invalid channel IDs)

Definition at line 623 of file AliEmcalTriggerMakerKernel.cxx.

double AliEmcalTriggerMakerKernel::GetTriggerChannelADCSimple ( Int_t  col,
Int_t  row 
) const

Get ADC value of trigger channel estimated from cell energies.

Parameters
[in]colColumn of the trigger channel
[in]rowRow of the trigger channel
Returns
ADC value of the trigger channel from cell energies (0 for invalid channel IDs)

Definition at line 643 of file AliEmcalTriggerMakerKernel.cxx.

double AliEmcalTriggerMakerKernel::GetTriggerChannelEnergy ( Int_t  col,
Int_t  row 
) const

Get energy of the trigger channel estimated from cells (in col-row space)

Parameters
[in]colColumn of the trigger channel
[in]rowRow of the trigger channel
Returns
Energy of the trigger channel (0 for invalid channel IDs)

Definition at line 653 of file AliEmcalTriggerMakerKernel.cxx.

Referenced by AliEmcalTriggerMakerTask::Run().

double AliEmcalTriggerMakerKernel::GetTriggerChannelEnergyRough ( Int_t  col,
Int_t  row 
) const

Get estimated energy of the trigger channel based on ADC measurement (in col-row space)

Parameters
[in]colColumn of the trigger channel
[in]rowRow of the trigger channel
Returns
Estimated trigger energy of the given channel (0 for invalid channel IDs)

Definition at line 633 of file AliEmcalTriggerMakerKernel.cxx.

Referenced by AliEmcalTriggerMakerTask::Run().

double AliEmcalTriggerMakerKernel::GetTriggerChannelEnergySmeared ( Int_t  col,
Int_t  row 
) const

Get (simulated) smeared energy of a trigger channel estimated based on the measured energy from cells (in col-row space)

Parameters
[in]colColumn of the trigger channel
[in]rowRow of the trigger channel
Returns
Smeared fastor energy (0 for invalid channel IDs)

Definition at line 663 of file AliEmcalTriggerMakerKernel.cxx.

Referenced by AliEmcalTriggerMakerTask::Run().

bool AliEmcalTriggerMakerKernel::HasPHOSOverlap ( const AliEMCALTriggerRawPatch &  patch) const
protected

Check according to geometrical cuts whether the patch has overlap with the PHOS region. Partial overlap is sufficient for this check.

Parameters
[in]patchPatch to check
Returns
True if the patch has at least partial overlap with PHOS

Definition at line 742 of file AliEmcalTriggerMakerKernel.cxx.

Referenced by CreateTriggerPatches().

void AliEmcalTriggerMakerKernel::Init ( )

Initialize the trigger maker Kernel.

  • Allocates the data grids according to the EMCAL setup for the given run (obtained from the geometry)
  • Initialize patch finders: Different patch finders are created for EMCAL and DCAL both for gamma and jet patches, using the data grids only in the active area of the EMCAL or DCAL

Definition at line 98 of file AliEmcalTriggerMakerKernel.cxx.

Referenced by AliEmcalTriggerMakerTask::ExecOnce().

Bool_t AliEmcalTriggerMakerKernel::IsBkgPatch ( const AliEMCALTriggerRawPatch &  patch) const
protected

Check from the bitmask whether the patch is a background patch.

Parameters
[in]patchPatch to check
Returns
True if patch is a background patch

Definition at line 731 of file AliEmcalTriggerMakerKernel.cxx.

Referenced by CreateTriggerPatches().

Bool_t AliEmcalTriggerMakerKernel::IsConfigured ( ) const
inline

Check whether the trigger maker has been specially configured. Status has to be set in the functions ConfigureForXX.

Returns
True if the trigger maker kernel is configured, false otherwise

Definition at line 407 of file AliEmcalTriggerMakerKernel.h.

Referenced by AliEmcalTriggerMakerTask::ExecOnce(), and AliEmcalTriggerMakerTask::Run().

Bool_t AliEmcalTriggerMakerKernel::IsGammaPatch ( const AliEMCALTriggerRawPatch &  patch) const
protected

Check from the bitmask whether the patch is a gamma patch.

Parameters
[in]patchPatch to check
Returns
True if patch is a gamma patch

Definition at line 721 of file AliEmcalTriggerMakerKernel.cxx.

Referenced by CreateTriggerPatches().

Bool_t AliEmcalTriggerMakerKernel::IsJetPatch ( const AliEMCALTriggerRawPatch &  patch) const
protected

Check from the bitmask whether the patch is a jet patch.

Parameters
[in]patchPatch to check
Returns
True if patch is a jet patch

Definition at line 726 of file AliEmcalTriggerMakerKernel.cxx.

Referenced by CreateTriggerPatches().

void AliEmcalTriggerMakerKernel::ReadCellData ( AliVCaloCells *  cells)

Read the EMCAL cell data.

Cell data are converted into ADC values and summed per FastOR. Cell data can be rejected

  • In case a cell time cut is set and the cell time is out of range
  • In case a minimum amplitude cut is set and the cell data is below threshold Cells which are masked, or which belong to masked FastORs are rejected as well.
    Parameters
    [in]cellsEMCAL cell data

Definition at line 414 of file AliEmcalTriggerMakerKernel.cxx.

Referenced by AliEmcalTriggerMakerTask::Run().

void AliEmcalTriggerMakerKernel::ReadFastORBadChannelFromFile ( const char *  fname)

Read the FastOR bad channel map from a text file.

Parameters
[in]fnamePath and name of the file

Definition at line 280 of file AliEmcalTriggerMakerKernel.cxx.

void AliEmcalTriggerMakerKernel::ReadFastORBadChannelFromStream ( std::istream &  stream)

Read the FastOR bad channel map from a standard stream.

Parameters
[in]streamA reference to a standard stream to read from (can be a file stream)

Definition at line 270 of file AliEmcalTriggerMakerKernel.cxx.

Referenced by ReadFastORBadChannelFromFile().

void AliEmcalTriggerMakerKernel::ReadFastORPedestalFromFile ( const char *  fname)

Read the FastOR pedestals from a text file.

Parameters
[in]fnamePath and name of the file

Definition at line 306 of file AliEmcalTriggerMakerKernel.cxx.

void AliEmcalTriggerMakerKernel::ReadFastORPedestalFromStream ( std::istream &  stream)

Read the FastOR pedestals from a standard stream.

Parameters
[in]streamA reference to a standard stream to read from (can be a file stream)

Definition at line 295 of file AliEmcalTriggerMakerKernel.cxx.

Referenced by ReadFastORPedestalFromFile().

void AliEmcalTriggerMakerKernel::ReadOfflineBadChannelFromFile ( const char *  fname)

Read the offline bad channel map from a text file.

Parameters
[in]fnamePath and name of the file

Definition at line 264 of file AliEmcalTriggerMakerKernel.cxx.

void AliEmcalTriggerMakerKernel::ReadOfflineBadChannelFromStream ( std::istream &  stream)

Read the offline bad channel map from a standard stream.

Parameters
[in]streamA reference to a standard stream to read from (can be a file stream)

Definition at line 254 of file AliEmcalTriggerMakerKernel.cxx.

Referenced by ReadOfflineBadChannelFromFile().

void AliEmcalTriggerMakerKernel::ReadTriggerData ( AliVCaloTrigger *  trigger)

Read the calo trigger data.

Filling the data grids for L0 and L1 amplitude. Amplitudes from FastORs which are masked are ignored.

Parameters
[in]triggerInput calo trigger data

Definition at line 322 of file AliEmcalTriggerMakerKernel.cxx.

Referenced by AliEmcalTriggerMakerTask::Run().

void AliEmcalTriggerMakerKernel::Reset ( )

Reset all data grids and VZERO-dependent L1 thresholds.

Definition at line 312 of file AliEmcalTriggerMakerKernel.cxx.

Referenced by AliEmcalTriggerMakerTask::Run().

void AliEmcalTriggerMakerKernel::ResetFastORPedestal ( )
inline

Reset the FastOR pedestal array.

Definition at line 284 of file AliEmcalTriggerMakerKernel.h.

void AliEmcalTriggerMakerKernel::SetAcceptCellTimeRange ( Double_t  minCellTime,
Double_t  maxCellTime 
)
inline

Set symmmetric limit of the cell time allowed to accept the cell contributing to cell offline energy / offline patches.

Parameters
[in]minCellTimeMinimum allowed cell time
[in]maxCellTimeMaximum allowed cell time

Definition at line 297 of file AliEmcalTriggerMakerKernel.h.

void AliEmcalTriggerMakerKernel::SetApplyOnlineBadChannelMaskingToOffline ( Bool_t  doApply = kTRUE)
inline

Apply online bad channel masking to offline channel energies. This means that cell energies in cells within FastOrs that are masked online are ignored. By applying this the online trigger acceptance can be applied to offline patches as well.

Parameters
[in]doApplyIf true the online masking is applied to offline patch energies

Definition at line 324 of file AliEmcalTriggerMakerKernel.h.

Referenced by AliEmcalTriggerMakerTask::SetApplyTRUMaskingToFEE().

void AliEmcalTriggerMakerKernel::SetBackgroundThreshold ( Int_t  t)
inline

Definition at line 115 of file AliEmcalTriggerMakerKernel.h.

void AliEmcalTriggerMakerKernel::SetFastORandCellThresholds ( Int_t  l0,
Int_t  l1,
Int_t  cell 
)
inline

Set thresholds applied to FastORs and offline cells before patch reconstruction.

Parameters
[in]l0Threshold for L0 FastOR amplitudes
[in]l1Threshold for L1 FastOR amplitudes
[in]cellThreshold for cell amplitudes

Definition at line 208 of file AliEmcalTriggerMakerKernel.h.

void AliEmcalTriggerMakerKernel::SetFastORPedestal ( Short_t  absId,
Float_t  ped 
)

Set the pedestal value for a FastOR.

Parameters
[in]absIdAbsolute ID of a FastOR
[in]pedPedestal value

Definition at line 286 of file AliEmcalTriggerMakerKernel.cxx.

Referenced by ReadFastORPedestalFromStream().

void AliEmcalTriggerMakerKernel::SetGeometry ( const AliEMCALGeometry *const  geo)
inline

Provide the EMCAL geometry to the trigger maker Kernel.

Parameters
[in]geoEMCAL geometry

Definition at line 187 of file AliEmcalTriggerMakerKernel.h.

Referenced by AliEmcalTriggerMakerTask::ExecOnce().

void AliEmcalTriggerMakerKernel::SetIsMC ( Bool_t  isMC)
inline

Define whether running on MC or not (for offset)

Parameters
isMCFlag for MC

Definition at line 181 of file AliEmcalTriggerMakerKernel.h.

Referenced by AliEmcalTriggerMakerTask::Run().

void AliEmcalTriggerMakerKernel::SetL0Threshold ( Int_t  t)
inline

Definition at line 116 of file AliEmcalTriggerMakerKernel.h.

void AliEmcalTriggerMakerKernel::SetL0TimeRange ( Int_t  min,
Int_t  max 
)
inline

Set range for L0 time.

Parameters
minMinimum L0 time (default is 7)
maxMaximum L0 time (default is 10)

Definition at line 200 of file AliEmcalTriggerMakerKernel.h.

Referenced by AliEmcalTriggerMakerTask::SetL0TimeRange().

void AliEmcalTriggerMakerKernel::SetL0TriggerAlgorithm ( Int_t  rowmin,
Int_t  rowmax,
UInt_t  bitmask,
Int_t  patchSize,
Int_t  subregionSize 
)

Set the L0 algorithm.

Parameters
[in]rowminMinimum row value
[in]rowmaxMaximum row value
[in]bitmaskOffline bit mask to be applied to the patches
[in]patchSizeSize of the patches
[in]subregionSizeSize of the sliding sub region

Definition at line 136 of file AliEmcalTriggerMakerKernel.cxx.

Referenced by ConfigureForPbPb2011(), ConfigureForPbPb2015(), ConfigureForPP2011(), ConfigureForPP2012(), ConfigureForPP2015(), ConfigureForPP20158x8(), and ConfigureForPPb2013().

void AliEmcalTriggerMakerKernel::SetL1ADCtoGeVConversion ( Double_t  conversionfactor)
inline

Set conversion between ADC counts and energy in GeV.

Parameters
[in]conversionfactorConversion between ADC counts and energy

Definition at line 214 of file AliEmcalTriggerMakerKernel.h.

void AliEmcalTriggerMakerKernel::SetLowerCellTimeCut ( Double_t  minCellTime)
inline

Set lower cut on the cell time allowed to accept the cell contributing to cell offline energy / offline patches.

Parameters
[in]minCellTimeMinimum allowed cell time

Definition at line 303 of file AliEmcalTriggerMakerKernel.h.

void AliEmcalTriggerMakerKernel::SetMaxAbsCellTime ( Double_t  maxCellTime)
inline

Set symmmetric limit of the cell time allowed to accept the cell contributing to cell offline energy / offline patches.

Parameters
[in]maxCellTimeMaximum accepted value of the absolute cell time

Definition at line 290 of file AliEmcalTriggerMakerKernel.h.

void AliEmcalTriggerMakerKernel::SetMinFEEAmplitude ( Double_t  minamp)
inline

Set cut on the minimum cell amplitude.

Parameters
[in]minampMin cell amplitude accepted

Definition at line 315 of file AliEmcalTriggerMakerKernel.h.

void AliEmcalTriggerMakerKernel::SetOnlineBackgroundSubtraction ( Bool_t  doSubtraction)
inline

Switch on median subtraction of the online ADC value.

Definition at line 121 of file AliEmcalTriggerMakerKernel.h.

void AliEmcalTriggerMakerKernel::SetScaleShift ( Double_t  scaleshift)
inline

Simulate constant shift of the EMCAL Energy scale.

Parameters
scaleshiftConstant scale shift applied to each cell. In GeV

Definition at line 400 of file AliEmcalTriggerMakerKernel.h.

void AliEmcalTriggerMakerKernel::SetSmearModel ( TF1 *  mean,
TF1 *  width 
)
inline

Set energy-dependent models for gaussian energy smearing.

Parameters
[in]meanParameterization of the mean
[in]widthParameterization of the width

Definition at line 383 of file AliEmcalTriggerMakerKernel.h.

void AliEmcalTriggerMakerKernel::SetSmearThreshold ( Double_t  threshold)
inline

Set the energy threshold for smearing.

Only summed energies above this threshold are smeared

Parameters
[in]thresholdSmear threshold

Definition at line 394 of file AliEmcalTriggerMakerKernel.h.

void AliEmcalTriggerMakerKernel::SetTriggerBitConfig ( const AliEMCALTriggerBitConfig *const  config)

Set the trigger bit configuration applied for the given data set.

Parameters
[in]configTrigger bit config applied

Definition at line 736 of file AliEmcalTriggerMakerKernel.cxx.

Referenced by ConfigureForPbPb2011(), ConfigureForPbPb2015(), ConfigureForPP2011(), ConfigureForPP2012(), ConfigureForPP2015(), ConfigureForPP20158x8(), ConfigureForPPb2013(), Init(), and AliEmcalTriggerMakerTask::SetUseTriggerBitConfig().

void AliEmcalTriggerMakerKernel::SetTriggerThresholdGammaHigh ( Int_t  a,
Int_t  b,
Int_t  c 
)
inline
void AliEmcalTriggerMakerKernel::SetTriggerThresholdGammaLow ( Int_t  a,
Int_t  b,
Int_t  c 
)
inline
void AliEmcalTriggerMakerKernel::SetTriggerThresholdJetHigh ( Int_t  a,
Int_t  b,
Int_t  c 
)
inline
void AliEmcalTriggerMakerKernel::SetTriggerThresholdJetLow ( Int_t  a,
Int_t  b,
Int_t  c 
)
inline
void AliEmcalTriggerMakerKernel::SetUpperCellTimeCut ( Double_t  maxCellTime)
inline

Set upper cut on the cell time allowed to accept the cell contributing to cell offline energy / offline patches.

Parameters
[in]minCellTimeMinimum allowed cell time

Definition at line 309 of file AliEmcalTriggerMakerKernel.h.

Member Data Documentation

Double_t AliEmcalTriggerMakerKernel::fADCtoGeV
protected

! Conversion factor from ADC to GeV

Definition at line 529 of file AliEmcalTriggerMakerKernel.h.

Referenced by CreateTriggerPatches(), GetTriggerChannelEnergy(), and ReadCellData().

Bool_t AliEmcalTriggerMakerKernel::fApplyOnlineBadChannelsToOffline
protected

Apply online bad channels to offline ADC values.

Definition at line 512 of file AliEmcalTriggerMakerKernel.h.

Referenced by ReadCellData().

std::set<Short_t> AliEmcalTriggerMakerKernel::fBadChannels
protected

Container of bad channels.

Definition at line 492 of file AliEmcalTriggerMakerKernel.h.

Referenced by ClearFastORBadChannels(), ReadCellData(), and ReadTriggerData().

Int_t AliEmcalTriggerMakerKernel::fBkgThreshold
protected

threshold for the background patches (8x8)

Definition at line 506 of file AliEmcalTriggerMakerKernel.h.

Referenced by CreateTriggerPatches().

Double_t AliEmcalTriggerMakerKernel::fCellTimeLimits[2]
protected

Maximum allowed abs cell time (default [0] = - 10000, [1] = 10000)

Definition at line 510 of file AliEmcalTriggerMakerKernel.h.

Referenced by ReadCellData().

Bool_t AliEmcalTriggerMakerKernel::fConfigured
protected

Switch specifying whether the trigger maker kernel has been configured for a given data set.

Definition at line 513 of file AliEmcalTriggerMakerKernel.h.

Referenced by ConfigureForPbPb2011(), ConfigureForPbPb2015(), ConfigureForPP2011(), ConfigureForPP2012(), ConfigureForPP2015(), ConfigureForPP20158x8(), and ConfigureForPPb2013().

Int_t AliEmcalTriggerMakerKernel::fDebugLevel
protected

Debug lebel;.

Definition at line 509 of file AliEmcalTriggerMakerKernel.h.

Bool_t AliEmcalTriggerMakerKernel::fDoBackgroundSubtraction
protected

Swtich for background subtraction (only online ADC)

Definition at line 518 of file AliEmcalTriggerMakerKernel.h.

Referenced by ConfigureForPbPb2015(), CreateTriggerPatches(), and ReadTriggerData().

TArrayF AliEmcalTriggerMakerKernel::fFastORPedestal
protected

FastOR pedestal.

Definition at line 494 of file AliEmcalTriggerMakerKernel.h.

Referenced by ReadTriggerData(), and SetFastORPedestal().

const AliEMCALGeometry* AliEmcalTriggerMakerKernel::fGeometry
protected

! Underlying EMCAL geometry

Definition at line 520 of file AliEmcalTriggerMakerKernel.h.

Referenced by CheckForL0(), CreateTriggerPatches(), Init(), ReadCellData(), and ReadTriggerData().

Bool_t AliEmcalTriggerMakerKernel::fIsMC
protected

Set MC offset.

Definition at line 508 of file AliEmcalTriggerMakerKernel.h.

Referenced by CreateTriggerPatches().

Int_t AliEmcalTriggerMakerKernel::fL0MaxTime
protected

Maximum L0 time.

Definition at line 500 of file AliEmcalTriggerMakerKernel.h.

Referenced by CheckForL0().

Int_t AliEmcalTriggerMakerKernel::fL0MinTime
protected

Minimum L0 time.

Definition at line 499 of file AliEmcalTriggerMakerKernel.h.

Referenced by CheckForL0().

Int_t AliEmcalTriggerMakerKernel::fL0Threshold
protected

threshold for the L0 patches (2x2)

Definition at line 507 of file AliEmcalTriggerMakerKernel.h.

Referenced by CreateTriggerPatches().

ULong64_t AliEmcalTriggerMakerKernel::fL1ThresholdsOffline[4]
protected

container for V0-dependent offline thresholds

Definition at line 505 of file AliEmcalTriggerMakerKernel.h.

Referenced by BuildL1ThresholdsOffline(), CreateTriggerPatches(), and Reset().

AliEMCALTriggerAlgorithm<double>* AliEmcalTriggerMakerKernel::fLevel0PatchFinder
protected

Patch finder for Level0 patches.

Definition at line 498 of file AliEmcalTriggerMakerKernel.h.

Referenced by CreateTriggerPatches(), SetL0TriggerAlgorithm(), and ~AliEmcalTriggerMakerKernel().

AliEMCALTriggerDataGrid<char>* AliEmcalTriggerMakerKernel::fLevel0TimeMap
protected

! Map needed to store the level0 times

Definition at line 525 of file AliEmcalTriggerMakerKernel.h.

Referenced by Init(), Reset(), and ~AliEmcalTriggerMakerKernel().

Int_t AliEmcalTriggerMakerKernel::fMinCellAmp
protected

Minimum offline amplitude of the cells used to generate the patches.

Definition at line 501 of file AliEmcalTriggerMakerKernel.h.

Referenced by ReadCellData().

Double_t AliEmcalTriggerMakerKernel::fMinCellAmplitude
protected

Minimum amplitude in cell required to be considered for filling the data grid.

Definition at line 511 of file AliEmcalTriggerMakerKernel.h.

Referenced by ReadCellData().

Int_t AliEmcalTriggerMakerKernel::fMinL0FastORAmp
protected

Minimum L0 amplitude of the FastORs used to generate the patches.

Definition at line 502 of file AliEmcalTriggerMakerKernel.h.

Referenced by ReadTriggerData().

Int_t AliEmcalTriggerMakerKernel::fMinL1FastORAmp
protected

Minimum L1 amplitude of the FastORs used to generate the patches.

Definition at line 503 of file AliEmcalTriggerMakerKernel.h.

Referenced by ReadTriggerData().

std::set<Short_t> AliEmcalTriggerMakerKernel::fOfflineBadChannels
protected

Abd ID of offline bad channels.

Definition at line 493 of file AliEmcalTriggerMakerKernel.h.

Referenced by ClearOfflineBadChannels(), and ReadCellData().

AliEMCALTriggerDataGrid<double>* AliEmcalTriggerMakerKernel::fPatchADC
protected
AliEMCALTriggerDataGrid<double>* AliEmcalTriggerMakerKernel::fPatchADCSimple
protected

! patch map for simple offline trigger

Definition at line 522 of file AliEmcalTriggerMakerKernel.h.

Referenced by CreateTriggerPatches(), Init(), ReadCellData(), Reset(), and ~AliEmcalTriggerMakerKernel().

AliEMCALTriggerDataGrid<double>* AliEmcalTriggerMakerKernel::fPatchAmplitudes
protected

! TRU Amplitudes (for L0)

Definition at line 521 of file AliEmcalTriggerMakerKernel.h.

Referenced by CreateTriggerPatches(), Init(), Reset(), and ~AliEmcalTriggerMakerKernel().

AliEMCALTriggerDataGrid<double>* AliEmcalTriggerMakerKernel::fPatchEnergySimpleSmeared
protected

! Data grid for smeared energy values from cell energies

Definition at line 524 of file AliEmcalTriggerMakerKernel.h.

Referenced by CreateTriggerPatches(), GetTriggerChannelEnergySmeared(), Init(), ReadCellData(), Reset(), and ~AliEmcalTriggerMakerKernel().

Double_t AliEmcalTriggerMakerKernel::fRhoValues[kNIndRho]
protected

! Rho values for background subtraction (only online ADC)

Definition at line 527 of file AliEmcalTriggerMakerKernel.h.

Referenced by CreateTriggerPatches(), and ReadTriggerData().

Double_t AliEmcalTriggerMakerKernel::fScaleShift
protected

Scale shift simulation.

Definition at line 517 of file AliEmcalTriggerMakerKernel.h.

Referenced by ReadCellData().

TF1* AliEmcalTriggerMakerKernel::fSmearModelMean
protected

Smearing parameterization for the mean.

Definition at line 514 of file AliEmcalTriggerMakerKernel.h.

Referenced by Init(), and ReadCellData().

TF1* AliEmcalTriggerMakerKernel::fSmearModelSigma
protected

Smearing parameterization for the width.

Definition at line 515 of file AliEmcalTriggerMakerKernel.h.

Referenced by Init(), and ReadCellData().

Double_t AliEmcalTriggerMakerKernel::fSmearThreshold
protected

Smear threshold: Only cell energies above threshold are smeared.

Definition at line 516 of file AliEmcalTriggerMakerKernel.h.

Referenced by ReadCellData().

Int_t AliEmcalTriggerMakerKernel::fThresholdConstants[4][3]
protected

simple offline trigger thresholds constants

Definition at line 504 of file AliEmcalTriggerMakerKernel.h.

Referenced by BuildL1ThresholdsOffline().

const AliEMCALTriggerBitConfig* AliEmcalTriggerMakerKernel::fTriggerBitConfig
protected
AliEMCALTriggerDataGrid<int>* AliEmcalTriggerMakerKernel::fTriggerBitMap
protected

! Map of trigger bits

Definition at line 526 of file AliEmcalTriggerMakerKernel.h.

Referenced by Init(), Reset(), and ~AliEmcalTriggerMakerKernel().


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