AliPhysics  a5cd6b6 (a5cd6b6)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliJetEmbeddingFromPYTHIATask Class Reference

Class for Pythia event embedding into data. More...

#include <AliJetEmbeddingFromPYTHIATask.h>

Inheritance diagram for AliJetEmbeddingFromPYTHIATask:

Public Member Functions

 AliJetEmbeddingFromPYTHIATask ()
 
 AliJetEmbeddingFromPYTHIATask (const char *name, Bool_t drawqa=kFALSE)
 
virtual ~AliJetEmbeddingFromPYTHIATask ()
 
Bool_t UserNotify ()
 
void UserCreateOutputObjects ()
 
void SetPYTHIAPath (const char *p)
 
void SetPtHardBinScaling (Int_t n, Double_t *scaling)
 
void SetAnchorRun (Int_t r)
 
void SetLHC11hAnchorRuns (Bool_t a=kTRUE)
 
void SetFileTable (THashTable *t)
 
void SetUseAsVetoTable (Bool_t v)
 
void SetMinEntriesPerPtHardBin (Int_t r)
 
void SetDebugEmbedding (Bool_t d=kTRUE)
 
- Public Member Functions inherited from AliJetEmbeddingFromAODTask
 AliJetEmbeddingFromAODTask ()
 
 AliJetEmbeddingFromAODTask (const char *name, Bool_t drawqa=kFALSE)
 
virtual ~AliJetEmbeddingFromAODTask ()
 
void UserCreateOutputObjects ()
 
Bool_t UserNotify ()
 
void SetFileList (TObjArray *list)
 
void SetAODTreeName (const char *t)
 
void SetAODHeaderName (const char *t)
 
void SetAODTracksName (const char *n)
 
void SetAODClusName (const char *n)
 
void SetAODCellsName (const char *n)
 
void SetAODMCParticlesName (const char *n)
 
void SetCentralityRange (Double_t min, Double_t max)
 
void SetTriggerMask (UInt_t mask)
 
void SetAODfilterBits (Int_t b0=0, Int_t b1=0)
 
void SetIncludeNoITS (Bool_t f)
 
void SetCutMaxFractionSharedTPCClusters (Double_t c=0.4)
 
void SetUseNegativeLabels (Bool_t f)
 
void SetTrackEfficiency (Double_t eff=0.95)
 
void SetTrackEfficiency (TF1 *eff)
 
void SetTotalFiles (Int_t n)
 
void SetAttempts (Int_t n)
 
void SetRandomAccess (Bool_t r=kTRUE)
 
void SetAODMC (Bool_t a)
 
void SetJetMinPt (Double_t pt)
 
void SetJetEtaRange (Double_t emi, Double_t ema)
 
void SetJetPhiRange (Double_t pmi, Double_t pma)
 
void SetJetConstituentMinPt (Double_t pt)
 
void SetJetType (Byte_t t)
 
void SetJetAlgo (Byte_t t)
 
void SetZVertexCut (Double_t z)
 
void SetMaxVertexDist (Double_t d)
 
void SetParticlePtRange (Double_t min, Double_t max, Byte_t t=1)
 
void SetEmbedCentrality (Bool_t d)
 
- Public Member Functions inherited from AliJetModelBaseTask
 AliJetModelBaseTask ()
 
 AliJetModelBaseTask (const char *name, Bool_t drawqa=kFALSE)
 
virtual ~AliJetModelBaseTask ()
 
void SetEtaRange (Float_t min, Float_t max)
 
void SetPhiRange (Float_t min, Float_t max)
 
void SetPtRange (Float_t min, Float_t max)
 
void SetGenType (Int_t gentype)
 
void SetPtSpectrum (TH1F *f)
 
void SetPtSpectrum (TF1 *f)
 
void SetPtPhiEvPlDistribution (TF2 *f)
 
void SetDensitySpectrum (TH1F *f)
 
void SetDensitySpectrum (TF1 *f)
 
void SetMassDistribution (TH1F *hM)
 
void SetMassDistributionFromFile (TString filename, TString histoname)
 
void SetpTDistributionFromFile (TString filename, TString histoname)
 
void SetMassVsPtDistributionFromFile (TString filename, TString histoname)
 
void SetMassAndPtDistributionFromFile (TString filenameM, TString filenamepT, TString histonameM, TString histonamepT)
 
void SetMassVsPtDistribution (TH2F *hmasspt)
 
void SetDistributionFromFile (TString filename, TString histoname, Int_t type)
 
