![]() |
AliPhysics
b24dc27 (b24dc27)
|
Unit test class for charged particle distributions (MC case) More...
#include <AliAnalysisTaskChargedParticlesRefMC.h>
Public Types | |
enum | BeamDirection_t { kpPb = 1, kPbp = -1 } |
Public Member Functions | |
AliAnalysisTaskChargedParticlesRefMC () | |
AliAnalysisTaskChargedParticlesRefMC (const char *name) | |
virtual | ~AliAnalysisTaskChargedParticlesRefMC () |
void | UserCreateOutputObjects () |
void | UserExec (Option_t *) |
Bool_t | UserNotify () |
void | Terminate (Option_t *) |
void | SetRapidityShift (Double_t yshift) |
void | SetBeamDirection (BeamDirection_t beamdir) |
void | SetAnalysisUtil (AliAnalysisUtils *util) |
void | SetTrackSelection (AliEmcalTrackSelection *sel) |
void | SetEtaLabCut (double etamin, double etamax) |
void | SetEtaCMSCut (double etamin, double etamax) |
void | SetOutlierCut (double fracpthard=1.2) |
void | SetOfflineTriggerSelection (AliEmcalTriggerOfflineSelection *sel) |
void | SetUsePythiaHard (Bool_t usePythiaHard) |
void | InitializeTrackCuts (TString cutname, bool isAOD) |
void | SetWeightHandler (const AliEMCalTriggerWeightHandler *wh) |
Protected Member Functions | |
void | CreateOldPtBinning (TArrayD &binning) const |
void | CreateNewPtBinning (TArrayD &binning) const |
void | FillTrackHistos (const char *eventclass, Double_t weight, Double_t pt, Double_t eta, Double_t etacent, Double_t phi, Bool_t etacut, Bool_t inEmcal, Bool_t hasTRD, const char *pid) |
void | FillTriggerJetHistograms (Bool_t aftercut, AliGenPythiaEventHeader *const header) |
TString | GetFiredTriggerClasses (const TClonesArray *triggerpatches) |
Bool_t | PythiaInfoFromFile (const char *currFile, Float_t &fXsec, Float_t &fTrials, Int_t &pthard) const |
AliGenPythiaEventHeader * | GetPythiaHeader () const |
Bool_t | IsPhysicalPrimary (const AliVParticle *const part, AliMCEvent *const mcevent) |
Bool_t | IsOutlier (AliGenPythiaEventHeader *const header) 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... | |
const AliEMCalTriggerWeightHandler * | fWeightHandler |
Weight handler (optional) More... | |
Bool_t | fUsePythiaHard |
flag whether using PYTHIA Hard More... | |
Double_t | fPtHard |
event pt hard More... | |
Int_t | fPtHardBin |
event pt hard bin More... | |
Int_t | fNTrials |
event trials More... | |
Float_t | fXsection |
x-section from pythia header 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 | fFracPtHard |
Cut on the maximum fraction of pt hard of any trigger jet. More... | |
Private Member Functions | |
AliAnalysisTaskChargedParticlesRefMC (const AliAnalysisTaskChargedParticlesRefMC &) | |
AliAnalysisTaskChargedParticlesRefMC & | operator= (const AliAnalysisTaskChargedParticlesRefMC &) |
Unit test class for charged particle distributions (MC case)
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 35 of file AliAnalysisTaskChargedParticlesRefMC.h.
Enumerator | |
---|---|
kpPb | |
kPbp |
Definition at line 37 of file AliAnalysisTaskChargedParticlesRefMC.h.
EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRefMC::AliAnalysisTaskChargedParticlesRefMC | ( | ) |
Dummy constructor
Definition at line 65 of file AliAnalysisTaskChargedParticlesRefMC.cxx.
EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRefMC::AliAnalysisTaskChargedParticlesRefMC | ( | const char * | name | ) |
Main constructor
name | Name of the task |
Definition at line 93 of file AliAnalysisTaskChargedParticlesRefMC.cxx.
|
virtual |
Destuctor
Definition at line 121 of file AliAnalysisTaskChargedParticlesRefMC.cxx.
|
private |
|
protected |
Create new Pt binning
binning |
Definition at line 840 of file AliAnalysisTaskChargedParticlesRefMC.cxx.
Referenced by UserCreateOutputObjects().
|
protected |
Create old pt binning
binning |
Definition at line 812 of file AliAnalysisTaskChargedParticlesRefMC.cxx.
Referenced by UserCreateOutputObjects().
|
protected |
Fill track histograms
eventclass | Trigger class fired |
weight | \( p_{t} \)-hard dependent weight |
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 554 of file AliAnalysisTaskChargedParticlesRefMC.cxx.
Referenced by UserExec().
|
protected |
Fill histogram with pt of all triggering jets
histname | Name of the histogram to fill |
header | PYTHIA event header with jet information |
Definition at line 642 of file AliAnalysisTaskChargedParticlesRefMC.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 873 of file AliAnalysisTaskChargedParticlesRefMC.cxx.
|
protected |
Access PYTHIA event header
Definition at line 784 of file AliAnalysisTaskChargedParticlesRefMC.cxx.
Referenced by UserExec().
void EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRefMC::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 804 of file AliAnalysisTaskChargedParticlesRefMC.cxx.
Referenced by UserCreateOutputObjects().
|
protected |
Find outlier jets compared to the pt hard
header | PYTHIA header with trigger jets and pt hard |
Definition at line 928 of file AliAnalysisTaskChargedParticlesRefMC.cxx.
Referenced by UserExec().
|
protected |
Check in a transparent way for ESDs and AODs whether the particle is physical primary or not
part | The particle to check |
mcevent | The MC event containing the stack (ESD only) |
Definition at line 912 of file AliAnalysisTaskChargedParticlesRefMC.cxx.
Referenced by UserExec().
|
private |
|
protected |
Get the cross section and the trails either from pyxsec.root or from pysec_hists.root Get the pt hard bin from the file path This is to called in Notify and should provide the path to the AOD/ESD file (Partially copied from AliAnalysisHelperJetTasks) From AliAnalysisTaskEmcal
currFile | File name with PYTHIA hard cross section |
fXsec | Output storage for the cross section |
fTrials | Output storage for the number of trials |
pthard | Output storage of the pthardbin |
Definition at line 708 of file AliAnalysisTaskChargedParticlesRefMC.cxx.
Referenced by UserNotify().
|
inline |
Definition at line 54 of file AliAnalysisTaskChargedParticlesRefMC.h.
|
inline |
Definition at line 52 of file AliAnalysisTaskChargedParticlesRefMC.h.
|
inline |
Definition at line 57 of file AliAnalysisTaskChargedParticlesRefMC.h.
|
inline |
Definition at line 56 of file AliAnalysisTaskChargedParticlesRefMC.h.
|
inline |
Definition at line 59 of file AliAnalysisTaskChargedParticlesRefMC.h.
|
inline |
Definition at line 58 of file AliAnalysisTaskChargedParticlesRefMC.h.
|
inline |
Definition at line 51 of file AliAnalysisTaskChargedParticlesRefMC.h.
|
inline |
Definition at line 55 of file AliAnalysisTaskChargedParticlesRefMC.h.
Referenced by InitializeTrackCuts().
|
inline |
Definition at line 60 of file AliAnalysisTaskChargedParticlesRefMC.h.
|
inline |
Definition at line 62 of file AliAnalysisTaskChargedParticlesRefMC.h.
|
inline |
Definition at line 49 of file AliAnalysisTaskChargedParticlesRefMC.h.
void EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRefMC::UserCreateOutputObjects | ( | ) |
Create the output histograms
Definition at line 130 of file AliAnalysisTaskChargedParticlesRefMC.cxx.
void EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRefMC::UserExec | ( | Option_t * | ) |
Definition at line 261 of file AliAnalysisTaskChargedParticlesRefMC.cxx.
Bool_t EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRefMC::UserNotify | ( | ) |
Perform actions when giles change
Definition at line 661 of file AliAnalysisTaskChargedParticlesRefMC.cxx.
|
protected |
Event selection.
Definition at line 79 of file AliAnalysisTaskChargedParticlesRefMC.h.
Referenced by SetAnalysisUtil(), UserCreateOutputObjects(), UserExec(), and ~AliAnalysisTaskChargedParticlesRefMC().
|
protected |
Cut applied in Eta centre-of-mass frame.
Definition at line 95 of file AliAnalysisTaskChargedParticlesRefMC.h.
Referenced by AliAnalysisTaskChargedParticlesRefMC(), SetEtaCMSCut(), and UserExec().
|
protected |
Cut applied in Eta Lab frame.
Definition at line 94 of file AliAnalysisTaskChargedParticlesRefMC.h.
Referenced by AliAnalysisTaskChargedParticlesRefMC(), SetEtaLabCut(), and UserExec().
|
protected |
Sign of the eta distribution (swaps when beam directions swap): p-Pb: +1, Pb-p: -1.
Definition at line 93 of file AliAnalysisTaskChargedParticlesRefMC.h.
Referenced by SetBeamDirection(), and UserExec().
|
protected |
Cut on the maximum fraction of pt hard of any trigger jet.
Definition at line 96 of file AliAnalysisTaskChargedParticlesRefMC.h.
Referenced by IsOutlier(), SetOutlierCut(), and UserExec().
|
protected |
EMCAL geometry methods.
Definition at line 82 of file AliAnalysisTaskChargedParticlesRefMC.h.
Referenced by UserExec().
|
protected |
Histogram manager.
Definition at line 81 of file AliAnalysisTaskChargedParticlesRefMC.h.
Referenced by FillTrackHistos(), FillTriggerJetHistograms(), UserCreateOutputObjects(), UserExec(), UserNotify(), and ~AliAnalysisTaskChargedParticlesRefMC().
|
protected |
event trials
Definition at line 89 of file AliAnalysisTaskChargedParticlesRefMC.h.
|
protected |
event pt hard
Definition at line 87 of file AliAnalysisTaskChargedParticlesRefMC.h.
|
protected |
event pt hard bin
Definition at line 88 of file AliAnalysisTaskChargedParticlesRefMC.h.
|
protected |
Standard track selection.
Definition at line 78 of file AliAnalysisTaskChargedParticlesRefMC.h.
Referenced by SetTrackSelection(), UserCreateOutputObjects(), and UserExec().
|
protected |
Offline trigger selection.
Definition at line 80 of file AliAnalysisTaskChargedParticlesRefMC.h.
Referenced by SetOfflineTriggerSelection(), UserExec(), and ~AliAnalysisTaskChargedParticlesRefMC().
|
protected |
flag whether using PYTHIA Hard
Definition at line 86 of file AliAnalysisTaskChargedParticlesRefMC.h.
Referenced by SetUsePythiaHard(), and UserNotify().
|
protected |
Weight handler (optional)
Definition at line 83 of file AliAnalysisTaskChargedParticlesRefMC.h.
Referenced by SetWeightHandler(), and UserExec().
|
protected |
x-section from pythia header
Definition at line 90 of file AliAnalysisTaskChargedParticlesRefMC.h.
|
protected |
Rapidity shift.
Definition at line 92 of file AliAnalysisTaskChargedParticlesRefMC.h.
Referenced by SetRapidityShift(), and UserExec().