AliPhysics  master (3d17d9d)
PWG::EMCAL::AliEmcalTriggerSelection Class Reference

Object performing offline EMCAL trigger selection. More...

#include <AliEmcalTriggerSelection.h>

Inheritance diagram for PWG::EMCAL::AliEmcalTriggerSelection:

Public Member Functions

 AliEmcalTriggerSelection ()
 Dummy constructor. More...
 
 AliEmcalTriggerSelection (const char *name, const AliEmcalTriggerSelectionCuts *const cuts, const AliEmcalTriggerAlias *alias=nullptr)
 Main constructor. More...
 
virtual ~AliEmcalTriggerSelection ()
 Destructor. More...
 
const AliEmcalTriggerAliasGetTriggerAlias () const
 Get the trigger alias. More...
 
const AliEmcalTriggerSelectionCutsGetSelectionCuts () const
 Get the selection cuts used in the trigger selection. More...
 
void SetSelectionCuts (const AliEmcalTriggerSelectionCuts *const cuts)
 Set the selection cuts used in this trigger selection. More...
 
void SetTriggerAlias (const AliEmcalTriggerAlias *const alias)
 
AliEmcalTriggerDecisionMakeDecison (const TClonesArray *const reconstructedPatches) const
 

Protected Attributes

const AliEmcalTriggerSelectionCutsfSelectionCuts
 Cuts used for the trigger patch selection. More...
 
const AliEmcalTriggerAliasfTriggerAlias
 Trigger alias for the trigger selection. More...
 

Private Member Functions

 AliEmcalTriggerSelection (const AliEmcalTriggerSelection &ref)
 
AliEmcalTriggerSelectionoperator= (const AliEmcalTriggerSelection &ref)
 
void PrintStream (std::ostream &stream) const
 Helper function for the stream operator. More...
 

Friends

std::ostream & operator<< (std::ostream &stream, const AliEmcalTriggerSelection &sel)
 Output stream operator. More...
 

Detailed Description

Object performing offline EMCAL trigger selection.

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

Object performing an offline EMCAL trigger decision based on user defined criterions (trigger patch type, energy threshold,...). The main method MakeTriggerDecision performs an event selection and creates a trigger decision object with the relevant information.

Definition at line 61 of file AliEmcalTriggerSelection.h.

Constructor & Destructor Documentation

PWG::EMCAL::AliEmcalTriggerSelection::AliEmcalTriggerSelection ( )

Dummy constructor.

Used by I/O, not to be used by the user

Definition at line 44 of file AliEmcalTriggerSelection.cxx.

PWG::EMCAL::AliEmcalTriggerSelection::AliEmcalTriggerSelection ( const char *  name,
const AliEmcalTriggerSelectionCuts *const  cuts,
const AliEmcalTriggerAlias alias = nullptr 
)

Main constructor.

Initialises the trigger selection

Parameters
namename of the trigger selection
cuts(optional)selection cuts to be applied
alias(optional)trigger alias

Definition at line 51 of file AliEmcalTriggerSelection.cxx.

virtual PWG::EMCAL::AliEmcalTriggerSelection::~AliEmcalTriggerSelection ( )
inlinevirtual

Destructor.

Definition at line 85 of file AliEmcalTriggerSelection.h.

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

Member Function Documentation

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

Get the selection cuts used in the trigger selection.

Returns
Selection cuts used in this trigger selection

Definition at line 97 of file AliEmcalTriggerSelection.h.

const AliEmcalTriggerAlias* PWG::EMCAL::AliEmcalTriggerSelection::GetTriggerAlias ( ) const
inline

Get the trigger alias.

Returns
Trigger alias (nullptr if not set)

Definition at line 91 of file AliEmcalTriggerSelection.h.

AliEmcalTriggerDecision * PWG::EMCAL::AliEmcalTriggerSelection::MakeDecison ( const TClonesArray *const  reconstructedPatches) const

Perform event selection based on user-defined criteria and create an output trigger decision containing the threshold, the main patch which fired the decision, and all other patches which would have fired the decision as well.

Parameters
[in]reconstructedPatchesA list of input patches, created by the trigger patch maker and read out from the input event
Returns
the trigger decision (an event is selected when it has a main patch that fired the decision)

Definition at line 58 of file AliEmcalTriggerSelection.cxx.

Referenced by PWG::EMCAL::AliAnalysisTaskEmcalTriggerSelection::Run().

AliEmcalTriggerSelection& PWG::EMCAL::AliEmcalTriggerSelection::operator= ( const AliEmcalTriggerSelection ref)
private
void PWG::EMCAL::AliEmcalTriggerSelection::PrintStream ( std::ostream &  stream) const
private

Helper function for the stream operator.

Performs logging

Parameters
streamStream used for logging

Definition at line 85 of file AliEmcalTriggerSelection.cxx.

Referenced by operator<<().

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

Set the selection cuts used in this trigger selection.

Parameters
[in]cutsSelection cuts used to fire the trigger

Definition at line 103 of file AliEmcalTriggerSelection.h.

void PWG::EMCAL::AliEmcalTriggerSelection::SetTriggerAlias ( const AliEmcalTriggerAlias *const  alias)
inline

Definition at line 105 of file AliEmcalTriggerSelection.h.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  stream,
const AliEmcalTriggerSelection sel 
)
friend

Output stream operator.

Logging trigger selection configuration (name, cuts) to the output stream

Parameters
streamStream used for logging
selTrigger selection object to be logged
Returns
Output stream after logging

Definition at line 94 of file AliEmcalTriggerSelection.cxx.

Member Data Documentation

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

Cuts used for the trigger patch selection.

Definition at line 129 of file AliEmcalTriggerSelection.h.

Referenced by MakeDecison(), and PrintStream().

const AliEmcalTriggerAlias* PWG::EMCAL::AliEmcalTriggerSelection::fTriggerAlias
protected

Trigger alias for the trigger selection.

Definition at line 130 of file AliEmcalTriggerSelection.h.

Referenced by MakeDecison(), and PrintStream().


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