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

Unit test class for charged particle distributions. More...

#include <AliAnalysisTaskChargedParticlesRef.h>

Inheritance diagram for EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef:

Classes

class  NewPtBinning
 

Public Types

enum  BeamDirection_t { kpPb = 1, kPbp = -1 }
 

Public Member Functions

 AliAnalysisTaskChargedParticlesRef ()
 
 AliAnalysisTaskChargedParticlesRef (const char *name)
 
virtual ~AliAnalysisTaskChargedParticlesRef ()
 
void UserCreateOutputObjects ()
 
void UserExec (Option_t *)
 
void Terminate (Option_t *)
 
void SetRapidityShift (Double_t yshift)
 
void SetBeamDirection (BeamDirection_t beamdir)
 
void UseTriggerPatches (Bool_t doUse)
 
void SetKineCorrelation (Bool_t useKineCorrelation)
 
void SetPlotPID (Bool_t plotPID)
 
void SetEMCALTrackSelection (AliEmcalTrackSelection *sel)
 
void InitializeTrackCuts (TString cutname, bool isAOD)
 
void SetOfflineTriggerSelection (AliEmcalTriggerOfflineSelection *sel)
 
void SetAnalysisUtil (AliAnalysisUtils *util)
 
void SetEtaLabCut (double etamin, double etamax)
 
void SetEtaCMSCut (double etamin, double etamax)
 
void SetTrackPhiCut (double phimin, double phimax)
 
void SetDownscaleOADB (TString oadbname)
 

Protected Member Functions

virtual void ExecOnce ()
 
virtual void RunChanged (Int_t runnuber)
 
Double_t GetTriggerWeight (const std::string &triggerclass) const
 
void FillEventCounterHists (const std::string &triggerclass, double vtxz, bool isSelected)
 
void FillTrackHistos (const std::string &eventclass, Double_t pt, Double_t eta, Double_t etacent, Double_t phi, Bool_t etacut, Bool_t inEmcal, Bool_t hasTRD)
 
void FillPIDHistos (const std::string &eventclass, const AliVTrack &track)
 
TString GetFiredTriggerClassesFromPatches (const TClonesArray *triggerpatches) const
 

Protected Attributes

AliEmcalTrackSelectionfTrackCuts
 Standard track selection. More...
 
AliAnalysisUtils * fAnalysisUtil
 Event selection. More...
 
AliEmcalTriggerOfflineSelectionfTriggerSelection
 Offline trigger selection. More...
 
THistManagerfHistos
 ! Histogram manager More...
 
AliEMCALGeometry * fGeometry
 EMCAL geometry methods. More...
 
TClonesArray * fTriggerPatches
 ! Container with trigger patches More...
 
Bool_t fTriggerStringFromPatches
 Do rebuild the trigger string from trigger patches. More...
 
Double_t fYshift
 Rapidity shift. More...
 
Double_t fEtaSign
 Sign of the eta distribution (swaps when beam directions swap): p-Pb: +1, Pb-p: -1. More...
 
AliCutValueRange< double > fEtaLabCut
 Cut applied in \(\eta_{lab}\) frame. More...
 
AliCutValueRange< double > fEtaCmsCut
 Cut applied in \(\eta_{centre-of-mass}\) frame. More...
 
AliCutValueRange< double > fPhiCut
 Cut applied in \(\phi_{track}\). More...
 
Bool_t fKineCorrelation
 Use kinematics correlation histograms. More...
 
Bool_t fStudyPID
 Use kinematics correlation histograms. 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

 AliAnalysisTaskChargedParticlesRef (const AliAnalysisTaskChargedParticlesRef &)
 
AliAnalysisTaskChargedParticlesRefoperator= (const AliAnalysisTaskChargedParticlesRef &)
 

Detailed Description

Unit test class for charged particle distributions.

As generator of reference distributions this task is written as "must work", meaning as simple as possible and as independent as possible. Using only well-tested components. Objects responsible for further problems, i.e. the usage of THnSparse due to memory problems in several places, are forbidden.

Definition at line 34 of file AliAnalysisTaskChargedParticlesRef.h.

Member Enumeration Documentation

Constructor & Destructor Documentation

EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::AliAnalysisTaskChargedParticlesRef ( )

Dummy constructor

Definition at line 58 of file AliAnalysisTaskChargedParticlesRef.cxx.

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

Main constructor

Parameters
[in]nameName of the task

Definition at line 87 of file AliAnalysisTaskChargedParticlesRef.cxx.

EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::~AliAnalysisTaskChargedParticlesRef ( )
virtual

Destuctor

Definition at line 116 of file AliAnalysisTaskChargedParticlesRef.cxx.

EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::AliAnalysisTaskChargedParticlesRef ( const AliAnalysisTaskChargedParticlesRef )
private

