![]() |
AliPhysics
d2b03f8 (d2b03f8)
|
Unit test class for charged particle distributions. More...
#include <AliAnalysisTaskChargedParticlesRef.h>
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 | SetTrackSelection (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) |
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 |
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... | |
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... | |
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 28 of file AliAnalysisTaskChargedParticlesRef.h.
Enumerator | |
---|---|
kpPb | |
kPbp |
Definition at line 30 of file AliAnalysisTaskChargedParticlesRef.h.
EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::AliAnalysisTaskChargedParticlesRef | ( | ) |
Dummy constructor
Definition at line 50 of file AliAnalysisTaskChargedParticlesRef.cxx.
EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::AliAnalysisTaskChargedParticlesRef | ( | const char * | name | ) |
Main constructor
name | Name of the task |
Definition at line 72 of file AliAnalysisTaskChargedParticlesRef.cxx.
|
virtual |
Destuctor
Definition at line 94 of file AliAnalysisTaskChargedParticlesRef.cxx.
|
private |
|
protected |
Create new Pt binning
binning |
Definition at line 562 of file AliAnalysisTaskChargedParticlesRef.cxx.
Referenced by UserCreateOutputObjects().
|
protected |
Create old pt binning
binning |
Definition at line 534 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 431 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 456 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 595 of file AliAnalysisTaskChargedParticlesRef.cxx.
Referenced by UserExec().
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 526 of file AliAnalysisTaskChargedParticlesRef.cxx.
Referenced by UserCreateOutputObjects().
|
private |
|
inline |
Definition at line 49 of file AliAnalysisTaskChargedParticlesRef.h.
|
inline |
Definition at line 43 of file AliAnalysisTaskChargedParticlesRef.h.
|
inline |
Definition at line 51 of file AliAnalysisTaskChargedParticlesRef.h.
|
inline |
Definition at line 50 of file AliAnalysisTaskChargedParticlesRef.h.
|
inline |
Definition at line 48 of file AliAnalysisTaskChargedParticlesRef.h.
|
inline |
Definition at line 42 of file AliAnalysisTaskChargedParticlesRef.h.
|
inline |
Definition at line 46 of file AliAnalysisTaskChargedParticlesRef.h.
Referenced by InitializeTrackCuts().
|
inline |
Definition at line 40 of file AliAnalysisTaskChargedParticlesRef.h.
void EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::UserCreateOutputObjects | ( | ) |
Create the output histograms
Definition at line 104 of file AliAnalysisTaskChargedParticlesRef.cxx.
void EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::UserExec | ( | Option_t * | ) |
Simple unit test framework
option | Not used |
Definition at line 227 of file AliAnalysisTaskChargedParticlesRef.cxx.
|
inline |
Definition at line 44 of file AliAnalysisTaskChargedParticlesRef.h.
|
protected |
Event selection.
Definition at line 62 of file AliAnalysisTaskChargedParticlesRef.h.
Referenced by SetAnalysisUtil(), UserCreateOutputObjects(), UserExec(), and ~AliAnalysisTaskChargedParticlesRef().
|
protected |
Cut applied in Eta centre-of-mass frame.
Definition at line 72 of file AliAnalysisTaskChargedParticlesRef.h.
Referenced by AliAnalysisTaskChargedParticlesRef(), SetEtaCMSCut(), and UserExec().
|
protected |
Cut applied in Eta Lab frame.
Definition at line 71 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 69 of file AliAnalysisTaskChargedParticlesRef.h.
Referenced by SetBeamDirection(), and UserExec().
|
protected |
EMCAL geometry methods.
Definition at line 65 of file AliAnalysisTaskChargedParticlesRef.h.
Referenced by UserExec().
|
protected |
Histogram manager.
Definition at line 64 of file AliAnalysisTaskChargedParticlesRef.h.
Referenced by FillEventCounterHists(), FillTrackHistos(), UserCreateOutputObjects(), UserExec(), and ~AliAnalysisTaskChargedParticlesRef().
|
protected |
Standard track selection.
Definition at line 61 of file AliAnalysisTaskChargedParticlesRef.h.
Referenced by SetTrackSelection(), UserCreateOutputObjects(), and UserExec().
|
protected |
Offline trigger selection.
Definition at line 63 of file AliAnalysisTaskChargedParticlesRef.h.
Referenced by SetOfflineTriggerSelection(), UserExec(), and ~AliAnalysisTaskChargedParticlesRef().
|
protected |
Do rebuild the trigger string from trigger patches.
Definition at line 67 of file AliAnalysisTaskChargedParticlesRef.h.
Referenced by UserExec(), and UseTriggerPatches().
|
protected |
Rapidity shift.
Definition at line 68 of file AliAnalysisTaskChargedParticlesRef.h.
Referenced by SetRapidityShift(), and UserExec().