AliPhysics  5eaf189 (5eaf189)
EMCalTriggerPtAnalysis::AliEmcalTriggerEmulation Class Reference

Emulate trigger decision offline. More...

#include <AliEmcalTriggerEmulation.h>

Inheritance diagram for EMCalTriggerPtAnalysis::AliEmcalTriggerEmulation:

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...
 

Detailed Description

Emulate trigger decision offline.

Author
Markus Fasel marku.nosp@m.s.fa.nosp@m.sel@c.nosp@m.ern..nosp@m.ch, Lawrence Berkeley National Laboratory
Since
May 4, 2016

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.

Constructor & Destructor Documentation

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

Parameters
[in]energyEnergy threshold (units should match the target object [GeV/ ADC counts])
[in]resolutionEnergy resolution (same units as energy threshold)

Definition at line 37 of file AliEmcalTriggerEmulation.cxx.

virtual EMCalTriggerPtAnalysis::AliEmcalTriggerEmulation::~AliEmcalTriggerEmulation ( )
inlinevirtual

Destructor

Definition at line 43 of file AliEmcalTriggerEmulation.h.

Member Function Documentation

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

  • Cluster container
  • Trigger patch container
    Parameters
    [in]contContainer with input objects (clusters / trigger patches)
    Returns
    True if at least one object above threshold is found, false otherwise

Definition at line 49 of file AliEmcalTriggerEmulation.cxx.

Referenced by EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalTriggerEmulation::Run(), and ~AliEmcalTriggerEmulation().

void EMCalTriggerPtAnalysis::AliEmcalTriggerEmulation::Set ( double  energy,
double  resolution 
)
inline

Set the energy threshold and resolution used for the smearing

Parameters
[in]energyEnergy threshold (units should match the target object [GeV/ ADC counts])
[in]resolutionEnergy resolution (same units as energy threshold)

Definition at line 72 of file AliEmcalTriggerEmulation.h.

void EMCalTriggerPtAnalysis::AliEmcalTriggerEmulation::SetEnergy ( double  energy)
inline

Set the energy threshold used in the event selection

Parameters
[in]energyEnergy threshold (units should match the target object [GeV/ ADC counts])

Definition at line 61 of file AliEmcalTriggerEmulation.h.

void EMCalTriggerPtAnalysis::AliEmcalTriggerEmulation::SetResolution ( double  resolution)
inline

Set the energy resolution used for the smearing of the threshold

Parameters
[in]resolutionEnergy resolution (same units as energy threshold)

Definition at line 66 of file AliEmcalTriggerEmulation.h.

Member Data Documentation

TF1 EMCalTriggerPtAnalysis::AliEmcalTriggerEmulation::fThresholdEngine
protected

Engine for energy threshold calculation.

Definition at line 78 of file AliEmcalTriggerEmulation.h.

Referenced by AliEmcalTriggerEmulation(), SelectEvent(), Set(), SetEnergy(), and SetResolution().


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