void SetDifferentialV2 (TF1 *f)
 
void SetAddV2 (Bool_t b)
 
void SetAddFlowFluctuations (Bool_t b)
 
void SetMC (Bool_t a)
 
void SetCopyArray (Bool_t copy)
 
void SetTracksName (const char *n)
 
void SetClusName (const char *n)
 
void SetCellsName (const char *n)
 
void SetMCParticlesName (const char *n)
 
void SetPythiaInfoName (const char *n)
 
void SetSuffix (const char *s)
 
void SetGeometryName (const char *n)
 
void SetMarkMC (Int_t m)
 
virtual void SetNClusters (Int_t n)
 
virtual void SetNCells (Int_t n)
 
virtual void SetNTracks (Int_t n)
 
TString GetOutTrackName () const
 

Protected Member Functions

Bool_t ExecOnce ()
 generate a particle with random eta,phi, and correlated pt,mass values More...
 
Bool_t GetNextEntry ()
 
Int_t GetRandomPtHardBin ()
 
TFile * GetNextFile ()
 
- Protected Member Functions inherited from AliJetEmbeddingFromAODTask
void Run ()
 intialize task More...
 
virtual Bool_t OpenNextFile ()
 
virtual Bool_t IsAODEventSelected ()
 
TLorentzVector GetLeadingJet (TClonesArray *tracks, TClonesArray *clusters=0)
 
Bool_t FindParticleInRange (TClonesArray *array)
 
- Protected Member Functions inherited from AliJetModelBaseTask
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...
 
AliPicoTrackAddTrack (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...
 
void FillHistograms ()
 do jet model action More...
 

Protected Attributes

TString fPYTHIAPath
 
TArrayD fPtHardBinScaling
 
Bool_t fLHC11hAnchorRun
 
Int_t fAnchorRun
 
THashTable * fFileTable
 
Bool_t fUseAsVetoTable
 
Int_t fMinEntriesPerPtHardBin
 
Int_t fCurrentPtHardBin
 
TParameter< int > * fPtHardBinParam
 Pt hard bin of the current open file. More...
 
Int_t fPtHardBinCount
 Pt hard bin param. More...
 
Bool_t fDebugEmbedding
 Number of event embedded from the current pt hard bin. More...
 
TH1fHistPtHardBins
 
- Protected Attributes inherited from AliJetEmbeddingFromAODTask
TObjArrayfFileList
 
Bool_t fRandomAccess
 
TString fAODTreeName
 
TString fAODHeaderName
 
TString fAODVertexName
 
TString fAODTrackName
 
TString fAODClusName
 
TString fAODCellsName
 
TString fAODMCParticlesName
 
Double_t fMinCentrality
 
Double_t fMaxCentrality
 
UInt_t fTriggerMask
 
Double_t fZVertexCut
 
Double_t fMaxVertexDist
 
Double_t fJetMinPt
 
Double_t fJetMinEta
 
Double_t fJetMaxEta
 
Double_t fJetMinPhi
 
Double_t fJetMaxPhi
 
Double_t fJetConstituentMinPt
 
Double_t fJetRadius
 
Byte_t fJetType
 
Byte_t fJetAlgo
 
Bool_t fJetParticleLevel
 
Double_t fParticleMinPt
 
Double_t fParticleMaxPt
 
Byte_t fParticleSelection
 
Int_t fAODfilterBits [2]
 
Bool_t fIncludeNoITS
 
Double_t fCutMaxFractionSharedTPCClusters
 
Bool_t fUseNegativeLabels
 
TF1 * fTrackEfficiency
 
Bool_t fIsAODMC
 
Int_t fTotalFiles
 
Int_t fAttempts
 
Bool_t fEmbedCentrality
 
Bool_t fEsdTreeMode
 
Int_t fCurrentFileID
 True = embed from ESD (must be a skimmed ESD!) More...
 
Int_t fCurrentAODFileID
 Current file being processed (via the event handler) More...
 
TFile * fCurrentAODFile
 Current file ID. More...
 
Int_t fPicoTrackVersion
 Current open file. More...
 
TTreefCurrentAODTree
 Version of the PicoTrack class (if any) in fCurrentAODFile. More...
 
AliVHeader * fAODHeader
 Current open tree. More...
 
TClonesArray * fAODVertex
 AOD header. More...
 
TClonesArray * fAODTracks
 AOD vertex. More...
 
TClonesArray * fAODClusters
 AOD track collection. More...
 
AliVCaloCells * fAODCaloCells
 AOD cluster collection. More...
 
TClonesArray * fAODMCParticles
 AOD cell collection. More...
 
Int_t fCurrentAODEntry
 AOD MC particles collection. More...
 
Int_t fFirstAODEntry
 Current entry in the AOD tree. More...
 
Int_t fLastAODEntry
 First entry in the AOD tree. More...
 
AliNamedStringfAODFilePath
 Last entry in the AOD tree. More...
 
TH2fHistFileMatching
 Current AOD file path being embedded. More...
 
TH1fHistAODFileError
 Current file ID vs. AOD file ID (to be embedded) More...
 
TH1fHistNotEmbedded
 AOD file ID (to be embedded) error. More...
 
TH1fHistEmbeddingQA
 File ID not embedded. More...
 
TH1fHistRejectedEvents
 Embedding QA. More...
 
Int_t fEmbeddingCount
 Rejected events. More...
 
- Protected Attributes inherited from AliJetModelBaseTask
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...
 
AliNamedArrayIfMCParticlesMap
 ! MC particles mapping More...
 
TClonesArray * fOutMCParticles
 ! output MC particles collection More...
 
AliNamedArrayIfOutMCParticlesMap
 ! MC particles mapping More...
 
Int_t fMCLabelShift
 ! MC label shift More...
 
Bool_t fEsdMode
 ! ESD/AOD mode More...
 
TListfOutput
 ! output list for QA histograms More...
 
AliEmcalPythiaInfofPythiaInfo
 ! 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...
 
TH1IfhEvents
 ! 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...
 
TH2FfHMassPtDistrib
 shape of mass vs pt distribution of embedded track More...
 

Private Member Functions

 AliJetEmbeddingFromPYTHIATask (const AliJetEmbeddingFromPYTHIATask &)
 Embeded pt hard bin distribution. More...
 
AliJetEmbeddingFromPYTHIATaskoperator= (const AliJetEmbeddingFromPYTHIATask &)
 

Detailed Description

Class for Pythia event embedding into data.

The class inherits from AliJetEmbeddingFromAODTask 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)

