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

#include <AliAnalysisTaskEmcalClustersRef.h>

Inheritance diagram for EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClustersRef:

Classes

class  EnergyBinning
 

Public Member Functions

 AliAnalysisTaskEmcalClustersRef ()
 
 AliAnalysisTaskEmcalClustersRef (const char *name)
 
virtual ~AliAnalysisTaskEmcalClustersRef ()
 
void UserCreateOutputObjects ()
 
void UserExec (Option_t *)
 
void Terminate (Option_t *)
 
void SetOfflineTriggerSelection (AliEmcalTriggerOfflineSelection *sel)
 
void SetClusterContainer (TString clustercontname)
 
void SetCreateTriggerStringFromPatches (Bool_t doUsePatches)
 
void SetRequestAnalysisUtil (Bool_t doRequest)
 
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 FillClusterHistograms (const TString &triggerclass, double energy, double transversenergy, double eta, double phi, TList *triggerpatches)
 
void FillEventHistograms (const TString &triggerclass, double centrality, double vertexz)
 
TString GetFiredTriggerClassesFromPatches (const TClonesArray *triggerpatches) const
 
void FindPatchesForTrigger (TString triggerclass, const TClonesArray *triggerpatches, TList &foundpatches) const
 
Bool_t CorrelateToTrigger (Double_t etaclust, Double_t phiclust, TList *triggerpatches) const
 

Protected Attributes

AliAnalysisUtils * fAnalysisUtil
 Analysis utils for additional event selection / pileup rejection. More...
 
THistManagerfHistos
 ! Histogram handler More...
 
AliEmcalTriggerOfflineSelectionfTriggerSelection
 EMCAL offline trigger selection tool. More...
 
AliEMCALGeometry * fGeometry
 ! EMCAL geometry More...
 
TClonesArray * fTriggerPatches
 ! Container with trigger patches More...
 
TString fClusterContainer
 Name of the cluster container in the event. More...
 
Bool_t fRequestAnalysisUtil
 Switch on request for event selection using analysis utils. More...
 
Bool_t fTriggerStringFromPatches
 Build trigger string from trigger patches. More...
 
AliCutValueRange< double > fCentralityRange
 Selected centrality range. More...
 
AliCutValueRange< double > fVertexRange
 Selected vertex range. More...
 
Bool_t fRequestCentrality
 Swich on request for centrality range. More...
 
TString fNameDownscaleOADB
 Name of the downscale OADB container. More...
 
AliOADBContainer * fDownscaleOADB
 ! Container with downscale factors for different triggers More...
 
TObjArrayfDownscaleFactors
 ! Downscalfactors for given run More...
 
Int_t fCurrentRun
 Current run number (for RunChange method) More...
 
Bool_t fInitialized
 Check for initialized. More...
 

Private Member Functions

 AliAnalysisTaskEmcalClustersRef (const AliAnalysisTaskEmcalClustersRef &)
 
AliAnalysisTaskEmcalClustersRefoperator= (const AliAnalysisTaskEmcalClustersRef &)
 

Detailed Description

Definition at line 26 of file AliAnalysisTaskEmcalClustersRef.h.

Constructor & Destructor Documentation

EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClustersRef::AliAnalysisTaskEmcalClustersRef ( )

Dummy (I/O) constructor

Definition at line 58 of file AliAnalysisTaskEmcalClustersRef.cxx.

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

Named constructor

Parameters
nameName of the task

Definition at line 83 of file AliAnalysisTaskEmcalClustersRef.cxx.

EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClustersRef::~AliAnalysisTaskEmcalClustersRef ( )
virtual

Destructor

Definition at line 108 of file AliAnalysisTaskEmcalClustersRef.cxx.

EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClustersRef::AliAnalysisTaskEmcalClustersRef ( const AliAnalysisTaskEmcalClustersRef )
private

Member Function Documentation

Bool_t EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClustersRef::CorrelateToTrigger ( Double_t  etaclust,
Double_t  phiclust,
TList fTriggerPatches 
) const
protected

Check whether cluster is inside a trigger patch which has fired the trigger

