AliPhysics  96866e8 (96866e8)
EMCalTriggerPtAnalysis::AliEMCalTriggerTaskGroup Class Reference

Container class for analysis components with common event selection. More...

#include <AliEMCalTriggerTaskGroup.h>

Inheritance diagram for EMCalTriggerPtAnalysis::AliEMCalTriggerTaskGroup:

Public Member Functions

 AliEMCalTriggerTaskGroup ()
 
 AliEMCalTriggerTaskGroup (const char *name)
 
 AliEMCalTriggerTaskGroup (const AliEMCalTriggerTaskGroup &ref)
 
AliEMCalTriggerTaskGroupoperator= (const AliEMCalTriggerTaskGroup &ref)
 
virtual ~AliEMCalTriggerTaskGroup ()
 
virtual void Copy (TObject &other) const
 
void SetEventSelection (const AliEMCalTriggerEventSelection *sel)
 
void SetGlobalBinning (const AliEMCalTriggerBinningComponent *const binning)
 
void SetWeightHandler (const AliEMCalTriggerWeightHandler *handler)
 
void SetKineCuts (const AliEMCalTriggerKineCuts *cuts)
 
void AddAnalysisComponent (AliEMCalTriggerTracksAnalysisComponent *const analysis)
 
TListInitialiseAnalysisComponents (const AliEMCalTriggerAnaClassManager *mgr=NULL)
 
void Process (const AliEMCalTriggerEventData *const event)
 

Protected Attributes

TObjArrayfAnalysisComponents
 List of analysis components connected to the group. More...
 
const AliEMCalTriggerEventSelectionfEventSelection
 Common event selection for the group. More...
 
const AliEMCalTriggerBinningComponentfBinning
 Binning handler. More...
 
const AliEMCalTriggerKineCuts * fKineCuts
 Kinematical cuts shared by the task group. More...
 
const AliEMCalTriggerWeightHandlerfWeightHandler
 Weight handler for event weighting. More...
 

Detailed Description

Container class for analysis components with common event selection.

Group of analysis components with the same event selection, kinematical cuts, and histogram binnings. Analysis components are initialised via the Initialise function, and executed, if the event is selected, via the function process.

Definition at line 33 of file AliEMCalTriggerTaskGroup.h.

Constructor & Destructor Documentation

EMCalTriggerPtAnalysis::AliEMCalTriggerTaskGroup::AliEMCalTriggerTaskGroup ( )

Dummy constructor, not to be used

Definition at line 31 of file AliEMCalTriggerTaskGroup.cxx.

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

Main constructor: to be used by the users

Definition at line 44 of file AliEMCalTriggerTaskGroup.cxx.

EMCalTriggerPtAnalysis::AliEMCalTriggerTaskGroup::AliEMCalTriggerTaskGroup ( const AliEMCalTriggerTaskGroup ref)

Copy constructor. Copy process is delegated to the copy function handling both copy constructor and assignment operator.

Parameters
refReference for the copy

Definition at line 61 of file AliEMCalTriggerTaskGroup.cxx.

EMCalTriggerPtAnalysis::AliEMCalTriggerTaskGroup::~AliEMCalTriggerTaskGroup ( )
virtual

Destructor, cleaning up objects belonging to the task group (analysis components and event selection)

Definition at line 88 of file AliEMCalTriggerTaskGroup.cxx.

Member Function Documentation

void EMCalTriggerPtAnalysis::AliEMCalTriggerTaskGroup::AddAnalysisComponent ( AliEMCalTriggerTracksAnalysisComponent *const  analysis)

Add new analysis component to the task group

Parameters
analysisthe analysis component to be added

Definition at line 136 of file AliEMCalTriggerTaskGroup.cxx.

Referenced by SetKineCuts().

void EMCalTriggerPtAnalysis::AliEMCalTriggerTaskGroup::Copy ( TObject other) const
virtual

Copy function. Does a flat copy of all elements which are not under control of the task group. Will make a flat copy of all analysis components as well for the moment.

Parameters
otherTarget where the information from this object is set to.

Definition at line 159 of file AliEMCalTriggerTaskGroup.cxx.

Referenced by AliEMCalTriggerTaskGroup(), and operator=().

TList * EMCalTriggerPtAnalysis::AliEMCalTriggerTaskGroup::InitialiseAnalysisComponents ( const AliEMCalTriggerAnaClassManager classmgr = NULL)

