AliPhysics  d565ceb (d565ceb)
PWG::EMCAL::AliEmcalTriggerDecision Class Reference

Container for trigger decision. More...

#include <AliEmcalTriggerDecision.h>

Inheritance diagram for PWG::EMCAL::AliEmcalTriggerDecision:

Public Member Functions

 AliEmcalTriggerDecision ()
 Dummy constructor. More...
 
 AliEmcalTriggerDecision (const char *name, const char *title="")
 The main (named) constructor. More...
 
virtual ~AliEmcalTriggerDecision ()
 Destructor. More...
 
const AliEMCALTriggerPatchInfo * GetMainPatch () const
 Get the highest energetic trigger patch of the event firing the trigger. More...
 
const AliEmcalTriggerSelectionCutsGetSelectionCuts () const
 Get the selection cuts used in the trigger selection. More...
 
const TListGetAcceptedPatches () const
 Get the list of all patches in the event satisfying the trigger condition. More...
 
Bool_t IsSelected () const
 Check whether event is selected under the given trigger. More...
 
void SetSelectionCuts (const AliEmcalTriggerSelectionCuts *const cuts)
 Set the selection cuts used in the trigger selection. More...
 
void SetMainPatch (const AliEMCALTriggerPatchInfo *const mainpatch)
 Set the main (highest-energetic) trigger patch. More...
 
void AddAcceptedPatch (AliEMCALTriggerPatchInfo *const acceptedPatch)
 

Protected Attributes

const AliEMCALTriggerPatchInfo * fMainPatch
 Main trigger patch which fires the decision. More...
 
const AliEmcalTriggerSelectionCutsfSelectionCuts
 Pointer to the cuts used for the trigger selection. More...
 
TList fAcceptedPatches
 All trigger patches which are accepted as well. More...
 

Private Member Functions

 AliEmcalTriggerDecision (const AliEmcalTriggerDecision &ref)
 
AliEmcalTriggerDecisionoperator= (const AliEmcalTriggerDecision &ref)
 

Detailed Description

Container for trigger decision.

Author
Markus Fasel marku.nosp@m.s.fa.nosp@m.sel@c.nosp@m.ern..nosp@m.ch
Since
Dec 17, 2014

Object storing the result of the EMCAL trigger decision. The result is appended to the input event and can be read out by consumer tasks.

Definition at line 51 of file AliEmcalTriggerDecision.h.

Constructor & Destructor Documentation

PWG::EMCAL::AliEmcalTriggerDecision::AliEmcalTriggerDecision ( )

Dummy constructor.

Needed for I/O, not to be used by the user

Definition at line 36 of file AliEmcalTriggerDecision.cxx.

PWG::EMCAL::AliEmcalTriggerDecision::AliEmcalTriggerDecision ( const char *  name,
const char *  title = "" 
)

The main (named) constructor.

The decision object can be read out later by the consumer task according to the name.

Parameters
[in]nameName of the decision object
[in]titleTitle of the decision object

Definition at line 45 of file AliEmcalTriggerDecision.cxx.

PWG::EMCAL::AliEmcalTriggerDecision::~AliEmcalTriggerDecision ( )
virtual

Destructor.

Definition at line 54 of file AliEmcalTriggerDecision.cxx.

PWG::EMCAL::AliEmcalTriggerDecision::AliEmcalTriggerDecision ( const AliEmcalTriggerDecision ref)
private

Member Function Documentation

void PWG::EMCAL::AliEmcalTriggerDecision::AddAcceptedPatch ( AliEMCALTriggerPatchInfo *const  acceptedPatch)

Add accepted patch to the trigger decision

Parameters
[in]patchthe accepted patch

Definition at line 58 of file AliEmcalTriggerDecision.cxx.

Referenced by PWG::EMCAL::AliEmcalTriggerSelection::MakeDecison(), and SetMainPatch().

const TList* PWG::EMCAL::AliEmcalTriggerDecision::GetAcceptedPatches ( ) const
inline

Get the list of all patches in the event satisfying the trigger condition.

Returns

Definition at line 93 of file AliEmcalTriggerDecision.h.

const AliEMCALTriggerPatchInfo* PWG::EMCAL::AliEmcalTriggerDecision::GetMainPatch ( ) const
inline

Get the highest energetic trigger patch of the event firing the trigger.

Returns
Highest energetic trigger patch of the event

Definition at line 81 of file AliEmcalTriggerDecision.h.

Referenced by PWG::EMCAL::AliAnalysisTaskEmcalTriggerSelection::AliEmcalTriggerSelectionQA::Fill().

const AliEmcalTriggerSelectionCuts* PWG::EMCAL::AliEmcalTriggerDecision::GetSelectionCuts ( ) const
inline

Get the selection cuts used in the trigger selection.

Returns
Selection cuts used for the corresponding trigger class

Definition at line 87 of file AliEmcalTriggerDecision.h.

Bool_t PWG::EMCAL::AliEmcalTriggerDecision::IsSelected ( ) const
inline

Check whether event is selected under the given trigger.

An event is selected if a main (highest energy) patch was found

Returns
True if the event was selected, false otherwise

Definition at line 101 of file AliEmcalTriggerDecision.h.

Referenced by PWG::EMCAL::AliEmcalTriggerDecisionContainer::IsEventSelected(), and PWGJE::EMCALJetTasks::Test::AliAnalysisTaskEmcalTriggerSelectionTest::Run().

AliEmcalTriggerDecision& PWG::EMCAL::AliEmcalTriggerDecision::operator= ( const AliEmcalTriggerDecision ref)
private
void PWG::EMCAL::AliEmcalTriggerDecision::SetMainPatch ( const AliEMCALTriggerPatchInfo *const  mainpatch)
inline

Set the main (highest-energetic) trigger patch.

Parameters
[in]mainpatchHighest energetic trigger patch of the event firing the trigger

Definition at line 113 of file AliEmcalTriggerDecision.h.

Referenced by PWG::EMCAL::AliEmcalTriggerSelection::MakeDecison().

void PWG::EMCAL::AliEmcalTriggerDecision::SetSelectionCuts ( const AliEmcalTriggerSelectionCuts *const  cuts)
inline

Set the selection cuts used in the trigger selection.

Parameters
[in]cutsSelection cuts for the given trigger class

Definition at line 107 of file AliEmcalTriggerDecision.h.

Referenced by PWG::EMCAL::AliEmcalTriggerSelection::MakeDecison().

Member Data Documentation

TList PWG::EMCAL::AliEmcalTriggerDecision::fAcceptedPatches
protected

All trigger patches which are accepted as well.

Definition at line 125 of file AliEmcalTriggerDecision.h.

Referenced by AddAcceptedPatch(), AliEmcalTriggerDecision(), GetAcceptedPatches(), and ~AliEmcalTriggerDecision().

const AliEMCALTriggerPatchInfo* PWG::EMCAL::AliEmcalTriggerDecision::fMainPatch
protected

Main trigger patch which fires the decision.

Definition at line 123 of file AliEmcalTriggerDecision.h.

Referenced by GetMainPatch(), IsSelected(), and SetMainPatch().

const AliEmcalTriggerSelectionCuts* PWG::EMCAL::AliEmcalTriggerDecision::fSelectionCuts
protected

Pointer to the cuts used for the trigger selection.

Definition at line 124 of file AliEmcalTriggerDecision.h.

Referenced by GetSelectionCuts(), and SetSelectionCuts().


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