Parameters
[in]etaclust\( \eta \) of the cluster at center
[in]phiclust\( \phi \) of the cluster at center
[in]fTriggerPatchesList of trigger patches which have fired the trigger
Returns
[in] True if the cluster can be correlated to a triggerpatch fired the trigger, false otherwise

Definition at line 573 of file AliAnalysisTaskEmcalClustersRef.cxx.

Referenced by FillClusterHistograms().

void EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClustersRef::ExecOnce ( )
protectedvirtual

Definition at line 458 of file AliAnalysisTaskEmcalClustersRef.cxx.

Referenced by UserExec().

void EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClustersRef::FillClusterHistograms ( const TString triggerclass,
double  energy,
double  transversenergy,
double  eta,
double  phi,
TList triggerpatches 
)
protected

Definition at line 500 of file AliAnalysisTaskEmcalClustersRef.cxx.

Referenced by UserExec().

void EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClustersRef::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 559 of file AliAnalysisTaskEmcalClustersRef.cxx.

Referenced by UserExec().

void EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClustersRef::FindPatchesForTrigger ( TString  triggerclass,
const TClonesArray *  fTriggerPatches,
TList foundtriggers 
) const
protected

Find all patches in an event which could have fired the trigger Attention: This task groups into single shower triggers (L0, EG1, EG2) and jet triggers (EJ1 and EJ2). Per convention the low threshold patch is selected. No energy cut should be applied in the trigger maker

Parameters
triggerclassEMCAL trigger class firing
fTriggerPatchesTrigger patches found in the event
Returns
List of patches which could have fired the trigger

Definition at line 598 of file AliAnalysisTaskEmcalClustersRef.cxx.

Referenced by UserExec().

TString EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClustersRef::GetFiredTriggerClassesFromPatches ( const TClonesArray *  fTriggerPatches) const
protected

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

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

Definition at line 633 of file AliAnalysisTaskEmcalClustersRef.cxx.

Referenced by UserExec().

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

Definition at line 693 of file AliAnalysisTaskEmcalClustersRef.cxx.

Referenced by CorrelateToTrigger().

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

Definition at line 722 of file AliAnalysisTaskEmcalClustersRef.cxx.

Referenced by FindPatchesForTrigger().

Double_t EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClustersRef::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 487 of file AliAnalysisTaskEmcalClustersRef.cxx.

Referenced by FillClusterHistograms(), and FillEventHistograms().

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

Definition at line 701 of file AliAnalysisTaskEmcalClustersRef.cxx.

Referenced by FindPatchesForTrigger().

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

Definition at line 473 of file AliAnalysisTaskEmcalClustersRef.cxx.

Referenced by UserExec().

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

Definition at line 706 of file AliAnalysisTaskEmcalClustersRef.cxx.

Referenced by FindPatchesForTrigger().

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

Definition at line 716 of file AliAnalysisTaskEmcalClustersRef.cxx.

Referenced by FindPatchesForTrigger().

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

Definition at line 711 of file AliAnalysisTaskEmcalClustersRef.cxx.

Referenced by FindPatchesForTrigger().

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

Definition at line 41 of file AliAnalysisTaskEmcalClustersRef.h.

void EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClustersRef::SetClusterContainer ( TString  clustercontname)
inline

Definition at line 37 of file AliAnalysisTaskEmcalClustersRef.h.

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

Definition at line 38 of file AliAnalysisTaskEmcalClustersRef.h.

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

Definition at line 43 of file AliAnalysisTaskEmcalClustersRef.h.

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

Definition at line 36 of file AliAnalysisTaskEmcalClustersRef.h.

void EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClustersRef::SetRequestAnalysisUtil ( Bool_t  doRequest)
inline

Definition at line 40 of file AliAnalysisTaskEmcalClustersRef.h.

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

Definition at line 42 of file AliAnalysisTaskEmcalClustersRef.h.

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

Definition at line 34 of file AliAnalysisTaskEmcalClustersRef.h.

void EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClustersRef::UserCreateOutputObjects ( )