Definition at line 19 of file AliJetEmbeddingFromPYTHIATask.h.

Constructor & Destructor Documentation

AliJetEmbeddingFromPYTHIATask::AliJetEmbeddingFromPYTHIATask ( )
AliJetEmbeddingFromPYTHIATask::AliJetEmbeddingFromPYTHIATask ( const char *  name,
Bool_t  drawqa = kFALSE 
)

Definition at line 48 of file AliJetEmbeddingFromPYTHIATask.cxx.

AliJetEmbeddingFromPYTHIATask::~AliJetEmbeddingFromPYTHIATask ( )
virtual

Definition at line 71 of file AliJetEmbeddingFromPYTHIATask.cxx.

AliJetEmbeddingFromPYTHIATask::AliJetEmbeddingFromPYTHIATask ( const AliJetEmbeddingFromPYTHIATask )
private

Embeded pt hard bin distribution.

Member Function Documentation

Bool_t AliJetEmbeddingFromPYTHIATask::ExecOnce ( )
protectedvirtual

generate a particle with random eta,phi, and correlated pt,mass values

Reimplemented from AliJetEmbeddingFromAODTask.

Definition at line 111 of file AliJetEmbeddingFromPYTHIATask.cxx.

Bool_t AliJetEmbeddingFromPYTHIATask::GetNextEntry ( )
protectedvirtual

Reimplemented from AliJetEmbeddingFromAODTask.

Definition at line 141 of file AliJetEmbeddingFromPYTHIATask.cxx.

TFile * AliJetEmbeddingFromPYTHIATask::GetNextFile ( )
protectedvirtual

Reimplemented from AliJetEmbeddingFromAODTask.

Definition at line 210 of file AliJetEmbeddingFromPYTHIATask.cxx.

Int_t AliJetEmbeddingFromPYTHIATask::GetRandomPtHardBin ( )
protected

Definition at line 162 of file AliJetEmbeddingFromPYTHIATask.cxx.

Referenced by GetNextEntry(), and GetNextFile().

AliJetEmbeddingFromPYTHIATask& AliJetEmbeddingFromPYTHIATask::operator= ( const AliJetEmbeddingFromPYTHIATask )
private
void AliJetEmbeddingFromPYTHIATask::SetAnchorRun ( Int_t  r)
inline

Definition at line 30 of file AliJetEmbeddingFromPYTHIATask.h.

void AliJetEmbeddingFromPYTHIATask::SetDebugEmbedding ( Bool_t  d = kTRUE)
inline

