![]() |
AliPhysics
v5-07-12-02 (0a78810)
|
Unit test class for charged particle distributions. More...
#include <AliAnalysisTaskChargedParticlesRef.h>
Public Types | |
enum | BeamDirection_t { kpPb = 1, kPbp = -1 } |
enum | EmcalTriggerClass { kCPREL0 = 0, kCPREG1, kCPREG2, kCPREJ1, kCPREJ2, kCPRntrig } |
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 | SetEtaLabCut (double etamin, double etamax) |
void | SetEtaCMSCut (double etamin, double etamax) |
void | SetOfflineEnergyThreshold (EmcalTriggerClass trgcls, double threshold) |
Protected Member Functions | |
void | CreateOldPtBinning (TArrayD &binning) const |
void | CreateNewPtBinning (TArrayD &binning) const |
void | FillEventCounterHists (const char *triggerclass, double vtxz, bool isSelected) |
void | FillTrackHistos (const char *eventclass, Double_t pt, Double_t eta, Double_t etacent, Double_t phi, Bool_t etacut, Bool_t inEmcal, Bool_t hasTRD) |
TString | GetFiredTriggerClassesFromPatches (const TClonesArray *triggerpatches) const |
Bool_t | IsOfflineSelected (EmcalTriggerClass trgcls, const TClonesArray *const triggerpatches) const |
Bool_t | TrackSelectionESD (AliESDtrack *track) |
Bool_t | TrackSelectionAOD (AliAODTrack *track) |
Protected Attributes | |
AliESDtrackCuts * | fTrackCuts |
Standard track selection. More... | |
AliAnalysisUtils * | fAnalysisUtil |
Event selection. More... | |
AliEMCalHistoContainer * | fHistos |
Histogram manager. More... | |
AliEMCALGeometry * | fGeometry |
EMCAL geometry methods. 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... | |
Double_t | fOfflineEnergyThreshold [kCPRntrig] |
Threhold applied on offline patches. 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 29 of file AliAnalysisTaskChargedParticlesRef.h.
Enumerator | |
---|---|
kpPb | |
kPbp |
Definition at line 31 of file AliAnalysisTaskChargedParticlesRef.h.
Enumerator | |
---|---|
kCPREL0 | |
kCPREG1 | |
kCPREG2 | |
kCPREJ1 | |
kCPREJ2 | |
kCPRntrig |
Definition at line 35 of file AliAnalysisTaskChargedParticlesRef.h.
EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::AliAnalysisTaskChargedParticlesRef | ( | ) |
Dummy constructor
Definition at line 46 of file AliAnalysisTaskChargedParticlesRef.cxx.
EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::AliAnalysisTaskChargedParticlesRef | ( | const char * | name | ) |
Main constructor
name | Name of the task |
Definition at line 70 of file AliAnalysisTaskChargedParticlesRef.cxx.
|
virtual |
Destuctor
Definition at line 94 of file AliAnalysisTaskChargedParticlesRef.cxx.
|
private |
|
protected |
Create new Pt binning
binning |
Definition at line 557 of file AliAnalysisTaskChargedParticlesRef.cxx.
Referenced by UserCreateOutputObjects().
|
protected |
Create old pt binning
binning |
Definition at line 529 of file AliAnalysisTaskChargedParticlesRef.cxx.
Referenced by UserCreateOutputObjects().
|
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 434 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 459 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 636 of file AliAnalysisTaskChargedParticlesRef.cxx.
Referenced by UserExec().
|
protected |
Apply additional cut requiring at least one offline patch above a given energy (not fake ADC!) 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
trgcls | Trigger class for which to apply additional offline patch selection |
triggerpatches | Array of trigger patches |
Definition at line 613 of file AliAnalysisTaskChargedParticlesRef.cxx.
Referenced by UserExec().
|
private |
|
inline |
Definition at line 52 of file AliAnalysisTaskChargedParticlesRef.h.
|
inline |
Definition at line 56 of file AliAnalysisTaskChargedParticlesRef.h.
|
inline |
Definition at line 55 of file AliAnalysisTaskChargedParticlesRef.h.
|
inline |
Definition at line 58 of file AliAnalysisTaskChargedParticlesRef.h.
|
inline |
Definition at line 51 of file AliAnalysisTaskChargedParticlesRef.h.
|
inline |
Definition at line 49 of file AliAnalysisTaskChargedParticlesRef.h.
|
protected |
Run track selection for AOD tracks
track | The track to check |
Definition at line 599 of file AliAnalysisTaskChargedParticlesRef.cxx.
Referenced by UserExec().
|
protected |
Run track selection for ESD tracks
track | The track to check |
Definition at line 590 of file AliAnalysisTaskChargedParticlesRef.cxx.
Referenced by UserExec().
void EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::UserCreateOutputObjects | ( | ) |
Create the output histograms
Definition at line 103 of file AliAnalysisTaskChargedParticlesRef.cxx.
void EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::UserExec | ( | Option_t * | ) |
Simple unit test framework
option | Not used |
Definition at line 228 of file AliAnalysisTaskChargedParticlesRef.cxx.
|
inline |
Definition at line 53 of file AliAnalysisTaskChargedParticlesRef.h.
|
protected |
Event selection.
Definition at line 73 of file AliAnalysisTaskChargedParticlesRef.h.
Referenced by UserCreateOutputObjects(), UserExec(), and ~AliAnalysisTaskChargedParticlesRef().
|
protected |
Cut applied in Eta centre-of-mass frame.
Definition at line 82 of file AliAnalysisTaskChargedParticlesRef.h.
Referenced by AliAnalysisTaskChargedParticlesRef(), SetEtaCMSCut(), and UserExec().
|
protected |
Cut applied in Eta Lab frame.
Definition at line 81 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 79 of file AliAnalysisTaskChargedParticlesRef.h.
Referenced by SetBeamDirection(), and UserExec().
|
protected |
EMCAL geometry methods.
Definition at line 75 of file AliAnalysisTaskChargedParticlesRef.h.
Referenced by UserExec().
|
protected |
Histogram manager.
Definition at line 74 of file AliAnalysisTaskChargedParticlesRef.h.
Referenced by FillEventCounterHists(), FillTrackHistos(), UserCreateOutputObjects(), UserExec(), and ~AliAnalysisTaskChargedParticlesRef().
|
protected |
Threhold applied on offline patches.
Definition at line 84 of file AliAnalysisTaskChargedParticlesRef.h.
Referenced by AliAnalysisTaskChargedParticlesRef(), IsOfflineSelected(), and SetOfflineEnergyThreshold().
|
protected |
Standard track selection.
Definition at line 72 of file AliAnalysisTaskChargedParticlesRef.h.
Referenced by TrackSelectionESD(), UserCreateOutputObjects(), and ~AliAnalysisTaskChargedParticlesRef().
|
protected |
Do rebuild the trigger string from trigger patches.
Definition at line 77 of file AliAnalysisTaskChargedParticlesRef.h.
Referenced by UserExec(), and UseTriggerPatches().
|
protected |
Rapidity shift.
Definition at line 78 of file AliAnalysisTaskChargedParticlesRef.h.
Referenced by SetRapidityShift(), and UserExec().