![]() |
AliPhysics
d20dab4 (d20dab4)
|
Class for track embedding into an event. More...
#include <AliJetEmbeddingTask.h>
Protected Member Functions | |
void | Run () |
intialize task More... | |
void | SetTree (TTree *tree) |
void | FillHistograms () |
Float_t | GetDownscalinigFactor () |
void | Terminate (Option_t *option="") |
![]() | |
void | UserExec (Option_t *) |
void | UserCreateOutputObjects () |
Int_t | SetNumberOfOutCells (Int_t n) |
Int_t | AddCell (Double_t e=-1, Double_t eta=-999, Double_t phi=-1) |
set the number of cells More... | |
Int_t | AddCell (Double_t e, Int_t absId, Double_t time=0, Int_t label=0) |
add a cell; if values are -1 generate random parameters More... | |
AliVCluster * | AddCluster (Double_t e=-1, Double_t eta=-999, Double_t phi=-1, Int_t label=0) |
add a cell with given energy, position and times More... | |
AliVCluster * | AddCluster (Double_t e, Int_t absId, Int_t label=0) |
add a cluster; if values are -1 generate random parameters More... | |
AliVCluster * | AddCluster (AliVCluster *oc) |
add a cluster with given energy and position More... | |
AliPicoTrack * | AddTrack (Double_t pt=-999, Double_t eta=-999, Double_t phi=-999, Byte_t type=0, Double_t etaemc=0, Double_t phiemc=0, Double_t ptemc=0, Bool_t ise=kFALSE, Int_t label=0, Short_t charge=1, Double_t mass=0.1396) |
add a cluster (copy) More... | |
AliAODMCParticle * | AddMCParticle (AliAODMCParticle *part, Int_t origIndex) |
add a track; if values are -1 generate random parameters More... | |
void | AddV2 (Double_t &phi, Double_t &pt) const |
void | CopyCells () |
void | CopyClusters () |
void | CopyTracks () |
void | CopyMCParticles () |
void | GetRandomCell (Double_t &eta, Double_t &phi, Int_t &absId) |
Double_t | GetRandomEta (Bool_t emcal=kFALSE) |
generate a random cell in the calorimeter More... | |
Double_t | GetRandomPhi (Bool_t emcal=kFALSE) |
generate a random eta value in the given range More... | |
Double_t | GetRandomPt () |
generate a random phi value in the given range More... | |
Double_t | GetRandomM () |
generate a random pt value in the given range More... | |
void | GetRandomParticle (Double_t &pt, Double_t &eta, Double_t &phi, Bool_t emcal=kFALSE) |
generate a random m value from a given distribution or take a fixed value More... | |
void | GetRandomMassiveParticle (Double_t &pt, Double_t &eta, Double_t &phi, Bool_t emcal, Double_t &m) |
generate a particle with random eta,phi,pt values More... | |
void | GetRandomMvsPt (Double_t &m, Double_t &pt) |
generate a particle with random eta,phi,pt,mass values More... | |
void | GetRandomMvsPtParticle (Double_t &pt, Double_t &m, Double_t &eta, Double_t &phi, Bool_t emcal=kFALSE) |
generate 2 random values for pt and mass from a gived 2D distribution More... | |
virtual Bool_t | ExecOnce () |
generate a particle with random eta,phi, and correlated pt,mass values More... | |
void | FillHistograms () |
do jet model action More... | |
Private Member Functions | |
AliJetEmbeddingTask (const AliJetEmbeddingTask &) | |
AliJetEmbeddingTask & | operator= (const AliJetEmbeddingTask &) |
Private Attributes | |
Bool_t | fMassless |
make particles massless More... | |
Double_t | fNeutralFraction |
assign charge==0 to fraction of particles More... | |
Double_t | fNeutralMass |
assign this mass to neutral particles More... | |
Double_t | fMass |
assign this mass to particle More... | |
TString | fPathMinputFile |
path to the file where the external input Mass distribution is (can be from alien) More... | |
TString | fPathpTinputFile |
path to the file where the external input pT distribution is (can be from alien) More... | |
TString | fMinputName |
name of the external input Mass histogram More... | |
TString | fpTinputName |
name of the external input pT histogram More... | |
Bool_t | fFromTree |
if true use TTree of jet 4-vectors as input single tracks More... | |
TString | fPathTreeinputFile |
path to the file where the external input Tree is (can be from alien) More... | |
TString | fTreeinputName |
name of the external input Tree More... | |
TString | fBranchJDetName |
name of the detector level jet branch in the TTree More... | |
TString | fBranchJParName |
name of the particle level jet branch in the TTree More... | |
TTree * | fTreeJet4Vect |
! tree containing the jet 4-vectors (input for embed.) More... | |
Int_t | fCurrentEntry |
Current TTree entry. More... | |
TList * | fInput |
! Input histograms saved in this list More... | |
Bool_t | fRandomEntry |
draw random number to extract the entry number in the tree More... | |
Int_t | fNBins |
Float_t * | fDownscale |
factor to exclude randomly entries from the embedding More... | |
Float_t * | fPtRanges |
low lims of the pT ranges corresponding to the fDownscale bin More... | |
Int_t | fNevPerBin |
number of embedded tracks per pT bins More... | |
Int_t | fCount |
counts number of embedded tracks in the current pT bin More... | |
Int_t | fCurrentBin |
the current pT bin More... | |
Int_t | fGoBack |
how many times fCurrentBin is set back to 0 More... | |
THnSparse * | fhPartJet |
! control histogram particle level correponsding to embedded from tree More... | |
TH1F * | fhEtaPart |
! Eta particle corresponding to embedded from tree More... | |
TH1F * | fhPhiPart |
! Phi particle corresponding to embedded from tree More... | |
TH1F * | fhTreeEntriesUsed |
! Entries of the TTree used More... | |
Long64_t | fNTreeEntries |
Tree entry number. More... | |
Bool_t | fOldCutOnDetPt |
Apply cut on the embedded track at detector level (this was default before, not we apply the cut at particle level) More... | |
Additional Inherited Members | |
![]() | |
TString | fGeomName |
Fill QA histograms. More... | |
TString | fTracksName |
name of track collection More... | |
TString | fOutTracksName |
name of output track collection More... | |
TString | fCaloName |
name of calo cluster collection More... | |
TString | fOutCaloName |
name of output cluster collection More... | |
TString | fCellsName |
name of calo cells collection More... | |
TString | fOutCellsName |
name of output cells collection More... | |
TString | fMCParticlesName |
name of MC particle collection More... | |
TString | fOutMCParticlesName |
name of output MC particle collection More... | |
TString | fPythiaInfoName |
name of pythia info More... | |
Bool_t | fIsMC |
whether the current event is MC or not More... | |
TString | fSuffix |
suffix to add in the name of new collections More... | |
Float_t | fEtaMin |
eta minimum value More... | |
Float_t | fEtaMax |
eta maximum value More... | |
Float_t | fPhiMin |
phi minimum value More... | |
Float_t | fPhiMax |
phi maximum value More... | |
Float_t | fPtMin |
pt minimum value More... | |
Float_t | fPtMax |
pt maximum value More... | |
Int_t | fGenType |
generator type. 0=pythia, 1=qpythia,2=pyquen, 3=herwig6.5 More... | |
Bool_t | fCopyArray |
whether or not the array will be copied to a new one before modelling More... | |
Int_t | fNClusters |
how many clusters are being processed More... | |
Int_t | fNCells |
how many cells are being processed More... | |
Int_t | fNTracks |
how many tracks are being processed More... | |
Int_t | fMarkMC |
which MC label is to be used (default=100) More... | |
TH1F * | fPtSpectrum |
pt spectrum to extract random pt values More... | |
TF2 * | fPtPhiEvPlDistribution |
pt vs. (phi-psi) distribution to extract random pt/phi values More... | |
TH1F * | fDensitySpectrum |
particle density spectrum to extract random density values More... | |
TF1 * | fDifferentialV2 |
v2 as function of pt More... | |
Bool_t | fAddV2 |
add v2 sampled from a tf1 More... | |
Bool_t | fFlowFluctuations |
introduce gaussian flow fluctuation More... | |
Bool_t | fQAhistos |
draw QA histograms More... | |
Double_t | fPsi |
! simmetry plane for the elliptic flow More... | |
Bool_t | fIsInit |
! =true if initialized More... | |
AliEMCALGeometry * | fGeom |
! pointer to EMCal geometry More... | |
Double_t | fVertex [3] |
! event vertex More... | |
TClonesArray * | fClusters |
! cluster collection More... | |
TClonesArray * | fOutClusters |
! output cluster collection More... | |
TClonesArray * | fTracks |
! track collection More... | |
TClonesArray * | fOutTracks |
! output track collection More... | |
AliVCaloCells * | fCaloCells |
! cells collection More... | |
AliVCaloCells * | fOutCaloCells |
! output cells collection More... | |
Int_t | fAddedCells |
! number of added cells More... | |
TClonesArray * | fMCParticles |
! MC particles collection More... | |
AliNamedArrayI * | fMCParticlesMap |
! MC particles mapping More... | |
TClonesArray * | fOutMCParticles |
! output MC particles collection More... | |
AliNamedArrayI * | fOutMCParticlesMap |
! MC particles mapping More... | |
Int_t | fMCLabelShift |
! MC label shift More... | |
Bool_t | fEsdMode |
! ESD/AOD mode More... | |
TList * | fOutput |
! output list for QA histograms More... | |
AliEmcalPythiaInfo * | fPythiaInfo |
! Info on original partons:PDG,pt, eta, phi and pythia event weight More... | |
TH1F * | fhpTEmb |
! embedded tracks pT More... | |
TH1F * | fhMEmb |
! embedded tracks M More... | |
TH1F * | fhEtaEmb |
! embedded tracks eta More... | |
TH1F * | fhPhiEmb |
! embedded tracks phi More... | |
TH1I * | fhEvents |
! store the number of events analysed More... | |
Bool_t | fMassFromDistr |
draw the particle mass from fHMassDistrib More... | |
TH1F * | fHMassDistrib |
shape of mass distribution of embedded tracks More... | |
TH2F * | fHMassPtDistrib |
shape of mass vs pt distribution of embedded track More... | |
Class for track embedding into an event.
The class inherits from AliJetModelBaseTask and takes care of the implemetation of the track embedding into the original or a copy of the track array using the method AddTrack (see AliJetModelBaseTask) Several choices on the track mass are possible: 1) pion mass 2) massless 3) a value set by the user 4) a random value from a user-defined distribution
Definition at line 27 of file AliJetEmbeddingTask.h.
AliJetEmbeddingTask::AliJetEmbeddingTask | ( | ) |
Definition at line 19 of file AliJetEmbeddingTask.cxx.
AliJetEmbeddingTask::AliJetEmbeddingTask | ( | const char * | name | ) |
Definition at line 59 of file AliJetEmbeddingTask.cxx.
|
virtual |
Definition at line 98 of file AliJetEmbeddingTask.cxx.
|
private |
|
protected |
Referenced by SetNevPerBin().
|
protected |
Definition at line 277 of file AliJetEmbeddingTask.cxx.
Referenced by SetNevPerBin().
|
private |
|
protectedvirtual |
intialize task
Reimplemented from AliJetModelBaseTask.
Reimplemented in AliJetEmbeddingSelRhoTask.
Definition at line 176 of file AliJetEmbeddingTask.cxx.
Referenced by AliJetEmbeddingSelRhoTask::Run(), and SetNevPerBin().
|
inline |
Definition at line 35 of file AliJetEmbeddingTask.h.
|
inline |
Definition at line 34 of file AliJetEmbeddingTask.h.
|
inline |
Definition at line 38 of file AliJetEmbeddingTask.h.
|
inline |
Definition at line 46 of file AliJetEmbeddingTask.h.
|
inline |
Definition at line 36 of file AliJetEmbeddingTask.h.
|
inline |
Definition at line 37 of file AliJetEmbeddingTask.h.
|
inline |
Definition at line 49 of file AliJetEmbeddingTask.h.
Definition at line 40 of file AliJetEmbeddingTask.h.
Definition at line 39 of file AliJetEmbeddingTask.h.
void AliJetEmbeddingTask::SetPtRangesEmb | ( | Float_t * | ptlims | ) |
Referenced by SetNBinsEmbedding().
void AliJetEmbeddingTask::SetRejection | ( | Float_t * | rej | ) |
Definition at line 338 of file AliJetEmbeddingTask.cxx.
Referenced by SetNBinsEmbedding().
|
protected |
Definition at line 297 of file AliJetEmbeddingTask.cxx.
Referenced by SetNevPerBin(), and SetTreeFromFile().
|
inline |
Definition at line 42 of file AliJetEmbeddingTask.h.
|
inline |
Definition at line 43 of file AliJetEmbeddingTask.h.
Definition at line 311 of file AliJetEmbeddingTask.cxx.
Referenced by SetTreeBranchPartName(), and UserCreateOutputObjects().
|
inline |
Definition at line 45 of file AliJetEmbeddingTask.h.
|
protected |
Definition at line 354 of file AliJetEmbeddingTask.cxx.
Referenced by SetNevPerBin(), and AliJetEmbeddingSelRhoTask::Terminate().
void AliJetEmbeddingTask::UserCreateOutputObjects | ( | ) |
Definition at line 107 of file AliJetEmbeddingTask.cxx.
Referenced by AliJetEmbeddingSelRhoTask::UserCreateOutputObjects().
|
private |
name of the detector level jet branch in the TTree
Definition at line 71 of file AliJetEmbeddingTask.h.
Referenced by Run(), SetNamesForTree(), SetTreeBranchName(), and UserCreateOutputObjects().
|
private |
name of the particle level jet branch in the TTree
Definition at line 72 of file AliJetEmbeddingTask.h.
Referenced by Run(), SetNamesForTree(), and SetTreeBranchPartName().
|
private |
counts number of embedded tracks in the current pT bin
Definition at line 83 of file AliJetEmbeddingTask.h.
Referenced by GetDownscalinigFactor(), and Run().
|
private |
the current pT bin
Definition at line 84 of file AliJetEmbeddingTask.h.
Referenced by GetDownscalinigFactor().
|
private |
Current TTree entry.
Definition at line 74 of file AliJetEmbeddingTask.h.
Referenced by Run(), and UserCreateOutputObjects().
|
private |
factor to exclude randomly entries from the embedding
Definition at line 79 of file AliJetEmbeddingTask.h.
Referenced by GetDownscalinigFactor(), SetRejection(), and ~AliJetEmbeddingTask().
|
private |
if true use TTree of jet 4-vectors as input single tracks
Definition at line 68 of file AliJetEmbeddingTask.h.
|
private |
how many times fCurrentBin is set back to 0
Definition at line 85 of file AliJetEmbeddingTask.h.
Referenced by GetDownscalinigFactor(), and Terminate().
|
private |
! Eta particle corresponding to embedded from tree
Definition at line 87 of file AliJetEmbeddingTask.h.
Referenced by Run(), and UserCreateOutputObjects().
|
private |
! control histogram particle level correponsding to embedded from tree
Definition at line 86 of file AliJetEmbeddingTask.h.
Referenced by Run(), and UserCreateOutputObjects().
|
private |
! Phi particle corresponding to embedded from tree
Definition at line 88 of file AliJetEmbeddingTask.h.
Referenced by Run(), and UserCreateOutputObjects().
|
private |
! Entries of the TTree used
Definition at line 89 of file AliJetEmbeddingTask.h.
Referenced by Run(), and UserCreateOutputObjects().
|
private |
! Input histograms saved in this list
Definition at line 75 of file AliJetEmbeddingTask.h.
Referenced by UserCreateOutputObjects().
|
private |
assign this mass to particle
Definition at line 63 of file AliJetEmbeddingTask.h.
|
private |
make particles massless
Definition at line 59 of file AliJetEmbeddingTask.h.
Referenced by Run(), and SetMasslessParticles().
|
private |
name of the external input Mass histogram
Definition at line 66 of file AliJetEmbeddingTask.h.
Referenced by SetPathAndNameInputMDistribution(), and UserCreateOutputObjects().
|
private |
pT ranges considered for embedding
Definition at line 77 of file AliJetEmbeddingTask.h.
Referenced by GetDownscalinigFactor(), SetNBinsEmbedding(), and SetRejection().
|
private |
assign charge==0 to fraction of particles
Definition at line 61 of file AliJetEmbeddingTask.h.
Referenced by Run(), and SetNeutralFraction().
|
private |
assign this mass to neutral particles
Definition at line 62 of file AliJetEmbeddingTask.h.
Referenced by Run(), and SetNeutralMass().
|
private |
number of embedded tracks per pT bins
Definition at line 82 of file AliJetEmbeddingTask.h.
Referenced by GetDownscalinigFactor(), and SetNevPerBin().
|
private |
Tree entry number.
Definition at line 90 of file AliJetEmbeddingTask.h.
Referenced by Run(), and UserCreateOutputObjects().
|
private |
Apply cut on the embedded track at detector level (this was default before, not we apply the cut at particle level)
Definition at line 91 of file AliJetEmbeddingTask.h.
Referenced by Run().
|
private |
path to the file where the external input Mass distribution is (can be from alien)
Definition at line 64 of file AliJetEmbeddingTask.h.
Referenced by SetPathAndNameInputMDistribution(), and UserCreateOutputObjects().
|
private |
path to the file where the external input pT distribution is (can be from alien)
Definition at line 65 of file AliJetEmbeddingTask.h.
Referenced by SetPathAndNameInputpTDistribution(), and UserCreateOutputObjects().
|
private |
path to the file where the external input Tree is (can be from alien)
Definition at line 69 of file AliJetEmbeddingTask.h.
Referenced by SetNamesForTree(), and UserCreateOutputObjects().
|
private |
name of the external input pT histogram
Definition at line 67 of file AliJetEmbeddingTask.h.
Referenced by SetPathAndNameInputpTDistribution(), and UserCreateOutputObjects().
|
private |
low lims of the pT ranges corresponding to the fDownscale bin
Definition at line 81 of file AliJetEmbeddingTask.h.
Referenced by ~AliJetEmbeddingTask().
|
private |
draw random number to extract the entry number in the tree
Definition at line 76 of file AliJetEmbeddingTask.h.
Referenced by Run(), and SetUseRandomEntry().
|
private |
name of the external input Tree
Definition at line 70 of file AliJetEmbeddingTask.h.
Referenced by SetNamesForTree(), and UserCreateOutputObjects().
|
private |
! tree containing the jet 4-vectors (input for embed.)
Definition at line 73 of file AliJetEmbeddingTask.h.
Referenced by Run(), SetTree(), and UserCreateOutputObjects().