Definition at line 35 of file AliJetEmbeddingFromPYTHIATask.h.

void AliJetEmbeddingFromPYTHIATask::SetFileTable ( THashTable *  t)
inline

Definition at line 32 of file AliJetEmbeddingFromPYTHIATask.h.

void AliJetEmbeddingFromPYTHIATask::SetLHC11hAnchorRuns ( Bool_t  a = kTRUE)
inline

Definition at line 31 of file AliJetEmbeddingFromPYTHIATask.h.

void AliJetEmbeddingFromPYTHIATask::SetMinEntriesPerPtHardBin ( Int_t  r)
inline

Definition at line 34 of file AliJetEmbeddingFromPYTHIATask.h.

void AliJetEmbeddingFromPYTHIATask::SetPtHardBinScaling ( Int_t  n,
Double_t scaling 
)
inline

Definition at line 29 of file AliJetEmbeddingFromPYTHIATask.h.

void AliJetEmbeddingFromPYTHIATask::SetPYTHIAPath ( const char *  p)
inline

Definition at line 28 of file AliJetEmbeddingFromPYTHIATask.h.

void AliJetEmbeddingFromPYTHIATask::SetUseAsVetoTable ( Bool_t  v)
inline

Definition at line 33 of file AliJetEmbeddingFromPYTHIATask.h.

void AliJetEmbeddingFromPYTHIATask::UserCreateOutputObjects ( )

Definition at line 77 of file AliJetEmbeddingFromPYTHIATask.cxx.

Bool_t AliJetEmbeddingFromPYTHIATask::UserNotify ( )

Definition at line 184 of file AliJetEmbeddingFromPYTHIATask.cxx.

Member Data Documentation

Int_t AliJetEmbeddingFromPYTHIATask::fAnchorRun
protected

Definition at line 46 of file AliJetEmbeddingFromPYTHIATask.h.

Referenced by GetNextFile(), SetAnchorRun(), and UserNotify().

Int_t AliJetEmbeddingFromPYTHIATask::fCurrentPtHardBin
protected

Definition at line 50 of file AliJetEmbeddingFromPYTHIATask.h.

Referenced by GetNextEntry(), and GetNextFile().

Bool_t AliJetEmbeddingFromPYTHIATask::fDebugEmbedding
protected

Number of event embedded from the current pt hard bin.

Definition at line 53 of file AliJetEmbeddingFromPYTHIATask.h.

Referenced by GetNextFile(), and SetDebugEmbedding().

THashTable* AliJetEmbeddingFromPYTHIATask::fFileTable
protected

Definition at line 47 of file AliJetEmbeddingFromPYTHIATask.h.

Referenced by GetNextFile(), and SetFileTable().

TH1* AliJetEmbeddingFromPYTHIATask::fHistPtHardBins
protected

Definition at line 55 of file AliJetEmbeddingFromPYTHIATask.h.

Referenced by GetNextEntry(), and UserCreateOutputObjects().

Bool_t AliJetEmbeddingFromPYTHIATask::fLHC11hAnchorRun
protected

Definition at line 45 of file AliJetEmbeddingFromPYTHIATask.h.

Referenced by SetLHC11hAnchorRuns(), and UserNotify().

Int_t AliJetEmbeddingFromPYTHIATask::fMinEntriesPerPtHardBin
protected
Int_t AliJetEmbeddingFromPYTHIATask::fPtHardBinCount
protected

Pt hard bin param.

Definition at line 52 of file AliJetEmbeddingFromPYTHIATask.h.

Referenced by GetNextEntry().

TParameter<int>* AliJetEmbeddingFromPYTHIATask::fPtHardBinParam
protected

Pt hard bin of the current open file.

Definition at line 51 of file AliJetEmbeddingFromPYTHIATask.h.

Referenced by ExecOnce(), GetNextEntry(), and GetNextFile().

TArrayD AliJetEmbeddingFromPYTHIATask::fPtHardBinScaling
protected
TString AliJetEmbeddingFromPYTHIATask::fPYTHIAPath
protected

Definition at line 43 of file AliJetEmbeddingFromPYTHIATask.h.

Referenced by GetNextFile(), and SetPYTHIAPath().

Bool_t AliJetEmbeddingFromPYTHIATask::fUseAsVetoTable
protected

Definition at line 48 of file AliJetEmbeddingFromPYTHIATask.h.

Referenced by GetNextFile(), and SetUseAsVetoTable().


The documentation for this class was generated from the following files: