![]() |
AliPhysics
dde76db (dde76db)
|
Unit test class for charged particle distributions. More...
#include <AliAnalysisTaskChargedParticlesRef.h>
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 | 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 | |
AliEmcalTrackSelection * | fTrackCuts |
Standard track selection. More... | |
AliAnalysisUtils * | fAnalysisUtil |
Event selection. More... | |
AliEmcalTriggerOfflineSelection * | fTriggerSelection |
Offline trigger selection. More... | |
THistManager * | fHistos |
! 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... | |
Double_t | fEtaLabCut [2] |
Cut applied in Eta Lab frame. More... | |
Double_t | fEtaCmsCut [2] |
Cut applied in Eta centre-of-mass frame. 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... | |
TObjArray * | fDownscaleFactors |
! 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 &) | |
AliAnalysisTaskChargedParticlesRef & | operator= (const AliAnalysisTaskChargedParticlesRef &) |
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 33 of file AliAnalysisTaskChargedParticlesRef.h.
Enumerator | |
---|---|
kpPb | |
kPbp |
Definition at line 35 of file AliAnalysisTaskChargedParticlesRef.h.
EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::AliAnalysisTaskChargedParticlesRef | ( | ) |
Dummy constructor
Definition at line 58 of file AliAnalysisTaskChargedParticlesRef.cxx.
EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::AliAnalysisTaskChargedParticlesRef | ( | const char * | name | ) |
Main constructor
[in] | name | Name of the task |
Definition at line 88 of file AliAnalysisTaskChargedParticlesRef.cxx.
|
virtual |
Destuctor
Definition at line 118 of file AliAnalysisTaskChargedParticlesRef.cxx.
|
private |
|
protectedvirtual |
Perform gloabl initializations Used for the moment for
Definition at line 472 of file AliAnalysisTaskChargedParticlesRef.cxx.
Referenced by UserExec().
|
protected |
Fill event counter histogram for a given trigger class
triggerclass | Trigger class firing the trigger |
vtxz | z-position of the primary vertex |
isSelected | Check whether track is selected |
Definition at line 449 of file AliAnalysisTaskChargedParticlesRef.cxx.
Referenced by UserExec().
|
protected |
Definition at line 573 of file AliAnalysisTaskChargedParticlesRef.cxx.
Referenced by UserExec().
|
protected |
Fill track histograms
eventclass | Trigger class fired |
pt | track \( p_{t} \) |
etalab | Track \( \eta \) in lab frame |
etacent | Track \( \eta \) in cms frame |
phi | Track \( \eta \) in lab frame |
etacut | Track accepted by \( \eta \) cut |
inEmcal | Track in EMCAL \( \phi \) acceptance |
Definition at line 511 of file AliAnalysisTaskChargedParticlesRef.cxx.
Referenced by UserExec().
|
protected |
Apply trigger selection using offline patches and trigger thresholds based on offline ADC Amplitude
triggerpatches | Trigger patches found by the trigger maker |
Definition at line 629 of file AliAnalysisTaskChargedParticlesRef.cxx.
Referenced by UserExec().
|
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.
[in] | triggerclass | Class for which to obtain the trigger. |
Definition at line 602 of file AliAnalysisTaskChargedParticlesRef.cxx.
Referenced by FillEventCounterHists(), FillPIDHistos(), and FillTrackHistos().
void EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::InitializeTrackCuts | ( | TString | cutname, |
bool | isAOD | ||
) |
Set the track selection
cutname | Name of the track cuts |
isAOD | check whether we run on ESDs or AODs |
Definition at line 620 of file AliAnalysisTaskChargedParticlesRef.cxx.
Referenced by UserCreateOutputObjects().
|
private |
|
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.
[in] | runnumber | Number of the new run. |
Definition at line 495 of file AliAnalysisTaskChargedParticlesRef.cxx.
Referenced by UserExec().
|
inline |
Definition at line 56 of file AliAnalysisTaskChargedParticlesRef.h.
|
inline |
Definition at line 48 of file AliAnalysisTaskChargedParticlesRef.h.
|
inline |
Definition at line 59 of file AliAnalysisTaskChargedParticlesRef.h.
|
inline |
Definition at line 53 of file AliAnalysisTaskChargedParticlesRef.h.
Referenced by InitializeTrackCuts().
|
inline |
Definition at line 58 of file AliAnalysisTaskChargedParticlesRef.h.
|
inline |
Definition at line 57 of file AliAnalysisTaskChargedParticlesRef.h.
|
inline |
Definition at line 51 of file AliAnalysisTaskChargedParticlesRef.h.
|
inline |
Definition at line 55 of file AliAnalysisTaskChargedParticlesRef.h.
|
inline |
Definition at line 52 of file AliAnalysisTaskChargedParticlesRef.h.
|
inline |
Definition at line 47 of file AliAnalysisTaskChargedParticlesRef.h.
|
inline |
Definition at line 45 of file AliAnalysisTaskChargedParticlesRef.h.
void EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::UserCreateOutputObjects | ( | ) |
Create the output histograms
Definition at line 129 of file AliAnalysisTaskChargedParticlesRef.cxx.
void EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::UserExec | ( | Option_t * | ) |
Simple unit test framework
option | Not used |
Definition at line 249 of file AliAnalysisTaskChargedParticlesRef.cxx.
|
inline |
Definition at line 49 of file AliAnalysisTaskChargedParticlesRef.h.
|
protected |
Event selection.
Definition at line 72 of file AliAnalysisTaskChargedParticlesRef.h.
Referenced by SetAnalysisUtil(), UserCreateOutputObjects(), UserExec(), and ~AliAnalysisTaskChargedParticlesRef().
|
protected |
Current run number (for RunChange method)
Definition at line 92 of file AliAnalysisTaskChargedParticlesRef.h.
Referenced by UserExec().
|
protected |
! Downscalfactors for given run
Definition at line 90 of file AliAnalysisTaskChargedParticlesRef.h.
Referenced by GetTriggerWeight(), and RunChanged().
|
protected |
! Container with downscale factors for different triggers
Definition at line 89 of file AliAnalysisTaskChargedParticlesRef.h.
Referenced by ExecOnce(), RunChanged(), and ~AliAnalysisTaskChargedParticlesRef().
|
protected |
Cut applied in Eta centre-of-mass frame.
Definition at line 83 of file AliAnalysisTaskChargedParticlesRef.h.
Referenced by AliAnalysisTaskChargedParticlesRef(), SetEtaCMSCut(), and UserExec().
|
protected |
Cut applied in Eta Lab frame.
Definition at line 82 of file AliAnalysisTaskChargedParticlesRef.h.
Referenced by AliAnalysisTaskChargedParticlesRef(), SetEtaLabCut(), and UserExec().
|
protected |
Sign of the eta distribution (swaps when beam directions swap): p-Pb: +1, Pb-p: -1.
Definition at line 80 of file AliAnalysisTaskChargedParticlesRef.h.
Referenced by SetBeamDirection(), and UserExec().
|
protected |
EMCAL geometry methods.
Definition at line 75 of file AliAnalysisTaskChargedParticlesRef.h.
Referenced by ExecOnce(), and UserExec().
|
protected |
! Histogram manager
Definition at line 74 of file AliAnalysisTaskChargedParticlesRef.h.
Referenced by FillEventCounterHists(), FillPIDHistos(), FillTrackHistos(), UserCreateOutputObjects(), UserExec(), and ~AliAnalysisTaskChargedParticlesRef().
|
protected |
Check for initialized.
Definition at line 93 of file AliAnalysisTaskChargedParticlesRef.h.
Referenced by UserExec().
|
protected |
Use kinematics correlation histograms.
Definition at line 85 of file AliAnalysisTaskChargedParticlesRef.h.
Referenced by FillTrackHistos(), SetKineCorrelation(), and UserCreateOutputObjects().
|
protected |
Name of the downscale OADB container.
Definition at line 88 of file AliAnalysisTaskChargedParticlesRef.h.
Referenced by ExecOnce(), and SetDownscaleOADB().
|
protected |
Use kinematics correlation histograms.
Definition at line 86 of file AliAnalysisTaskChargedParticlesRef.h.
Referenced by SetPlotPID(), UserCreateOutputObjects(), and UserExec().
|
protected |
Standard track selection.
Definition at line 71 of file AliAnalysisTaskChargedParticlesRef.h.
Referenced by SetEMCALTrackSelection(), UserCreateOutputObjects(), and UserExec().
|
protected |
! Container with trigger patches
Definition at line 76 of file AliAnalysisTaskChargedParticlesRef.h.
Referenced by ExecOnce(), and UserExec().
|
protected |
Offline trigger selection.
Definition at line 73 of file AliAnalysisTaskChargedParticlesRef.h.
Referenced by SetOfflineTriggerSelection(), UserExec(), and ~AliAnalysisTaskChargedParticlesRef().
|
protected |
Do rebuild the trigger string from trigger patches.
Definition at line 78 of file AliAnalysisTaskChargedParticlesRef.h.
Referenced by UserExec(), and UseTriggerPatches().
|
protected |
Rapidity shift.
Definition at line 79 of file AliAnalysisTaskChargedParticlesRef.h.
Referenced by SetRapidityShift(), and UserExec().