AliPhysics  ced2227 (ced2227)
EMCalTriggerPtAnalysis::AliEMCalTriggerAnaTriggerClass Class Reference

Description of a trigger class. More...

#include <AliEMCalTriggerAnaTriggerClass.h>

Inheritance diagram for EMCalTriggerPtAnalysis::AliEMCalTriggerAnaTriggerClass:

Public Member Functions

 AliEMCalTriggerAnaTriggerClass ()
 
 AliEMCalTriggerAnaTriggerClass (const char *name, const char *title)
 
virtual ~AliEMCalTriggerAnaTriggerClass ()
 
bool IsEventTriggered (const AliEMCalTriggerEventData *const) const
 
bool IsMinBiasTrigger () const
 
void AddTriggerBit (UInt_t triggerbit)
 
void AddTriggerStringPattern (const char *triggerpattern, bool isRequested)
 
void AddTriggerPatchType (ETATriggerType triggertype)
 
void SetTriggerDecisionHandler (AliEMCalTriggerAnaTriggerDecision *triggerhandler)
 
void SetMinBiasTrigger (Bool_t isMinBias)
 

Protected Attributes

Bool_t fDecisionFromTriggerBits
 Switch for using trigger bits for event selection. More...
 
Bool_t fDecisionFromTriggerString
 Switch for using the trigger string for event selection. More...
 
Bool_t fDecisionFromTriggerPatches
 Switch for using reconstructed trigger patches for event selection. More...
 
Bool_t fIsMinBiasTrigger
 Flag class as min. bias trigger class. More...
 
UInt_t fTriggerBits
 Trigger bits used for event selection. More...
 
AliEMCalTriggerAnaPatternContainer fTriggerStringPattern
 Trigger patterns used for event selection. More...
 
TObjArray fTriggerPatchTypes
 Trigger patch types used for the selection. More...
 
AliEMCalTriggerAnaTriggerDecisionfEmcalTriggerHandler
 Handling of trigger patch selection. More...
 

Detailed Description

Description of a trigger class.

A trigger class is a class of events trigger under the same conditions. Triggers can be identified

  • via the occurrence of a given trigger bit
  • via the occurrence of a given pattern (can be complex) in the trigger string
  • via the occurrence of a given patch type reconstructed in the EMCAL

Consequently a trigger class has

  • a name and a title
  • a method how to select events

Definition at line 262 of file AliEMCalTriggerAnaTriggerClass.h.

Constructor & Destructor Documentation

EMCalTriggerPtAnalysis::AliEMCalTriggerAnaTriggerClass::AliEMCalTriggerAnaTriggerClass ( )

Dummy (I/O) constructor - not to be used

Definition at line 33 of file AliEMCalTriggerAnaTriggerClass.cxx.

EMCalTriggerPtAnalysis::AliEMCalTriggerAnaTriggerClass::AliEMCalTriggerAnaTriggerClass ( const char *  name,
const char *  title 
)

Named constructor - Defines the trigger class with a name and a title

Parameters
nameName of the trigger class
titleA short description

Definition at line 50 of file AliEMCalTriggerAnaTriggerClass.cxx.

EMCalTriggerPtAnalysis::AliEMCalTriggerAnaTriggerClass::~AliEMCalTriggerAnaTriggerClass ( )
virtual

Destructor - nothing to do

Definition at line 67 of file AliEMCalTriggerAnaTriggerClass.cxx.

Member Function Documentation

void EMCalTriggerPtAnalysis::AliEMCalTriggerAnaTriggerClass::AddTriggerBit ( UInt_t  triggerbit)
inline

Add trigger bit to the class. Set the request for a trigger bit to true

Parameters
triggerbitTrigger bit to check

Definition at line 279 of file AliEMCalTriggerAnaTriggerClass.h.

void EMCalTriggerPtAnalysis::AliEMCalTriggerAnaTriggerClass::AddTriggerPatchType ( ETATriggerType  triggertype)
inline

Add trigger patch type for selection based on trigger patchess

Parameters
triggertypethe patch type to select

Definition at line 296 of file AliEMCalTriggerAnaTriggerClass.h.

void EMCalTriggerPtAnalysis::AliEMCalTriggerAnaTriggerClass::AddTriggerStringPattern ( const char *  triggerpattern,
bool  isRequested 
)
inline

Add trigger pattern to the trigger class

Parameters
triggerpatternTrigger pattern to check in the trigger string
isRequestedIf true the pattern has to appear in the trigger string, otherwise it is not supposed to appear there

