AliPhysics  c7b8e89 (c7b8e89)
AliAnalysisTaskGenerateThermalBackgroundMC Class Reference

#include <AliAnalysisTaskGenerateThermalBackgroundMC.h>

Inheritance diagram for AliAnalysisTaskGenerateThermalBackgroundMC:

Public Member Functions

 AliAnalysisTaskGenerateThermalBackgroundMC ()
 
 AliAnalysisTaskGenerateThermalBackgroundMC (const char *name)
 
virtual ~AliAnalysisTaskGenerateThermalBackgroundMC ()
 
void UserCreateOutputObjects ()
 
void UserExec (Option_t *option)
 
void ExecOnce ()
 
void Run ()
 
void FillHistograms ()
 
void CreateNewObjectBranch ()
 
Double_t GetDeltaR (Double_t eta, Double_t phi, Double_t etaRef, Double_t phiRef)
 
void SetOutputCollectionName (std::string name)
 
void SetChargedParticleFraction (Double_t d)
 
void SetAlpha (Double_t d)
 
void SetBeta (Double_t d)
 
void SetMinChargedPt (Int_t d)
 
void SetMinNeutralPt (Int_t d)
 
void SetMaxPt (Int_t d)
 
void SetUseGaussianForN (bool b)
 
void SetNGaussianMean (Double_t d)
 
void SetNGaussianSigma (Double_t d)
 
void SetMinN (Int_t d)
 
void SetMaxN (Int_t d)
 
void SetMinEta (Int_t d)
 
void SetMaxEta (Int_t d)
 

Static Public Member Functions

static AliAnalysisTaskGenerateThermalBackgroundMCAddTaskGenerateThermalBackgroundMC (const char *outputName="thermalparticles", const Double_t beta=0.3, const char *suffix="")
 

Protected Attributes

bool fEventInitialized
 If the event is initialized properly. More...
 
AliVEvent * fEvent
 ! Pointer to the current event More...
 
std::string fOutputCollectionName
 Name of TClonesArray output the thermal particles to the event. More...
 
TClonesArray * fThermalParticlesArray
 ! Thermal particle collection More...
 
Double_t fChargedParticleFraction
 Fraction of thermal particles set to have nonzero charge. More...
 
TRandom3 fRandom
 ! Random number generator More...
 
TF1 * fPtDistribution
 ! Distribution to sample particle pT from More...
 
Double_t fAlpha
 Value of a in the gamma distribution f_gamma ~ x^(a-1) * e^(-x/b) More...
 
Double_t fBeta
 Value of b in the gamma distribution f_gamma ~ x^(a-1) * e^(-x/b) More...
 
Double_t fMinChargedPt
 Min pT of charged thermal particles. More...
 
Double_t fMinNeutralPt
 Min pT of neutral thermal particles. More...
 
Double_t fMaxPt
 Max pT of thermal particles. More...
 
bool fUseGaussianForN
 Use a Gaussian for number of particles per event. Otherwise, use flat distribution. More...
 
Double_t fNGaussianMean
 Mean of Gaussian (if enabled) More...
 
Double_t fNGaussianSigma
 Sigma of Gaussian (if enabled) More...
 
Int_t fMinN
 Min number of particles in thermal model (for flat distribution) More...
 
Int_t fMaxN
 Max number of particles in thermal model (for flat distribution) More...
 
Double_t fMinEta
 Min eta for thermal particles. More...
 
Double_t fMaxEta
 Max eta for thermal particles. More...
 
TListfOutput
 ! Output for histograms More...
 
THistManager fHistManager
 Histogram manager. More...
 

Private Member Functions

 AliAnalysisTaskGenerateThermalBackgroundMC (const AliAnalysisTaskGenerateThermalBackgroundMC &)
 
AliAnalysisTaskGenerateThermalBackgroundMCoperator= (const AliAnalysisTaskGenerateThermalBackgroundMC &)
 

Detailed Description

Definition at line 47 of file AliAnalysisTaskGenerateThermalBackgroundMC.h.

Constructor & Destructor Documentation

AliAnalysisTaskGenerateThermalBackgroundMC::AliAnalysisTaskGenerateThermalBackgroundMC ( )

Default constructor. Needed by ROOT I/O

Definition at line 47 of file AliAnalysisTaskGenerateThermalBackgroundMC.cxx.

