![]() |
AliPhysics
764b6ea (764b6ea)
|
Emulate trigger decision offline. More...
#include <AliEmcalTriggerEmulation.h>
Public Member Functions | |
AliEmcalTriggerEmulation () | |
AliEmcalTriggerEmulation (double energy, double resolution) | |
virtual | ~AliEmcalTriggerEmulation () |
bool | SelectEvent (const AliEmcalContainer *const cont) const |
void | SetEnergy (double energy) |
void | SetResolution (double resolution) |
void | Set (double energy, double resolution) |
Protected Attributes | |
TF1 | fThresholdEngine |
Engine for energy threshold calculation. More... | |
Emulate trigger decision offline.
This class emulates the EMCAL trigger decision by selecting events with at least on object containing energy (cluster, trigger patch) above energy threshold. The energy threshold is evaluated event-by-event, smeared with the resolution.
This class is intended for the usage on MC events in order to evaluate the EMCAL trigger efficiency there.
Definition at line 27 of file AliEmcalTriggerEmulation.h.
EMCalTriggerPtAnalysis::AliEmcalTriggerEmulation::AliEmcalTriggerEmulation | ( | ) |
Dummy constructor, for ROOT I/O, not for normal usage Setting default values for energy threshold and resolution
Definition at line 25 of file AliEmcalTriggerEmulation.cxx.
EMCalTriggerPtAnalysis::AliEmcalTriggerEmulation::AliEmcalTriggerEmulation | ( | double | energy, |
double | resolution | ||
) |
Constructor, setting energy threshold and resolution used for the smearing
[in] | energy | Energy threshold (units should match the target object [GeV/ ADC counts]) |
[in] | resolution | Energy resolution (same units as energy threshold) |
Definition at line 37 of file AliEmcalTriggerEmulation.cxx.
|
inlinevirtual |
Destructor
Definition at line 43 of file AliEmcalTriggerEmulation.h.
bool EMCalTriggerPtAnalysis::AliEmcalTriggerEmulation::SelectEvent | ( | const AliEmcalContainer *const | cont | ) | const |
Select event according to objects above energy threshold. The threshold is evaluated for each event separately smearing the nominal energy threshold with a resolution. Objects are taken from the input container. The cut will be implemented for
[in] | cont | Container with input objects (clusters / trigger patches) |
Definition at line 49 of file AliEmcalTriggerEmulation.cxx.
Referenced by EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalTriggerEmulation::Run(), and ~AliEmcalTriggerEmulation().
|
inline |
Set the energy threshold and resolution used for the smearing
[in] | energy | Energy threshold (units should match the target object [GeV/ ADC counts]) |
[in] | resolution | Energy resolution (same units as energy threshold) |
Definition at line 72 of file AliEmcalTriggerEmulation.h.
|
inline |
Set the energy threshold used in the event selection
[in] | energy | Energy threshold (units should match the target object [GeV/ ADC counts]) |
Definition at line 61 of file AliEmcalTriggerEmulation.h.
|
inline |
Set the energy resolution used for the smearing of the threshold
[in] | resolution | Energy resolution (same units as energy threshold) |
Definition at line 66 of file AliEmcalTriggerEmulation.h.
|
protected |
Engine for energy threshold calculation.
Definition at line 78 of file AliEmcalTriggerEmulation.h.
Referenced by AliEmcalTriggerEmulation(), SelectEvent(), Set(), SetEnergy(), and SetResolution().