Definition at line 288 of file AliEMCalTriggerAnaTriggerClass.h.

bool EMCalTriggerPtAnalysis::AliEMCalTriggerAnaTriggerClass::IsEventTriggered ( const AliEMCalTriggerEventData * const  triggerevent) const

Selection of events according to the trigger class. In case any condition fails, the others from that time on are not checked anymore.

Parameters
triggerevnetThe event data to check
Returns
True if the event is selected for this trigger class, false otherwise
Exceptions
TriggerMethodUndefinedExceptionin case no method to select events is defined
EventCorruptionExceptionif the reconstructed event is missing or the trigger patch container is missing
PatchHandlerMissingExceptionif the trigger patch handler is not set

Definition at line 77 of file AliEMCalTriggerAnaTriggerClass.cxx.

Referenced by EMCalTriggerPtAnalysis::AliEMCalTriggerAnaClassManager::PerformEventSelection().

bool EMCalTriggerPtAnalysis::AliEMCalTriggerAnaTriggerClass::IsMinBiasTrigger ( ) const
inline

Check whether trigger class is marked as a min. bias trigger

Returns
True if the trigger is a min. bias trigger, false otherwise

Definition at line 273 of file AliEMCalTriggerAnaTriggerClass.h.

void EMCalTriggerPtAnalysis::AliEMCalTriggerAnaTriggerClass::SetMinBiasTrigger ( Bool_t  isMinBias)
inline

Flag event as min. bias event

Parameters
isMinBiasIf true event is flagged as a min. bias event

Definition at line 308 of file AliEMCalTriggerAnaTriggerClass.h.

void EMCalTriggerPtAnalysis::AliEMCalTriggerAnaTriggerClass::SetTriggerDecisionHandler ( AliEMCalTriggerAnaTriggerDecision triggerhandler)
inline

Set handling for trigger patches.

Parameters
triggerhandlerThe trigger patch decision

Definition at line 303 of file AliEMCalTriggerAnaTriggerClass.h.

Member Data Documentation

Bool_t EMCalTriggerPtAnalysis::AliEMCalTriggerAnaTriggerClass::fDecisionFromTriggerBits
protected

Switch for using trigger bits for event selection.

Definition at line 311 of file AliEMCalTriggerAnaTriggerClass.h.

Referenced by IsEventTriggered().

Bool_t EMCalTriggerPtAnalysis::AliEMCalTriggerAnaTriggerClass::fDecisionFromTriggerPatches
protected

Switch for using reconstructed trigger patches for event selection.

Definition at line 313 of file AliEMCalTriggerAnaTriggerClass.h.

Referenced by IsEventTriggered().

Bool_t EMCalTriggerPtAnalysis::AliEMCalTriggerAnaTriggerClass::fDecisionFromTriggerString
protected

Switch for using the trigger string for event selection.

Definition at line 312 of file AliEMCalTriggerAnaTriggerClass.h.

Referenced by IsEventTriggered().

AliEMCalTriggerAnaTriggerDecision* EMCalTriggerPtAnalysis::AliEMCalTriggerAnaTriggerClass::fEmcalTriggerHandler
protected

Handling of trigger patch selection.

Definition at line 319 of file AliEMCalTriggerAnaTriggerClass.h.

Referenced by IsEventTriggered().

Bool_t EMCalTriggerPtAnalysis::AliEMCalTriggerAnaTriggerClass::fIsMinBiasTrigger
protected

Flag class as min. bias trigger class.

Definition at line 315 of file AliEMCalTriggerAnaTriggerClass.h.

UInt_t EMCalTriggerPtAnalysis::AliEMCalTriggerAnaTriggerClass::fTriggerBits
protected

Trigger bits used for event selection.

Definition at line 316 of file AliEMCalTriggerAnaTriggerClass.h.

Referenced by IsEventTriggered().

TObjArray EMCalTriggerPtAnalysis::AliEMCalTriggerAnaTriggerClass::fTriggerPatchTypes
protected

Trigger patch types used for the selection.

Definition at line 318 of file AliEMCalTriggerAnaTriggerClass.h.

Referenced by AliEMCalTriggerAnaTriggerClass(), and IsEventTriggered().

AliEMCalTriggerAnaPatternContainer EMCalTriggerPtAnalysis::AliEMCalTriggerAnaTriggerClass::fTriggerStringPattern
protected

Trigger patterns used for event selection.

Definition at line 317 of file AliEMCalTriggerAnaTriggerClass.h.

Referenced by IsEventTriggered().


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