Member Function Documentation

void EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::ExecOnce ( )
protectedvirtual

Perform gloabl initializations Used for the moment for

  • Connect EMCAL geometry
  • Initialize OADB container with downscaling factors

Definition at line 471 of file AliAnalysisTaskChargedParticlesRef.cxx.

Referenced by UserExec().

void EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::FillEventCounterHists ( const std::string &  triggerclass,
double  vtxz,
bool  isSelected 
)
protected

Fill event counter histogram for a given trigger class

Parameters
triggerclassTrigger class firing the trigger
vtxzz-position of the primary vertex
isSelectedCheck whether track is selected

Definition at line 448 of file AliAnalysisTaskChargedParticlesRef.cxx.

Referenced by UserExec().

void EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::FillPIDHistos ( const std::string &  eventclass,
const AliVTrack &  track 
)
protected

Definition at line 572 of file AliAnalysisTaskChargedParticlesRef.cxx.

Referenced by UserExec().

void EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::FillTrackHistos ( const std::string &  eventclass,
Double_t  pt,
Double_t  etalab,
Double_t  etacent,
Double_t  phi,
Bool_t  etacut,
Bool_t  inEmcal,
Bool_t  hasTRD 
)
protected

Fill track histograms

Parameters
eventclassTrigger class fired
pttrack \( p_{t} \)
etalabTrack \( \eta \) in lab frame
etacentTrack \( \eta \) in cms frame
phiTrack \( \eta \) in lab frame
etacutTrack accepted by \( \eta \) cut
inEmcalTrack in EMCAL \( \phi \) acceptance

Definition at line 510 of file AliAnalysisTaskChargedParticlesRef.cxx.

Referenced by UserExec().

TString EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::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 628 of file AliAnalysisTaskChargedParticlesRef.cxx.

Referenced by UserExec().

