AliPhysics  vAN-20150427 (e6e7aad)
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
EMCalTriggerPtAnalysis::AliEMCalTriggerTracksAnalysisComponent Class Referenceabstract

Base class for analysis components in the analysis of EMCAL-triggered events. More...

#include <AliEMCalTriggerTracksAnalysisComponent.h>

Inheritance diagram for EMCalTriggerPtAnalysis::AliEMCalTriggerTracksAnalysisComponent:

Public Member Functions

 AliEMCalTriggerTracksAnalysisComponent ()
 
 AliEMCalTriggerTracksAnalysisComponent (const char *name)
 
virtual ~AliEMCalTriggerTracksAnalysisComponent ()
 
virtual void CreateHistos ()
 
virtual void Process (const AliEMCalTriggerEventData *const data)=0
 
THashList * GetHistList () const
 
const
AliEMCalTriggerWeightHandler
GetWeightHandler () const
 
void SetBinning (const AliEMCalTriggerBinningComponent *const binning)
 
void SetKineCuts (const AliEMCalTriggerKineCuts *const cuts)
 
void SetTriggerDecision (const AliEMCalTriggerAnaTriggerDecision *trigger)
 
void SetWeightHandler (const AliEMCalTriggerWeightHandler *handler)
 
void SetComponentDebugLevel (int debuglevel)
 

Protected Member Functions

TAxis * DefineAxis (const char *name, const AliEMCalTriggerBinningDimension *binning)
 
TAxis * DefineAxis (const char *name, int nbins, double min, double max)
 
void GetMachingTriggerNames (std::vector< std::string > &triggernames, ETriggerMethod_t usePatches)
 
void PrintTriggerNames (const std::vector< std::string > &, const std::string &componentName) const
 

Protected Attributes

AliEMCalHistoContainerfHistos
 Histogram container of the analysis component. More...
 
const
AliEMCalTriggerBinningComponent
fBinning
 Global binning handler. More...
 
const AliEMCalTriggerKineCutsfKineCuts
 Kinematical cuts for tracks and particle selection. More...
 
const
AliEMCalTriggerAnaTriggerDecision
fTriggerDecision
 Trigger decision handler. More...
 
const
AliEMCalTriggerWeightHandler
fWeightHandler
 Event weight handler. More...
 
Int_t fComponentDebugLevel
 Debug level for the given analysis component. More...
 

Detailed Description

Base class for analysis components in the analysis of EMCAL-triggered events.

This class defines the base class of all analysis components used in the analysis of EMCAL-triggered events. A new analysis component has to implement at least the functions

  • CreateHistos
  • Process where the function process is abstract. The function CreateHistos contains the code for the initialization of the component and is run at the start of the analysis. Process implements the event loop and is called once per event.

Definition at line 50 of file AliEMCalTriggerTracksAnalysisComponent.h.

Constructor & Destructor Documentation

EMCalTriggerPtAnalysis::AliEMCalTriggerTracksAnalysisComponent::AliEMCalTriggerTracksAnalysisComponent ( )

Dummy (I/O) constructor, not to be used

Definition at line 31 of file AliEMCalTriggerTracksAnalysisComponent.cxx.

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

Main constructor, to be called by the user. Initializes all fields with NULL.

Parameters
namecomponent name

Definition at line 53 of file AliEMCalTriggerTracksAnalysisComponent.cxx.

EMCalTriggerPtAnalysis::AliEMCalTriggerTracksAnalysisComponent::~AliEMCalTriggerTracksAnalysisComponent ( )
virtual

Destructor, release histogram container

Definition at line 45 of file AliEMCalTriggerTracksAnalysisComponent.cxx.

Member Function Documentation

TAxis * EMCalTriggerPtAnalysis::AliEMCalTriggerTracksAnalysisComponent::DefineAxis ( const char *  name,
int  nbins,
double  min,
double  max 
)
protected

Create and define axis

Parameters
nameName of the axis
nbinsnumber of bins
minmin. range
maxmax. range
Returns
the new axis

Definition at line 94 of file AliEMCalTriggerTracksAnalysisComponent.cxx.

THashList* EMCalTriggerPtAnalysis::AliEMCalTriggerTracksAnalysisComponent::GetHistList ( ) const
inline

Get the list of histograms of this analysis component.

Returns
The list of histograms

Definition at line 63 of file AliEMCalTriggerTracksAnalysisComponent.h.

Referenced by EMCalTriggerPtAnalysis::AliEMCalTriggerTaskGroup::InitialiseAnalysisComponents().

void EMCalTriggerPtAnalysis::AliEMCalTriggerTracksAnalysisComponent::GetMachingTriggerNames ( std::vector< std::string > &  triggernames,
ETriggerMethod_t  method 
)
protected

Get a set of names of trigger strings that is matching with the trigger decision.

Parameters
triggernamesoutput container for selected trigger names
usePatchesdetermines whether we use the trigger decision from patches

Definition at line 106 of file AliEMCalTriggerTracksAnalysisComponent.cxx.

Referenced by EMCalTriggerPtAnalysis::AliEMCalTriggerPatchAnalysisComponent::Process(), EMCalTriggerPtAnalysis::AliEMCalTriggerMCJetAnalysisComponent::Process(), EMCalTriggerPtAnalysis::AliEMCalTriggerClusterAnalysisComponent::Process(), EMCalTriggerPtAnalysis::AliEMCalTriggerRecJetAnalysisComponent::Process(), and EMCalTriggerPtAnalysis::AliEMCalTriggerRecTrackAnalysisComponent::Process().

