AliPhysics  45476af (45476af)
EMCalTriggerPtAnalysis::AliEMCalTriggerAnaTriggerDecision Class Reference

Class performing the selection of triggered events. More...

#include <AliEMCalTriggerAnaTriggerDecision.h>

Inheritance diagram for EMCalTriggerPtAnalysis::AliEMCalTriggerAnaTriggerDecision:

Public Member Functions

 AliEMCalTriggerAnaTriggerDecision ()
 
virtual ~AliEMCalTriggerAnaTriggerDecision ()
 
void Create (const AliEMCalTriggerEventData *const data)
 
Bool_t IsTriggered (ETATriggerType trigger, ETriggerMethod_t method=kTriggerString) const
 
const AliEMCalTriggerAnaTriggerDecisionConfigGetConfiguration () const
 
void ConfigureTriggerDecision (const AliEMCalTriggerAnaTriggerDecisionConfig &conf)
 
void Reset ()
 
void Print (Option_t *opt=NULL) const
 
void SetDebugMode (Bool_t doDebug=true)
 
bool CheckConsistency () const
 

Protected Member Functions

void MakeDecisionFromString (const TString &triggerstring)
 
void MakeDecisionFromPatches (const TClonesArray &listOfPatches)
 
Bool_t SelectTriggerPatch (ETATriggerType trigger, const AliEMCALTriggerPatchInfo *const recpatch) const
 
Double_t GetPatchEnergy (EPatchEnergyType_t energytype, const AliEMCALTriggerPatchInfo *const patch) const
 

Protected Attributes

AliEMCalTriggerAnaTriggerDecisionConfig fConfiguration
 Configuration for the trigger decision handler. More...
 
Bool_t fDecisionFromPatches [4]
 Storage for result from trigger string. More...
 
Bool_t fDecisionFromString [4]
 Storage for result from trigger patches. More...
 
Bool_t fDoDebug
 Switch for debug mode. More...
 

Detailed Description

Class performing the selection of triggered events.

This class generates a trigger decision for an event for the given EMCAL trigger class. The decision can come either from trigger patches or trigger strings. For the trigger decision from patches also an energy threshold can be applied. The trigger decision is done in the function Create, which builds the decision for both patches and trigger string. The event selection, done using the function IsTriggerd, can come from the patches, from the string, or from both at the same time. Note that different selection modes need to run in data and Monte-Carlo since in Monte- Carlo trigger strings do not exists, and in data the trigger is already applied at hardware level.

Definition at line 40 of file AliEMCalTriggerAnaTriggerDecision.h.

Constructor & Destructor Documentation

EMCalTriggerPtAnalysis::AliEMCalTriggerAnaTriggerDecision::AliEMCalTriggerAnaTriggerDecision ( )

Dummy (I/O) and main constructor

Definition at line 32 of file AliEMCalTriggerAnaTriggerDecision.cxx.

virtual EMCalTriggerPtAnalysis::AliEMCalTriggerAnaTriggerDecision::~AliEMCalTriggerAnaTriggerDecision ( )
inlinevirtual

Destructor, nothing to do

Definition at line 49 of file AliEMCalTriggerAnaTriggerDecision.h.

Member Function Documentation

bool EMCalTriggerPtAnalysis::AliEMCalTriggerAnaTriggerDecision::CheckConsistency ( ) const

Check whether the trigger decision from the trigger strings and the trigger patches are the same

Returns
result of the comparison

Definition at line 79 of file AliEMCalTriggerAnaTriggerDecision.cxx.

Referenced by SetDebugMode().

void EMCalTriggerPtAnalysis::AliEMCalTriggerAnaTriggerDecision::ConfigureTriggerDecision ( const AliEMCalTriggerAnaTriggerDecisionConfig conf)
inline

Set the configuration used for the trigger selection.

Parameters
confConfiguration used for the trigger selection

Definition at line 83 of file AliEMCalTriggerAnaTriggerDecision.h.

Referenced by EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTriggerV1::Run().

void EMCalTriggerPtAnalysis::AliEMCalTriggerAnaTriggerDecision::Create ( const AliEMCalTriggerEventData *const  data)

Steer creation of the trigger decision. Delegates the creation of the trigger decision from trigger strings to the function MakeDecisionFromString and of the decision from patches to the function MakeDecisionFromPatches.

Parameters
dataall event information

Definition at line 45 of file AliEMCalTriggerAnaTriggerDecision.cxx.

Referenced by EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTriggerV1::Run(), and ~AliEMCalTriggerAnaTriggerDecision().

const AliEMCalTriggerAnaTriggerDecisionConfig* EMCalTriggerPtAnalysis::AliEMCalTriggerAnaTriggerDecision::GetConfiguration ( ) const
inline

Get the trigger decision configuration

Returns
the trigger decision configuration

Definition at line 77 of file AliEMCalTriggerAnaTriggerDecision.h.

Double_t EMCalTriggerPtAnalysis::AliEMCalTriggerAnaTriggerDecision::GetPatchEnergy ( EPatchEnergyType_t  energytype,
const AliEMCALTriggerPatchInfo *const  patch 
) const
protected

Retrieve patch energy from the reconstruced patch according to the energy definition specified.

Parameters
energytypeEnergy type
patchThe reconstructed patch
Returns
The patch energy

Definition at line 168 of file AliEMCalTriggerAnaTriggerDecision.cxx.