Creates output histograms: distribution of cluster energy for different trigger classes and number of events

Definition at line 115 of file AliAnalysisTaskEmcalClustersRef.cxx.

void EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClustersRef::UserExec ( Option_t )
Parameters

Definition at line 179 of file AliAnalysisTaskEmcalClustersRef.cxx.

Member Data Documentation

AliAnalysisUtils* EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClustersRef::fAnalysisUtil
protected

Analysis utils for additional event selection / pileup rejection.

Definition at line 64 of file AliAnalysisTaskEmcalClustersRef.h.

Referenced by UserCreateOutputObjects(), and UserExec().

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

Selected centrality range.

Definition at line 73 of file AliAnalysisTaskEmcalClustersRef.h.

Referenced by SetCentralityRange(), and UserExec().

TString EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClustersRef::fClusterContainer
protected

Name of the cluster container in the event.

Definition at line 69 of file AliAnalysisTaskEmcalClustersRef.h.

Referenced by SetClusterContainer(), and UserExec().

Int_t EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClustersRef::fCurrentRun
protected

Current run number (for RunChange method)

Definition at line 81 of file AliAnalysisTaskEmcalClustersRef.h.

Referenced by UserExec().

TObjArray* EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClustersRef::fDownscaleFactors
protected

! Downscalfactors for given run

Definition at line 79 of file AliAnalysisTaskEmcalClustersRef.h.

Referenced by GetTriggerWeight(), and RunChanged().

AliOADBContainer* EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClustersRef::fDownscaleOADB
protected

! Container with downscale factors for different triggers

Definition at line 78 of file AliAnalysisTaskEmcalClustersRef.h.

Referenced by ExecOnce(), and RunChanged().

AliEMCALGeometry* EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClustersRef::fGeometry
protected

! EMCAL geometry

Definition at line 67 of file AliAnalysisTaskEmcalClustersRef.h.

Referenced by ExecOnce(), and FillClusterHistograms().

THistManager* EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClustersRef::fHistos
protected

! Histogram handler

Definition at line 65 of file AliAnalysisTaskEmcalClustersRef.h.

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

Bool_t EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClustersRef::fInitialized
protected

Check for initialized.

Definition at line 82 of file AliAnalysisTaskEmcalClustersRef.h.

Referenced by UserExec().

TString EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClustersRef::fNameDownscaleOADB
protected

Name of the downscale OADB container.

Definition at line 77 of file AliAnalysisTaskEmcalClustersRef.h.

Referenced by ExecOnce(), and SetDownscaleOADB().

Bool_t EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClustersRef::fRequestAnalysisUtil
protected

Switch on request for event selection using analysis utils.

Definition at line 71 of file AliAnalysisTaskEmcalClustersRef.h.

Referenced by SetRequestAnalysisUtil(), and UserExec().

Bool_t EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClustersRef::fRequestCentrality
protected

Swich on request for centrality range.

Definition at line 75 of file AliAnalysisTaskEmcalClustersRef.h.

Referenced by SetCentralityRange(), and UserExec().

TClonesArray* EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClustersRef::fTriggerPatches
protected

! Container with trigger patches

Definition at line 68 of file AliAnalysisTaskEmcalClustersRef.h.

Referenced by ExecOnce(), and UserExec().

AliEmcalTriggerOfflineSelection* EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClustersRef::fTriggerSelection
protected

EMCAL offline trigger selection tool.

Definition at line 66 of file AliAnalysisTaskEmcalClustersRef.h.

Referenced by FindPatchesForTrigger(), SetOfflineTriggerSelection(), UserExec(), and ~AliAnalysisTaskEmcalClustersRef().

Bool_t EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClustersRef::fTriggerStringFromPatches
protected

Build trigger string from trigger patches.

Definition at line 72 of file AliAnalysisTaskEmcalClustersRef.h.

Referenced by SetCreateTriggerStringFromPatches(), and UserExec().

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

Selected vertex range.

Definition at line 74 of file AliAnalysisTaskEmcalClustersRef.h.

Referenced by SetVertexRange(), and UserExec().


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