![]() |
AliPhysics
1a228f7 (1a228f7)
|
Helper class selecting events on the presence of a trigger patch for the given type above threshold. More...
#include <AliEmcalTriggerOfflineSelection.h>
Public Types | |
enum | EmcalTriggerClass { kTrgEL0 = 0, kTrgEG1, kTrgEG2, kTrgEJ1, kTrgEJ2, kTrgDL0, kTrgDG1, kTrgDG2, kTrgDJ1, kTrgDJ2, kTrgn } |
Definition of the various supported trigger types. More... | |
Public Member Functions | |
AliEmcalTriggerOfflineSelection () | |
virtual | ~AliEmcalTriggerOfflineSelection () |
void | SetOfflineEnergyThreshold (EmcalTriggerClass trgcls, double threshold) |
void | SetAcceptanceMap (EmcalTriggerClass trgcls, const TH2 *accmap) |
Bool_t | IsOfflineSelected (EmcalTriggerClass trgcls, const TClonesArray *const triggerpatches) const |
Double_t | GetThresholdForTrigger (EmcalTriggerClass trgcls) const |
Static Public Member Functions | |
static Bool_t | IsSingleShower (EmcalTriggerClass cls) |
static Bool_t | IsDCAL (EmcalTriggerClass cls) |
static const TString & | GetTriggerName (EmcalTriggerClass cls) |
Protected Attributes | |
Double_t | fOfflineEnergyThreshold [kTrgn] |
Thresholds applied on offline energy. More... | |
const TH2 * | fAcceptanceMaps [kTrgn] |
! Online acceptance distribution More... | |
Static Protected Attributes | |
static const TString | fgkTriggerNames [kTrgn] |
Names of the various trigger classes. More... | |
Helper class selecting events on the presence of a trigger patch for the given type above threshold.
AliEmcalTriggerOffline selection provides the functionality to select triggered events based on the presence of a trigger patch for the given type above energy threshold. As convention the calibrated energy from cells is used to select patches above threshold. Energy thresholds can be set via
In order to mimic non-uniform trigger acceptance, acceptance maps from Data can be used in the trigger patch selection. When available, trigger patches are selected on a statistical basis using the map, which is expected to be normalized to the position with the maximum trigger counts, in order to provide a probability value. Acceptance maps are set via
Attention: This class takes over ownership and expects the histogram to not belong to a directory. In case no acceptance map is providede, no acceptance mimicing is applied.
Definition at line 46 of file AliEmcalTriggerOfflineSelection.h.
Definition of the various supported trigger types.
Definition at line 52 of file AliEmcalTriggerOfflineSelection.h.
EMCalTriggerPtAnalysis::AliEmcalTriggerOfflineSelection::AliEmcalTriggerOfflineSelection | ( | ) |
Default constructor
Definition at line 37 of file AliEmcalTriggerOfflineSelection.cxx.
|
virtual |
Destructor
Definition at line 42 of file AliEmcalTriggerOfflineSelection.cxx.
|
inline |
Get the offline trigger threshold (on energy) for a given trigger class.
[in] | trgcls | Trigger class for which to check the threshold |
Definition at line 114 of file AliEmcalTriggerOfflineSelection.h.
Referenced by EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClustersRef::FindPatchesForTrigger().
|
inlinestatic |
Get the name of the trigger class as string representation
[in] | cls | EMCAL/DCAL trigger class |
Definition at line 135 of file AliEmcalTriggerOfflineSelection.h.
|
static |
Checks if the trigger class is a jet patch trigger class
[in] | cls | Type of the trigger class to check |
Definition at line 98 of file AliEmcalTriggerOfflineSelection.cxx.
Referenced by EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClustersRef::FindPatchesForTrigger().
Bool_t EMCalTriggerPtAnalysis::AliEmcalTriggerOfflineSelection::IsOfflineSelected | ( | EmcalTriggerClass | trgcls, |
const TClonesArray *const | triggerpatches | ||
) | const |
Apply additional cut requiring at least one offline patch above a given energy (not fake ADC!) Attention: This task groups into single shower triggers (L0, EG1, EG2) and jet triggers (EJ1 and EJ2). Per convention the low threshold patch is selected. No energy cut should be applied in the trigger maker.
Patches are supposed to contain masking done in the trigger maker. If available, an acceptance map can be used to mimic patch azimuthal acceptance in simulation.
Attention: The component take over ownership of the histogram. Need to be set to nullptr once the histogram is read in.
[in] | trgcls | Trigger class for which to apply additional offline patch selection |
[in] | triggerpatches | Array of trigger patches |
Definition at line 48 of file AliEmcalTriggerOfflineSelection.cxx.
Referenced by EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalTriggerBase::TriggerSelection().
|
static |
Checks if the trigger class is a single shower patch trigger class
[in] | cls | Type of the trigger class to check |
Definition at line 93 of file AliEmcalTriggerOfflineSelection.cxx.
Referenced by EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClustersRef::FindPatchesForTrigger(), and EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalTriggerBase::SelectOnlineTrigger().
|
inline |
Set acceptance map for a given trigger class. The acceptance map is expected to be normalized to 1 for the position with the largest trigger patch
[in] | trgcls | Trigger class for which to set then acceptance map |
[in] | accmap | Acceptance map as 2D histogram |
Definition at line 90 of file AliEmcalTriggerOfflineSelection.h.
Referenced by EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalTriggerBase::ExecOnce().
|
inline |
Specify threshold for a given offline trigger class. Convention is a threshold on the patch energy (from cells) in GeV
[in] | trgcls | Trigger class for which to set the threshold |
[in] | threshold | Threshold value for the trigger class |
Definition at line 82 of file AliEmcalTriggerOfflineSelection.h.
|
protected |
! Online acceptance distribution
Definition at line 140 of file AliEmcalTriggerOfflineSelection.h.
Referenced by SetAcceptanceMap().
|
staticprotected |
Names of the various trigger classes.
Definition at line 138 of file AliEmcalTriggerOfflineSelection.h.
Referenced by GetTriggerName().
|
protected |
Thresholds applied on offline energy.
Definition at line 139 of file AliEmcalTriggerOfflineSelection.h.
Referenced by GetThresholdForTrigger(), and SetOfflineEnergyThreshold().