Initialise all analysis components. Build a global histlist for the full group

Parameters
classmgrThe trigger class manager
Returns
: the global histogram list

Definition at line 99 of file AliEMCalTriggerTaskGroup.cxx.

Referenced by SetKineCuts(), and EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTriggerV1::UserCreateOutputObjects().

AliEMCalTriggerTaskGroup & EMCalTriggerPtAnalysis::AliEMCalTriggerTaskGroup::operator= ( const AliEMCalTriggerTaskGroup ref)

Copy constructor. Copy process is delegated to the copy function handling both copy constructor and assignment operator.

Parameters
refReference for the copy

Definition at line 77 of file AliEMCalTriggerTaskGroup.cxx.

void EMCalTriggerPtAnalysis::AliEMCalTriggerTaskGroup::Process ( const AliEMCalTriggerEventData *const  event)

Run analysis of the different groups. Apply event selection if requested;

Parameters
eventThe combined event data

Definition at line 123 of file AliEMCalTriggerTaskGroup.cxx.

Referenced by EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTriggerV1::Run(), and SetKineCuts().

void EMCalTriggerPtAnalysis::AliEMCalTriggerTaskGroup::SetEventSelection ( const AliEMCalTriggerEventSelection sel)
inline

Set global event selection to the task group

Parameters
selThe event selection handler

Definition at line 46 of file AliEMCalTriggerTaskGroup.h.

void EMCalTriggerPtAnalysis::AliEMCalTriggerTaskGroup::SetGlobalBinning ( const AliEMCalTriggerBinningComponent *const  binning)
inline

Set global binning handler to the task group

Parameters
binningThe binning handler

Definition at line 52 of file AliEMCalTriggerTaskGroup.h.

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

void EMCalTriggerPtAnalysis::AliEMCalTriggerTaskGroup::SetKineCuts ( const AliEMCalTriggerKineCuts *  cuts)
inline

Set common kinematical cuts for the particle selection within a group

Parameters
cutsThe kinematical cuts

Definition at line 60 of file AliEMCalTriggerTaskGroup.h.

void EMCalTriggerPtAnalysis::AliEMCalTriggerTaskGroup::SetWeightHandler ( const AliEMCalTriggerWeightHandler handler)

Set the weight handler to the group. If components are registered, publish the weight handler to them

Parameters
handlerThe weight handler for the group

Definition at line 146 of file AliEMCalTriggerTaskGroup.cxx.

Referenced by SetGlobalBinning().

Member Data Documentation

TObjArray* EMCalTriggerPtAnalysis::AliEMCalTriggerTaskGroup::fAnalysisComponents
protected

List of analysis components connected to the group.

Definition at line 68 of file AliEMCalTriggerTaskGroup.h.

Referenced by AddAnalysisComponent(), AliEMCalTriggerTaskGroup(), Copy(), InitialiseAnalysisComponents(), Process(), SetWeightHandler(), and ~AliEMCalTriggerTaskGroup().

const AliEMCalTriggerBinningComponent* EMCalTriggerPtAnalysis::AliEMCalTriggerTaskGroup::fBinning
protected

Binning handler.

Definition at line 70 of file AliEMCalTriggerTaskGroup.h.

Referenced by Copy(), InitialiseAnalysisComponents(), and SetGlobalBinning().

const AliEMCalTriggerEventSelection* EMCalTriggerPtAnalysis::AliEMCalTriggerTaskGroup::fEventSelection
protected

Common event selection for the group.

Definition at line 69 of file AliEMCalTriggerTaskGroup.h.

Referenced by Copy(), Process(), SetEventSelection(), and ~AliEMCalTriggerTaskGroup().

const AliEMCalTriggerKineCuts* EMCalTriggerPtAnalysis::AliEMCalTriggerTaskGroup::fKineCuts
protected

Kinematical cuts shared by the task group.

Definition at line 71 of file AliEMCalTriggerTaskGroup.h.

Referenced by Copy(), InitialiseAnalysisComponents(), and SetKineCuts().

const AliEMCalTriggerWeightHandler* EMCalTriggerPtAnalysis::AliEMCalTriggerTaskGroup::fWeightHandler
protected

Weight handler for event weighting.

Definition at line 72 of file AliEMCalTriggerTaskGroup.h.

Referenced by AddAnalysisComponent(), Copy(), InitialiseAnalysisComponents(), and SetWeightHandler().


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