AliPhysics  e34b7ac (e34b7ac)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef Class Reference

#include <AliAnalysisTaskEmcalPatchesRef.h>

Inheritance diagram for EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef:

Classes

class  EnergyBinning
 

Public Member Functions

 AliAnalysisTaskEmcalPatchesRef ()
 
 AliAnalysisTaskEmcalPatchesRef (const char *name)
 
virtual ~AliAnalysisTaskEmcalPatchesRef ()
 
void UserCreateOutputObjects ()
 
void UserExec (Option_t *)
 
void Terminate (Option_t *)
 
void SetOfflineTriggerSelection (AliEmcalTriggerOfflineSelection *sel)
 
void SetCreateTriggerStringFromPatches (Bool_t doUsePatches)
 
void SetRequestAnalysisUtil (bool doUse)
 
void SetCentralityRange (double min, double max)
 
void SetVertexRange (double min, double max)
 
void SetDownscaleOADB (TString oadbname)
 

Protected Member Functions

virtual void ExecOnce ()
 
virtual void RunChanged (Int_t runnumber)
 
Double_t GetTriggerWeight (const TString &triggerclass) const
 
void GetPatchBoundaries (TObject *o, Double_t *boundaries) const
 
bool IsOfflineSimplePatch (TObject *o) const
 
bool SelectDCALPatch (TObject *o) const
 
bool SelectSingleShowerPatch (TObject *o) const
 
bool SelectJetPatch (TObject *o) const
 
double GetPatchEnergy (TObject *o) const
 
void FillPatchHistograms (TString triggerclass, TString patchname, double energy, double transverseenergy, double eta, double phi, int col, int row)
 
void FillEventHistograms (const TString &triggerclass, double centrality, double vertexz)
 
TString GetFiredTriggerClassesFromPatches (const TClonesArray *triggerpatches) const
 

Protected Attributes

AliAnalysisUtils * fAnalysisUtil
 Analysis utils for event selection. More...
 
AliEmcalTriggerOfflineSelectionfTriggerSelection
 Offline trigger selection tool. More...
 
THistManagerfHistos
 ! Histogram handler More...
 
TClonesArray * fTriggerPatches
 ! Container with trigger patches More...
 
Bool_t fRequestAnalysisUtil
 Switch on request for analysis util. More...
 
Bool_t fTriggerStringFromPatches
 Switch on building a trigger string based on available trigger patches. More...
 
AliCutValueRange< double > fCentralityRange
 Range of accepted event centralities. More...
 
AliCutValueRange< double > fVertexRange
 Range of the z-position in order to accept a primary vertex. More...
 
Bool_t fRequestCentrality
 Switch for request of centrality selection. More...
 
TString fNameDownscaleOADB
 Name of the downscale OADB container. More...
 
AliOADBContainer * fDownscaleOADB
 ! Container with downscale factors for different triggers More...
 
TObjArrayfDownscaleFactors
 ! Downscalefactors for given run More...
 
Int_t fCurrentRun
 Current run number (for RunChange method) More...
 
Bool_t fInitialized
 Check for initialized. More...
 

Private Member Functions

 AliAnalysisTaskEmcalPatchesRef (const AliAnalysisTaskEmcalPatchesRef &)
 
AliAnalysisTaskEmcalPatchesRefoperator= (const AliAnalysisTaskEmcalPatchesRef &)
 

Detailed Description

Definition at line 20 of file AliAnalysisTaskEmcalPatchesRef.h.

Constructor & Destructor Documentation

EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::AliAnalysisTaskEmcalPatchesRef ( )

Dummy (I/O) onstructor

Definition at line 49 of file AliAnalysisTaskEmcalPatchesRef.cxx.

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

Named constructor

Parameters
nameName of the task

Definition at line 72 of file AliAnalysisTaskEmcalPatchesRef.cxx.

EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::~AliAnalysisTaskEmcalPatchesRef ( )
virtual

Destructor

Definition at line 95 of file AliAnalysisTaskEmcalPatchesRef.cxx.

EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::AliAnalysisTaskEmcalPatchesRef ( const AliAnalysisTaskEmcalPatchesRef )
private

Member Function Documentation

void EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::ExecOnce ( )
protectedvirtual

Definition at line 411 of file AliAnalysisTaskEmcalPatchesRef.cxx.