Double_t EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::GetTriggerWeight ( const std::string &  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 601 of file AliAnalysisTaskChargedParticlesRef.cxx.

Referenced by FillEventCounterHists(), FillPIDHistos(), and FillTrackHistos().

void EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::InitializeTrackCuts ( TString  cutname,
bool  isAOD 
)

Set the track selection

Parameters
cutnameName of the track cuts
isAODcheck whether we run on ESDs or AODs

Definition at line 619 of file AliAnalysisTaskChargedParticlesRef.cxx.

Referenced by UserCreateOutputObjects().

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

Run change method. Called when the run number of the new event is different compared to the run number of the previous event. Used for loading of the downscale factor for a given run from the downscale OADB.

Parameters
[in]runnumberNumber of the new run.

Definition at line 494 of file AliAnalysisTaskChargedParticlesRef.cxx.

Referenced by UserExec().

void EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::SetAnalysisUtil ( AliAnalysisUtils *  util)
inline

Definition at line 57 of file AliAnalysisTaskChargedParticlesRef.h.

void EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::SetBeamDirection ( BeamDirection_t  beamdir)
inline

Definition at line 49 of file AliAnalysisTaskChargedParticlesRef.h.

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

Definition at line 61 of file AliAnalysisTaskChargedParticlesRef.h.

void EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::SetEMCALTrackSelection ( AliEmcalTrackSelection sel)
inline

Definition at line 54 of file AliAnalysisTaskChargedParticlesRef.h.

Referenced by InitializeTrackCuts().

void EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::SetEtaCMSCut ( double  etamin,
double  etamax 
)
inline

Definition at line 59 of file AliAnalysisTaskChargedParticlesRef.h.

void EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::SetEtaLabCut ( double  etamin,
double  etamax 
)
inline

Definition at line 58 of file AliAnalysisTaskChargedParticlesRef.h.

void EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::SetKineCorrelation ( Bool_t  useKineCorrelation)
inline

Definition at line 52 of file AliAnalysisTaskChargedParticlesRef.h.

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

Definition at line 56 of file AliAnalysisTaskChargedParticlesRef.h.

void EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::SetPlotPID ( Bool_t  plotPID)
inline

Definition at line 53 of file AliAnalysisTaskChargedParticlesRef.h.

void EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::SetRapidityShift ( Double_t  yshift)
inline

Definition at line 48 of file AliAnalysisTaskChargedParticlesRef.h.

void EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::SetTrackPhiCut ( double  phimin,
double  phimax 
)
inline

Definition at line 60 of file AliAnalysisTaskChargedParticlesRef.h.

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

Definition at line 46 of file AliAnalysisTaskChargedParticlesRef.h.

void EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::UserCreateOutputObjects ( )

Create the output histograms

Definition at line 127 of file AliAnalysisTaskChargedParticlesRef.cxx.

void EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::UserExec ( Option_t )

Simple unit test framework

  • Select event using AliAnalysisUtil
  • Assing trigger type (Request INT7, EJ*, EG*)
  • Loop over tracks, select particles
  • Fill distributions
    Parameters
    optionNot used

Definition at line 247 of file AliAnalysisTaskChargedParticlesRef.cxx.

void EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::UseTriggerPatches ( Bool_t  doUse)
inline

Definition at line 50 of file AliAnalysisTaskChargedParticlesRef.h.

Member Data Documentation

AliAnalysisUtils* EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::fAnalysisUtil
protected
Int_t EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::fCurrentRun
protected

Current run number (for RunChange method)

Definition at line 95 of file AliAnalysisTaskChargedParticlesRef.h.

Referenced by UserExec().

TObjArray* EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::fDownscaleFactors
protected

! Downscalfactors for given run

Definition at line 93 of file AliAnalysisTaskChargedParticlesRef.h.

Referenced by GetTriggerWeight(), and RunChanged().

AliOADBContainer* EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::fDownscaleOADB
protected

! Container with downscale factors for different triggers

Definition at line 92 of file AliAnalysisTaskChargedParticlesRef.h.

Referenced by ExecOnce(), RunChanged(), and ~AliAnalysisTaskChargedParticlesRef().

AliCutValueRange<double> EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::fEtaCmsCut
protected

Cut applied in \(\eta_{centre-of-mass}\) frame.

Definition at line 85 of file AliAnalysisTaskChargedParticlesRef.h.

Referenced by SetEtaCMSCut(), and UserExec().

AliCutValueRange<double> EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::fEtaLabCut
protected

Cut applied in \(\eta_{lab}\) frame.

Definition at line 84 of file AliAnalysisTaskChargedParticlesRef.h.

Referenced by SetEtaLabCut(), and UserExec().

Double_t EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::fEtaSign
protected

Sign of the eta distribution (swaps when beam directions swap): p-Pb: +1, Pb-p: -1.

Definition at line 82 of file AliAnalysisTaskChargedParticlesRef.h.

Referenced by SetBeamDirection(), and UserExec().

AliEMCALGeometry* EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::fGeometry
protected

EMCAL geometry methods.

Definition at line 77 of file AliAnalysisTaskChargedParticlesRef.h.

Referenced by ExecOnce(), and UserExec().

THistManager* EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::fHistos
protected
Bool_t EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::fInitialized
protected

Check for initialized.

Definition at line 96 of file AliAnalysisTaskChargedParticlesRef.h.

Referenced by UserExec().

Bool_t EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::fKineCorrelation
protected

Use kinematics correlation histograms.

Definition at line 88 of file AliAnalysisTaskChargedParticlesRef.h.

Referenced by FillTrackHistos(), SetKineCorrelation(), and UserCreateOutputObjects().

TString EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::fNameDownscaleOADB
protected

Name of the downscale OADB container.

Definition at line 91 of file AliAnalysisTaskChargedParticlesRef.h.

Referenced by ExecOnce(), and SetDownscaleOADB().

AliCutValueRange<double> EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::fPhiCut
protected

Cut applied in \(\phi_{track}\).

Definition at line 86 of file AliAnalysisTaskChargedParticlesRef.h.

Referenced by SetTrackPhiCut(), and UserExec().

Bool_t EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::fStudyPID
protected

Use kinematics correlation histograms.

Definition at line 89 of file AliAnalysisTaskChargedParticlesRef.h.

Referenced by SetPlotPID(), UserCreateOutputObjects(), and UserExec().

AliEmcalTrackSelection* EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::fTrackCuts
protected

Standard track selection.

Definition at line 73 of file AliAnalysisTaskChargedParticlesRef.h.

Referenced by SetEMCALTrackSelection(), UserCreateOutputObjects(), and UserExec().

TClonesArray* EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::fTriggerPatches
protected

! Container with trigger patches

Definition at line 78 of file AliAnalysisTaskChargedParticlesRef.h.

Referenced by ExecOnce(), and UserExec().

AliEmcalTriggerOfflineSelection* EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::fTriggerSelection
protected

Offline trigger selection.

Definition at line 75 of file AliAnalysisTaskChargedParticlesRef.h.

Referenced by SetOfflineTriggerSelection(), UserExec(), and ~AliAnalysisTaskChargedParticlesRef().

Bool_t EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::fTriggerStringFromPatches
protected

Do rebuild the trigger string from trigger patches.

Definition at line 80 of file AliAnalysisTaskChargedParticlesRef.h.

Referenced by UserExec(), and UseTriggerPatches().

Double_t EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::fYshift
protected

Rapidity shift.

Definition at line 81 of file AliAnalysisTaskChargedParticlesRef.h.

Referenced by SetRapidityShift(), and UserExec().


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