Referenced by AddTaskGenerateThermalBackgroundMC().

AliAnalysisTaskGenerateThermalBackgroundMC::AliAnalysisTaskGenerateThermalBackgroundMC ( const char *  name)

Standard constructor. Should be used by the user.

Parameters
[in]nameName of the task

Definition at line 76 of file AliAnalysisTaskGenerateThermalBackgroundMC.cxx.

AliAnalysisTaskGenerateThermalBackgroundMC::~AliAnalysisTaskGenerateThermalBackgroundMC ( )
virtual

Destructor

Definition at line 106 of file AliAnalysisTaskGenerateThermalBackgroundMC.cxx.

AliAnalysisTaskGenerateThermalBackgroundMC::AliAnalysisTaskGenerateThermalBackgroundMC ( const AliAnalysisTaskGenerateThermalBackgroundMC )
private

Member Function Documentation

AliAnalysisTaskGenerateThermalBackgroundMC * AliAnalysisTaskGenerateThermalBackgroundMC::AddTaskGenerateThermalBackgroundMC ( const char *  outputCollectionName = "thermalparticles",
const Double_t  beta = 0.3,
const char *  suffix = "" 
)
static

AddTask.

Definition at line 376 of file AliAnalysisTaskGenerateThermalBackgroundMC.cxx.

void AliAnalysisTaskGenerateThermalBackgroundMC::CreateNewObjectBranch ( )

Steers creation of a new collection in the event. Adapted from AliEmcalCopyCollection.

Definition at line 202 of file AliAnalysisTaskGenerateThermalBackgroundMC.cxx.

Referenced by ExecOnce().

void AliAnalysisTaskGenerateThermalBackgroundMC::ExecOnce ( )

This function is executed automatically for the first event. Some extra initialization can be performed here.

Definition at line 181 of file AliAnalysisTaskGenerateThermalBackgroundMC.cxx.

Referenced by UserExec().

void AliAnalysisTaskGenerateThermalBackgroundMC::FillHistograms ( )

Loop over particles to fill histograms.

Definition at line 291 of file AliAnalysisTaskGenerateThermalBackgroundMC.cxx.

Referenced by UserExec().

Double_t AliAnalysisTaskGenerateThermalBackgroundMC::GetDeltaR ( Double_t  eta,
Double_t  phi,
Double_t  etaRef,
Double_t  phiRef 
)

Get deltaR between two points in eta/phi.

Definition at line 365 of file AliAnalysisTaskGenerateThermalBackgroundMC.cxx.

Referenced by FillHistograms().

AliAnalysisTaskGenerateThermalBackgroundMC& AliAnalysisTaskGenerateThermalBackgroundMC::operator= ( const AliAnalysisTaskGenerateThermalBackgroundMC )
private
void AliAnalysisTaskGenerateThermalBackgroundMC::Run ( )

Run analysis code here.

Definition at line 242 of file AliAnalysisTaskGenerateThermalBackgroundMC.cxx.

Referenced by UserExec().

void AliAnalysisTaskGenerateThermalBackgroundMC::SetAlpha ( Double_t  d)
inline

Definition at line 74 of file AliAnalysisTaskGenerateThermalBackgroundMC.h.

void AliAnalysisTaskGenerateThermalBackgroundMC::SetBeta ( Double_t  d)
inline
void AliAnalysisTaskGenerateThermalBackgroundMC::SetChargedParticleFraction ( Double_t  d)
inline

Definition at line 72 of file AliAnalysisTaskGenerateThermalBackgroundMC.h.

void AliAnalysisTaskGenerateThermalBackgroundMC::SetMaxEta ( Int_t  d)
inline

Definition at line 87 of file AliAnalysisTaskGenerateThermalBackgroundMC.h.

void AliAnalysisTaskGenerateThermalBackgroundMC::SetMaxN ( Int_t  d)
inline

Definition at line 84 of file AliAnalysisTaskGenerateThermalBackgroundMC.h.

void AliAnalysisTaskGenerateThermalBackgroundMC::SetMaxPt ( Int_t  d)
inline

Definition at line 78 of file AliAnalysisTaskGenerateThermalBackgroundMC.h.

void AliAnalysisTaskGenerateThermalBackgroundMC::SetMinChargedPt ( Int_t  d)
inline

