AliPhysics  6bc8652 (6bc8652)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EMCalTriggerPtAnalysis::AliEMCalTriggerAnaClassManager Class Reference

Manager for trigger classes. More...

#include <AliEMCalTriggerAnaClassManager.h>

Inheritance diagram for EMCalTriggerPtAnalysis::AliEMCalTriggerAnaClassManager:

Public Member Functions

 AliEMCalTriggerAnaClassManager ()
 
 AliEMCalTriggerAnaClassManager (const char *name)
 
 AliEMCalTriggerAnaClassManager (const AliEMCalTriggerAnaClassManager &ref)
 
AliEMCalTriggerAnaClassManageroperator= (const AliEMCalTriggerAnaClassManager &ref)
 
virtual ~AliEMCalTriggerAnaClassManager ()
 
void PerformEventSelection (AliEMCalTriggerEventData *trgevent)
 
void AddTriggerClass (AliEMCalTriggerAnaTriggerClass *triggerclass)
 
void SetTriggerDecision (AliEMCalTriggerAnaTriggerDecision *triggerdecision)
 
TObjArrayGetSelectedTriggerClasses () const
 
TObjArrayGetAllTriggerClasses () const
 
bool HasMinBiasTrigger () const
 

Private Attributes

TObjArrayfTriggerClasses
 List of trigger classes. More...
 
TObjArrayfSelected
 List of selected trigger classes. More...
 

Detailed Description

Manager for trigger classes.

This class manages trigger classes, meaning it serves as a container and steers the event selection.

Definition at line 53 of file AliEMCalTriggerAnaClassManager.h.

Constructor & Destructor Documentation

EMCalTriggerPtAnalysis::AliEMCalTriggerAnaClassManager::AliEMCalTriggerAnaClassManager ( )

Dummy constructor

Definition at line 30 of file AliEMCalTriggerAnaClassManager.cxx.

EMCalTriggerPtAnalysis::AliEMCalTriggerAnaClassManager::AliEMCalTriggerAnaClassManager ( const char *  name)

Named constructor, creating also arrays

Parameters
nameName of the handler

Definition at line 41 of file AliEMCalTriggerAnaClassManager.cxx.

EMCalTriggerPtAnalysis::AliEMCalTriggerAnaClassManager::AliEMCalTriggerAnaClassManager ( const AliEMCalTriggerAnaClassManager ref)

Copy constructor

Parameters
refReference for the copy

Definition at line 56 of file AliEMCalTriggerAnaClassManager.cxx.

EMCalTriggerPtAnalysis::AliEMCalTriggerAnaClassManager::~AliEMCalTriggerAnaClassManager ( )
virtual

Destructor

Definition at line 93 of file AliEMCalTriggerAnaClassManager.cxx.

Member Function Documentation

void EMCalTriggerPtAnalysis::AliEMCalTriggerAnaClassManager::AddTriggerClass ( AliEMCalTriggerAnaTriggerClass triggerclass)

Add new trigger class to the manager

Parameters
triggerclass

Definition at line 116 of file AliEMCalTriggerAnaClassManager.cxx.

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

TObjArray * EMCalTriggerPtAnalysis::AliEMCalTriggerAnaClassManager::GetAllTriggerClasses ( ) const
TObjArray * EMCalTriggerPtAnalysis::AliEMCalTriggerAnaClassManager::GetSelectedTriggerClasses ( ) const

Get the list of selected trigger classes. Event selection has to be performed before.

Returns
The list of selected trigger classes.
Exceptions
TriggerManagerEmptyException

Definition at line 149 of file AliEMCalTriggerAnaClassManager.cxx.

Referenced by EMCalTriggerPtAnalysis::AliEMCalTriggerTracksAnalysisComponent::GetMachingTriggerNames().

bool EMCalTriggerPtAnalysis::AliEMCalTriggerAnaClassManager::HasMinBiasTrigger ( ) const
AliEMCalTriggerAnaClassManager & EMCalTriggerPtAnalysis::AliEMCalTriggerAnaClassManager::operator= ( const AliEMCalTriggerAnaClassManager ref)

Assignment operator

Parameters
refReference for assignment
Returns
Trigger class manager after assignment

Definition at line 76 of file AliEMCalTriggerAnaClassManager.cxx.

void EMCalTriggerPtAnalysis::AliEMCalTriggerAnaClassManager::PerformEventSelection ( AliEMCalTriggerEventData trgevent)

For each trigger class test whether event is selected for the class and mark as selected

Parameters
trgeventThe event data to check.
Exceptions
TriggerManagerEmptyException

Definition at line 103 of file AliEMCalTriggerAnaClassManager.cxx.

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

void EMCalTriggerPtAnalysis::AliEMCalTriggerAnaClassManager::SetTriggerDecision ( AliEMCalTriggerAnaTriggerDecision triggerdecision)

Forward trigger decision handler to all trigger classes

Parameters
triggerdecisionThe trigger decision for the given event

Definition at line 123 of file AliEMCalTriggerAnaClassManager.cxx.

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

Member Data Documentation

TObjArray* EMCalTriggerPtAnalysis::AliEMCalTriggerAnaClassManager::fSelected
private
TObjArray* EMCalTriggerPtAnalysis::AliEMCalTriggerAnaClassManager::fTriggerClasses
private

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