AliPhysics  0937c79 (0937c79)
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)
 Main constructor. More...
 
virtual ~AliEmcalTriggerSelection ()
 Destructor. 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...
 
AliEmcalTriggerDecisionMakeDecison (const TClonesArray *const reconstructedPatches) const
 

Protected Attributes

const AliEmcalTriggerSelectionCutsfSelectionCuts
 Cuts used for the trigger patch 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 60 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 
)

Main constructor.

Initialises the trigger selection

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

Definition at line 50 of file AliEmcalTriggerSelection.cxx.

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

Destructor.

Definition at line 83 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 89 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 56 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 82 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 95 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 90 of file AliEmcalTriggerSelection.cxx.

Member Data Documentation

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

Cuts used for the trigger patch selection.

Definition at line 119 of file AliEmcalTriggerSelection.h.

Referenced by MakeDecison(), and PrintStream().


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