Definition at line 76 of file AliAnalysisTaskGenerateThermalBackgroundMC.h.

void AliAnalysisTaskGenerateThermalBackgroundMC::SetMinEta ( Int_t  d)
inline

Definition at line 86 of file AliAnalysisTaskGenerateThermalBackgroundMC.h.

void AliAnalysisTaskGenerateThermalBackgroundMC::SetMinN ( Int_t  d)
inline

Definition at line 83 of file AliAnalysisTaskGenerateThermalBackgroundMC.h.

void AliAnalysisTaskGenerateThermalBackgroundMC::SetMinNeutralPt ( Int_t  d)
inline

Definition at line 77 of file AliAnalysisTaskGenerateThermalBackgroundMC.h.

void AliAnalysisTaskGenerateThermalBackgroundMC::SetNGaussianMean ( Double_t  d)
inline

Definition at line 81 of file AliAnalysisTaskGenerateThermalBackgroundMC.h.

void AliAnalysisTaskGenerateThermalBackgroundMC::SetNGaussianSigma ( Double_t  d)
inline

Definition at line 82 of file AliAnalysisTaskGenerateThermalBackgroundMC.h.

void AliAnalysisTaskGenerateThermalBackgroundMC::SetOutputCollectionName ( std::string  name)
inline
void AliAnalysisTaskGenerateThermalBackgroundMC::SetUseGaussianForN ( bool  b)
inline

Definition at line 80 of file AliAnalysisTaskGenerateThermalBackgroundMC.h.

void AliAnalysisTaskGenerateThermalBackgroundMC::UserCreateOutputObjects ( )

Performing run-independent initialization. Here the histograms should be instantiated.

Definition at line 111 of file AliAnalysisTaskGenerateThermalBackgroundMC.cxx.

void AliAnalysisTaskGenerateThermalBackgroundMC::UserExec ( Option_t option)

Steers each event. It enforces that the event is initialized before executing the main analysis of the event.

Definition at line 219 of file AliAnalysisTaskGenerateThermalBackgroundMC.cxx.

Member Data Documentation

Double_t AliAnalysisTaskGenerateThermalBackgroundMC::fAlpha
protected

Value of a in the gamma distribution f_gamma ~ x^(a-1) * e^(-x/b)

Definition at line 105 of file AliAnalysisTaskGenerateThermalBackgroundMC.h.

Referenced by SetAlpha(), and UserCreateOutputObjects().

Double_t AliAnalysisTaskGenerateThermalBackgroundMC::fBeta
protected

Value of b in the gamma distribution f_gamma ~ x^(a-1) * e^(-x/b)

Definition at line 106 of file AliAnalysisTaskGenerateThermalBackgroundMC.h.

Referenced by SetBeta(), and UserCreateOutputObjects().

Double_t AliAnalysisTaskGenerateThermalBackgroundMC::fChargedParticleFraction
protected

Fraction of thermal particles set to have nonzero charge.

Definition at line 100 of file AliAnalysisTaskGenerateThermalBackgroundMC.h.

Referenced by Run(), and SetChargedParticleFraction().

AliVEvent* AliAnalysisTaskGenerateThermalBackgroundMC::fEvent
protected

! Pointer to the current event

Definition at line 92 of file AliAnalysisTaskGenerateThermalBackgroundMC.h.

Referenced by CreateNewObjectBranch(), ExecOnce(), and Run().

bool AliAnalysisTaskGenerateThermalBackgroundMC::fEventInitialized
protected

If the event is initialized properly.

Definition at line 91 of file AliAnalysisTaskGenerateThermalBackgroundMC.h.

Referenced by ExecOnce(), and UserExec().

THistManager AliAnalysisTaskGenerateThermalBackgroundMC::fHistManager
protected

Histogram manager.

Definition at line 126 of file AliAnalysisTaskGenerateThermalBackgroundMC.h.

Referenced by FillHistograms(), and UserCreateOutputObjects().

Double_t AliAnalysisTaskGenerateThermalBackgroundMC::fMaxEta
protected

Max eta for thermal particles.

Definition at line 120 of file AliAnalysisTaskGenerateThermalBackgroundMC.h.

Referenced by FillHistograms(), Run(), and SetMaxEta().

Int_t AliAnalysisTaskGenerateThermalBackgroundMC::fMaxN
protected