Referenced by UserExec().

void EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::FillEventHistograms ( const TString triggerclass,
double  centrality,
double  vertexz 
)
protected

Fill event-based histograms. Monitored are

  • Number of events
  • Centrality percentile (if available)
  • z-position of the primary vertex In case a downscaling correction is avaiable it is applied to all histograms as a weight.
    Parameters
    [in]triggerclassName of the trigger class
    [in]centralityCentrality percentile of the event
    [in]vertexzz-position of the

Definition at line 485 of file AliAnalysisTaskEmcalPatchesRef.cxx.

Referenced by UserExec().

void EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::FillPatchHistograms ( TString  triggerclass,
TString  patchname,
double  energy,
double  transverseenergy,
double  eta,
double  phi,
int  col,
int  row 
)
protected

Filling patch related histogram. In case a downscaling correction is available it is applied to the histograms as weight

Parameters
[in]triggerclassName of the trigger class firing the event
[in]patchnameName of the patchtype
[in]energyCalibrated energy of the patch
[in]etaPatch eta at the geometrical center
[in]phiPatch phi at the geometrical center

Definition at line 458 of file AliAnalysisTaskEmcalPatchesRef.cxx.

Referenced by UserExec().

TString EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::GetFiredTriggerClassesFromPatches ( const TClonesArray *  triggerpatches) const
protected

Apply trigger selection using offline patches and trigger thresholds based on offline ADC Amplitude

Parameters
triggerpatchesTrigger patches found by the trigger maker
Returns
String with EMCAL trigger decision

Definition at line 498 of file AliAnalysisTaskEmcalPatchesRef.cxx.

Referenced by UserExec().

void EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::GetPatchBoundaries ( TObject o,
Double_t boundaries 
) const
protected

Definition at line 558 of file AliAnalysisTaskEmcalPatchesRef.cxx.

double EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::GetPatchEnergy ( TObject o) const
protected

Definition at line 588 of file AliAnalysisTaskEmcalPatchesRef.cxx.

Double_t EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::GetTriggerWeight ( const TString triggerclass) const
protected

Get a trigger class dependent event weight. The weight is defined as 1/downscalefactor. The downscale factor is taken from the OADB. For triggers which are not downscaled the weight is always 1.

Parameters
[in]triggerclassClass for which to obtain the trigger.
Returns
Downscale facror for the trigger class (1 if trigger is not downscaled or no OADB container is available)

Definition at line 435 of file AliAnalysisTaskEmcalPatchesRef.cxx.

Referenced by FillEventHistograms(), and FillPatchHistograms().

bool EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::IsOfflineSimplePatch ( TObject o) const
protected

Definition at line 566 of file AliAnalysisTaskEmcalPatchesRef.cxx.

Referenced by UserExec().

AliAnalysisTaskEmcalPatchesRef& EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::operator= ( const AliAnalysisTaskEmcalPatchesRef )
private
void EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::RunChanged ( Int_t  runnumber)
protectedvirtual

Definition at line 421 of file AliAnalysisTaskEmcalPatchesRef.cxx.

Referenced by UserExec().

bool EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::SelectDCALPatch ( TObject o) const
protected

Definition at line 571 of file AliAnalysisTaskEmcalPatchesRef.cxx.

Referenced by UserExec().

bool EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::SelectJetPatch ( TObject o) const
protected

Definition at line 582 of file AliAnalysisTaskEmcalPatchesRef.cxx.

Referenced by UserExec().

bool EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::SelectSingleShowerPatch ( TObject o) const
protected

Definition at line 576 of file AliAnalysisTaskEmcalPatchesRef.cxx.

Referenced by UserExec().

void EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::SetCentralityRange ( double  min,
double  max 
)
inline

Definition at line 33 of file AliAnalysisTaskEmcalPatchesRef.h.

void EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::SetCreateTriggerStringFromPatches ( Bool_t  doUsePatches)
inline

Definition at line 31 of file AliAnalysisTaskEmcalPatchesRef.h.

void EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::SetDownscaleOADB ( TString  oadbname)
inline

Definition at line 35 of file AliAnalysisTaskEmcalPatchesRef.h.

void EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::SetOfflineTriggerSelection ( AliEmcalTriggerOfflineSelection sel)
inline

Definition at line 30 of file AliAnalysisTaskEmcalPatchesRef.h.

void EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::SetRequestAnalysisUtil ( bool  doUse)
inline

Definition at line 32 of file AliAnalysisTaskEmcalPatchesRef.h.

void EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::SetVertexRange ( double  min,
double  max 
)
inline

Definition at line 34 of file AliAnalysisTaskEmcalPatchesRef.h.

void EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::Terminate ( Option_t )
inline

Definition at line 28 of file AliAnalysisTaskEmcalPatchesRef.h.

void EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::UserCreateOutputObjects ( )

Creating output histograms:

  • Patch (calibrated) energy spectrum - separated by patch type - for different trigger classes
  • Patch eta-phi map - separated by patch type - for different trigger classes and different min. energies

Definition at line 103 of file AliAnalysisTaskEmcalPatchesRef.cxx.

void EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::UserExec ( Option_t )

Run event loop

Parameters
Notused

Definition at line 140 of file AliAnalysisTaskEmcalPatchesRef.cxx.

Member Data Documentation

AliAnalysisUtils* EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::fAnalysisUtil
protected

Analysis utils for event selection.

Definition at line 54 of file AliAnalysisTaskEmcalPatchesRef.h.

Referenced by UserCreateOutputObjects(), and UserExec().

AliCutValueRange<double> EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::fCentralityRange
protected

Range of accepted event centralities.

Definition at line 62 of file AliAnalysisTaskEmcalPatchesRef.h.

Referenced by SetCentralityRange(), and UserExec().

Int_t EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::fCurrentRun
protected

Current run number (for RunChange method)

Definition at line 70 of file AliAnalysisTaskEmcalPatchesRef.h.

Referenced by UserExec().

TObjArray* EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::fDownscaleFactors
protected

! Downscalefactors for given run

Definition at line 68 of file AliAnalysisTaskEmcalPatchesRef.h.

Referenced by GetTriggerWeight(), and RunChanged().

AliOADBContainer* EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::fDownscaleOADB
protected

! Container with downscale factors for different triggers

Definition at line 67 of file AliAnalysisTaskEmcalPatchesRef.h.

Referenced by ExecOnce(), and RunChanged().

THistManager* EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::fHistos
protected

! Histogram handler

Definition at line 56 of file AliAnalysisTaskEmcalPatchesRef.h.

Referenced by FillEventHistograms(), FillPatchHistograms(), UserCreateOutputObjects(), and UserExec().

Bool_t EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::fInitialized
protected

Check for initialized.

Definition at line 71 of file AliAnalysisTaskEmcalPatchesRef.h.

Referenced by UserExec().

TString EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::fNameDownscaleOADB
protected

Name of the downscale OADB container.

Definition at line 66 of file AliAnalysisTaskEmcalPatchesRef.h.

Referenced by ExecOnce(), and SetDownscaleOADB().

Bool_t EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::fRequestAnalysisUtil
protected

Switch on request for analysis util.

Definition at line 59 of file AliAnalysisTaskEmcalPatchesRef.h.

Referenced by SetRequestAnalysisUtil(), and UserExec().

Bool_t EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::fRequestCentrality
protected

Switch for request of centrality selection.

Definition at line 64 of file AliAnalysisTaskEmcalPatchesRef.h.

Referenced by SetCentralityRange(), and UserExec().

TClonesArray* EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::fTriggerPatches
protected

! Container with trigger patches

Definition at line 57 of file AliAnalysisTaskEmcalPatchesRef.h.

Referenced by ExecOnce(), and UserExec().

AliEmcalTriggerOfflineSelection* EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::fTriggerSelection
protected

Offline trigger selection tool.

Definition at line 55 of file AliAnalysisTaskEmcalPatchesRef.h.

Referenced by SetOfflineTriggerSelection(), and UserExec().

Bool_t EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::fTriggerStringFromPatches
protected

Switch on building a trigger string based on available trigger patches.

Definition at line 60 of file AliAnalysisTaskEmcalPatchesRef.h.

Referenced by SetCreateTriggerStringFromPatches(), and UserExec().

AliCutValueRange<double> EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalPatchesRef::fVertexRange
protected

Range of the z-position in order to accept a primary vertex.

Definition at line 63 of file AliAnalysisTaskEmcalPatchesRef.h.

Referenced by SetVertexRange(), and UserExec().


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