const AliEMCalTriggerWeightHandler* EMCalTriggerPtAnalysis::AliEMCalTriggerTracksAnalysisComponent::GetWeightHandler ( ) const
inline

Get the common weight handler.

Returns
The weight handler

Definition at line 69 of file AliEMCalTriggerTracksAnalysisComponent.h.

void EMCalTriggerPtAnalysis::AliEMCalTriggerTracksAnalysisComponent::PrintTriggerNames ( const std::vector< std::string > &  triggernames,
const std::string &  componentName 
) const
protected

Helper function to print the names of the selected trigger classes. For debugging purposes.

Parameters
triggernamesSelected trigger names
componentNameName of the component responsible for the printout

Definition at line 141 of file AliEMCalTriggerTracksAnalysisComponent.cxx.

Referenced by EMCalTriggerPtAnalysis::AliEMCalTriggerRecJetAnalysisComponent::Process().

void EMCalTriggerPtAnalysis::AliEMCalTriggerTracksAnalysisComponent::SetBinning ( const AliEMCalTriggerBinningComponent *const  binning)
inline

Set the global binning handler to this analysis component.

Parameters
binningThe global binning handler

Definition at line 75 of file AliEMCalTriggerTracksAnalysisComponent.h.

Referenced by EMCalTriggerPtAnalysis::AliEMCalTriggerTaskGroup::InitialiseAnalysisComponents().

void EMCalTriggerPtAnalysis::AliEMCalTriggerTracksAnalysisComponent::SetComponentDebugLevel ( int  debuglevel)
inline

Set the debug level for a given analysis component.

Parameters
debuglevelThe component debug level

Definition at line 99 of file AliEMCalTriggerTracksAnalysisComponent.h.

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

Set the global kinematical cuts to this analysis components.

Parameters
cuts

Definition at line 81 of file AliEMCalTriggerTracksAnalysisComponent.h.

Referenced by EMCalTriggerPtAnalysis::AliEMCalTriggerTaskGroup::InitialiseAnalysisComponents().

void EMCalTriggerPtAnalysis::AliEMCalTriggerTracksAnalysisComponent::SetTriggerDecision ( const AliEMCalTriggerAnaTriggerDecision trigger)
inline

Set trigger decision container for the current event.

Parameters
triggerThe trigger decision container.

Definition at line 87 of file AliEMCalTriggerTracksAnalysisComponent.h.

Referenced by EMCalTriggerPtAnalysis::AliEMCalTriggerTaskGroup::SetTriggerDecision().

void EMCalTriggerPtAnalysis::AliEMCalTriggerTracksAnalysisComponent::SetWeightHandler ( const AliEMCalTriggerWeightHandler handler)
inline

Member Data Documentation

Int_t EMCalTriggerPtAnalysis::AliEMCalTriggerTracksAnalysisComponent::fComponentDebugLevel
protected
AliEMCalHistoContainer* EMCalTriggerPtAnalysis::AliEMCalTriggerTracksAnalysisComponent::fHistos
protected

Histogram container of the analysis component.

Definition at line 107 of file AliEMCalTriggerTracksAnalysisComponent.h.

Referenced by EMCalTriggerPtAnalysis::AliEMCalTriggerEventCounterAnalysisComponent::CreateHistos(), EMCalTriggerPtAnalysis::AliEMCalTriggerPatchAnalysisComponent::CreateHistos(), EMCalTriggerPtAnalysis::AliEMCalTriggerMCJetAnalysisComponent::CreateHistos(), EMCalTriggerPtAnalysis::AliEMCalTriggerClusterAnalysisComponent::CreateHistos(), EMCalTriggerPtAnalysis::AliEMCalTriggerRecJetAnalysisComponent::CreateHistos(), EMCalTriggerPtAnalysis::AliEMCalTriggerRecTrackAnalysisComponent::CreateHistos(), CreateHistos(), EMCalTriggerPtAnalysis::AliEMCalTriggerPatchAnalysisComponent::FillAmplitudeHistogram(), EMCalTriggerPtAnalysis::AliEMCalTriggerMCJetAnalysisComponent::FillHistogram(), EMCalTriggerPtAnalysis::AliEMCalTriggerClusterAnalysisComponent::FillHistogram(), EMCalTriggerPtAnalysis::AliEMCalTriggerRecJetAnalysisComponent::FillHistogram(), EMCalTriggerPtAnalysis::AliEMCalTriggerRecTrackAnalysisComponent::FillHistogram(), EMCalTriggerPtAnalysis::AliEMCalTriggerMCJetAnalysisComponent::FillJetHistogram(), EMCalTriggerPtAnalysis::AliEMCalTriggerRecJetAnalysisComponent::FillJetHistogram(), EMCalTriggerPtAnalysis::AliEMCalTriggerRecJetAnalysisComponent::FillTrackHistogramCentrality(), EMCalTriggerPtAnalysis::AliEMCalTriggerPatchAnalysisComponent::FillTriggerInfoHistogram(), GetHistList(), EMCalTriggerPtAnalysis::AliEMCalTriggerEventCounterAnalysisComponent::Process(), and ~AliEMCalTriggerTracksAnalysisComponent().

const AliEMCalTriggerKineCuts* EMCalTriggerPtAnalysis::AliEMCalTriggerTracksAnalysisComponent::fKineCuts
protected

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