Max number of particles in thermal model (for flat distribution)

Definition at line 116 of file AliAnalysisTaskGenerateThermalBackgroundMC.h.

Referenced by CreateNewObjectBranch(), Run(), SetMaxN(), and UserCreateOutputObjects().

Double_t AliAnalysisTaskGenerateThermalBackgroundMC::fMaxPt
protected

Max pT of thermal particles.

Definition at line 109 of file AliAnalysisTaskGenerateThermalBackgroundMC.h.

Referenced by SetMaxPt(), and UserCreateOutputObjects().

Double_t AliAnalysisTaskGenerateThermalBackgroundMC::fMinChargedPt
protected

Min pT of charged thermal particles.

Definition at line 107 of file AliAnalysisTaskGenerateThermalBackgroundMC.h.

Referenced by Run(), SetMinChargedPt(), and UserCreateOutputObjects().

Double_t AliAnalysisTaskGenerateThermalBackgroundMC::fMinEta
protected

Min eta for thermal particles.

Definition at line 119 of file AliAnalysisTaskGenerateThermalBackgroundMC.h.

Referenced by FillHistograms(), Run(), and SetMinEta().

Int_t AliAnalysisTaskGenerateThermalBackgroundMC::fMinN
protected

Min number of particles in thermal model (for flat distribution)

Definition at line 115 of file AliAnalysisTaskGenerateThermalBackgroundMC.h.

Referenced by Run(), SetMinN(), and UserCreateOutputObjects().

Double_t AliAnalysisTaskGenerateThermalBackgroundMC::fMinNeutralPt
protected

Min pT of neutral thermal particles.

Definition at line 108 of file AliAnalysisTaskGenerateThermalBackgroundMC.h.

Referenced by Run(), SetMinNeutralPt(), and UserCreateOutputObjects().

Double_t AliAnalysisTaskGenerateThermalBackgroundMC::fNGaussianMean
protected

Mean of Gaussian (if enabled)

Definition at line 113 of file AliAnalysisTaskGenerateThermalBackgroundMC.h.

Referenced by Run(), SetNGaussianMean(), and UserCreateOutputObjects().

Double_t AliAnalysisTaskGenerateThermalBackgroundMC::fNGaussianSigma
protected

Sigma of Gaussian (if enabled)

Definition at line 114 of file AliAnalysisTaskGenerateThermalBackgroundMC.h.

Referenced by Run(), SetNGaussianSigma(), and UserCreateOutputObjects().

TList* AliAnalysisTaskGenerateThermalBackgroundMC::fOutput
protected

! Output for histograms

Definition at line 125 of file AliAnalysisTaskGenerateThermalBackgroundMC.h.

Referenced by UserCreateOutputObjects().

std::string AliAnalysisTaskGenerateThermalBackgroundMC::fOutputCollectionName
protected

Name of TClonesArray output the thermal particles to the event.

Definition at line 98 of file AliAnalysisTaskGenerateThermalBackgroundMC.h.

Referenced by CreateNewObjectBranch(), Run(), and SetOutputCollectionName().

TF1* AliAnalysisTaskGenerateThermalBackgroundMC::fPtDistribution
protected

! Distribution to sample particle pT from

Definition at line 104 of file AliAnalysisTaskGenerateThermalBackgroundMC.h.

Referenced by Run(), and UserCreateOutputObjects().

TRandom3 AliAnalysisTaskGenerateThermalBackgroundMC::fRandom
protected

! Random number generator

Definition at line 101 of file AliAnalysisTaskGenerateThermalBackgroundMC.h.

Referenced by ExecOnce(), FillHistograms(), and Run().

TClonesArray* AliAnalysisTaskGenerateThermalBackgroundMC::fThermalParticlesArray
protected

! Thermal particle collection

Definition at line 99 of file AliAnalysisTaskGenerateThermalBackgroundMC.h.

Referenced by CreateNewObjectBranch(), FillHistograms(), and Run().

bool AliAnalysisTaskGenerateThermalBackgroundMC::fUseGaussianForN
protected

Use a Gaussian for number of particles per event. Otherwise, use flat distribution.

Definition at line 112 of file AliAnalysisTaskGenerateThermalBackgroundMC.h.

Referenced by Run(), SetUseGaussianForN(), and UserCreateOutputObjects().


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