Referenced by SelectTriggerPatch(), and SetDebugMode().

Bool_t EMCalTriggerPtAnalysis::AliEMCalTriggerAnaTriggerDecision::IsTriggered ( ETATriggerType  trigger,
ETriggerMethod_t  method = kTriggerString 
) const
inline

Apply event selection using a given trigger class. Three methods are avialable:

  1. Using the trigger string (kTriggerString)
  2. Using the reconstructed patches, online or offline (kTriggerPatches)
  3. Using patches and trigger string (kTriggerMixed): In this case both conditions need to be fulfilled
Parameters
triggerType of the trigger requested in order to select the event
methodMethod (see above) used for the event selection
Returns
True if event is selected as triggered event, false otherwise

Definition at line 63 of file AliEMCalTriggerAnaTriggerDecision.h.

Referenced by EMCalTriggerPtAnalysis::AliEMCalTriggerAnaTriggerClass::IsEventTriggered().

void EMCalTriggerPtAnalysis::AliEMCalTriggerAnaTriggerDecision::MakeDecisionFromPatches ( const TClonesArray &  listOfPatches)
protected

Create trigger decision from trigger patches. In case swap thresholds is requested, the low threshold triggers are replaced by the high threshold triggers and vice versa

Parameters
listOfPatchesthe TClonesArray of the trigger patches, created by the trigger patch maker

Definition at line 93 of file AliEMCalTriggerAnaTriggerDecision.cxx.

Referenced by Create(), and SetDebugMode().

void EMCalTriggerPtAnalysis::AliEMCalTriggerAnaTriggerDecision::MakeDecisionFromString ( const TString triggerstring)
protected

Create trigger decision from trigger string. For each trigger class we only check if the name of the trigger class appears in the trigger string.

Parameters
triggerstringthe trigger string stored in the reconstructed event.

Definition at line 67 of file AliEMCalTriggerAnaTriggerDecision.cxx.

Referenced by Create(), and SetDebugMode().

void EMCalTriggerPtAnalysis::AliEMCalTriggerAnaTriggerDecision::Print ( Option_t opt = NULL) const

Print status of the trigger decision

Parameters
Parameterrequired by the interface, not used here

Definition at line 184 of file AliEMCalTriggerAnaTriggerDecision.cxx.

Referenced by ConfigureTriggerDecision().

void EMCalTriggerPtAnalysis::AliEMCalTriggerAnaTriggerDecision::Reset ( )

Reset trigger decisions stored in this object

Definition at line 54 of file AliEMCalTriggerAnaTriggerDecision.cxx.

Referenced by AliEMCalTriggerAnaTriggerDecision(), ConfigureTriggerDecision(), and Create().

Bool_t EMCalTriggerPtAnalysis::AliEMCalTriggerAnaTriggerDecision::SelectTriggerPatch ( ETATriggerType  trigger,
const AliEMCALTriggerPatchInfo *const  recpatch 
) const
protected

Select trigger patch for a given trigger type:

  1. Check whether the patch is of patch type (online/offline) we require
  2. Check if the patch belongs to the given trigger class.
  3. If required perform additional selection of patches avbove energy.
Parameters
triggerType of the trigger class
recpatchPatch to accept
Returns
True if the patch is selected, false otherwise

Definition at line 131 of file AliEMCalTriggerAnaTriggerDecision.cxx.

Referenced by MakeDecisionFromPatches(), and SetDebugMode().

void EMCalTriggerPtAnalysis::AliEMCalTriggerAnaTriggerDecision::SetDebugMode ( Bool_t  doDebug = true)
inline

Set the analysis into debug mode (enabling debug printouts)

Parameters
doDebugIf true we enable debug printouts.

Definition at line 93 of file AliEMCalTriggerAnaTriggerDecision.h.

Referenced by EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTriggerV1::Run().

Member Data Documentation

AliEMCalTriggerAnaTriggerDecisionConfig EMCalTriggerPtAnalysis::AliEMCalTriggerAnaTriggerDecision::fConfiguration
protected

Configuration for the trigger decision handler.

Definition at line 104 of file AliEMCalTriggerAnaTriggerDecision.h.

Referenced by ConfigureTriggerDecision(), GetConfiguration(), MakeDecisionFromPatches(), and SelectTriggerPatch().

Bool_t EMCalTriggerPtAnalysis::AliEMCalTriggerAnaTriggerDecision::fDecisionFromPatches[4]
protected

Storage for result from trigger string.

Definition at line 105 of file AliEMCalTriggerAnaTriggerDecision.h.

Referenced by CheckConsistency(), IsTriggered(), MakeDecisionFromPatches(), Print(), and Reset().

Bool_t EMCalTriggerPtAnalysis::AliEMCalTriggerAnaTriggerDecision::fDecisionFromString[4]
protected

Storage for result from trigger patches.

Definition at line 106 of file AliEMCalTriggerAnaTriggerDecision.h.

Referenced by CheckConsistency(), IsTriggered(), MakeDecisionFromString(), Print(), and Reset().

Bool_t EMCalTriggerPtAnalysis::AliEMCalTriggerAnaTriggerDecision::fDoDebug
protected

Switch for debug mode.

Definition at line 108 of file AliEMCalTriggerAnaTriggerDecision.h.

Referenced by MakeDecisionFromPatches(), and SetDebugMode().


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