AliPhysics  master (3d17d9d)
PWGJE::EMCALJetTasks::AliAnalysisTaskPythiaBranchEA Class Reference

#include <AliAnalysisTaskPythiaBranchEA.h>

Inheritance diagram for PWGJE::EMCALJetTasks::AliAnalysisTaskPythiaBranchEA:

Public Member Functions

 AliAnalysisTaskPythiaBranchEA ()
 
 AliAnalysisTaskPythiaBranchEA (const char *name)
 
virtual ~AliAnalysisTaskPythiaBranchEA ()
 
void UserCreateOutputObjects ()
 
void UserExec (Option_t *option)
 
void ExecOnce ()
 
void Run ()
 
void FillHistograms ()
 
void Terminate (Option_t *)
 
void CreateNewObjectBranch ()
 
void SetOutputCollectionName (std::string name)
 
void SetMinEta (Int_t d)
 
void SetMaxEta (Int_t d)
 
void SetPythiaFilePath (const char *pyfile)
 
void SetPythiaFileMask (const char *pyfilemask)
 
void SetNFiles (Int_t n)
 
void GetNewPythiaFile ()
 
Bool_t PassedDetectorEfficiency (Float_t pt)
 
Float_t SmearPt (Float_t pt)
 
void SetMomentumSmearingFile (const char *path, const char *file)
 
void ReadMomentumSmearingFile ()
 

Static Public Member Functions

static AliAnalysisTaskPythiaBranchEAAddTaskPythiaBranchEA (const char *outputName="pyparticles", const char *pyfilepath="", const char *pyfilemask="", const char *suffix="")
 

Protected Attributes

bool fEventInitialized
 If the event is initialized properly. More...
 
AliVEvent * fEvent
 ! Pointer to the current event More...
 
TRandom3 fRandom
 ! Random number generator More...
 
std::string fOutputCollectionName
 Name of TClonesArray output the thermal particles to the event. More...
 
TClonesArray * fThermalParticlesArray
 ! Thermal particle collection More...
 
Double_t fMinEta
 Min eta for thermal particles. More...
 
Double_t fMaxEta
 Max eta for thermal particles. More...
 
TString fPyFilePath
 Path to PYTHIA text file. More...
 
TString fPyFileMask
 Mask of PYTHIA text file. More...
 
TString fPyFileName
 Mask of PYTHIA text file. More...
 
TString fPyFile
 Mask of PYTHIA text file. More...
 
Int_t fNumber
 ! Random number More...
 
Int_t fNfiles
 Number of files. More...
 
Bool_t fEffMomSmear
 Apply efficiency and momentum smearing to PYTHIA. More...
 
TH1DfhSigmaPt [100]
 ! sigma_1/pt / 1/pt from covariance matrix More...
 
TString fMomSmearFilePath
 Path to momentum smeaing root file. More...
 
TString fMomSmearFileName
 momentum smeaing root file name More...
 
TFile * fMomSmearingFile
 ! momentum smearing file More...
 
TListfOutput
 ! Output for histograms More...
 
THistManager fHistManager
 Histogram manager. More...
 
FILE * fInput
 ! PYTHIA txt file More...
 

Private Member Functions

 AliAnalysisTaskPythiaBranchEA (const AliAnalysisTaskPythiaBranchEA &)
 
AliAnalysisTaskPythiaBranchEAoperator= (const AliAnalysisTaskPythiaBranchEA &)
 

Detailed Description

Definition at line 54 of file AliAnalysisTaskPythiaBranchEA.h.

Constructor & Destructor Documentation

AliAnalysisTaskPythiaBranchEA::AliAnalysisTaskPythiaBranchEA ( )

Default constructor. Needed by ROOT I/O

Definition at line 54 of file AliAnalysisTaskPythiaBranchEA.cxx.

Referenced by AddTaskPythiaBranchEA().

AliAnalysisTaskPythiaBranchEA::AliAnalysisTaskPythiaBranchEA ( const char *  name)

Standard constructor. Should be used by the user.

Parameters
[in]nameName of the task

Definition at line 82 of file AliAnalysisTaskPythiaBranchEA.cxx.

AliAnalysisTaskPythiaBranchEA::~AliAnalysisTaskPythiaBranchEA ( )
virtual

Destructor

Definition at line 111 of file AliAnalysisTaskPythiaBranchEA.cxx.

PWGJE::EMCALJetTasks::AliAnalysisTaskPythiaBranchEA::AliAnalysisTaskPythiaBranchEA ( const AliAnalysisTaskPythiaBranchEA )
private

Member Function Documentation

AliAnalysisTaskPythiaBranchEA * AliAnalysisTaskPythiaBranchEA::AddTaskPythiaBranchEA ( const char *  outputCollectionName = "pyparticles",
const char *  pyfilepath = "",
const char *  pyfilemask = "",
const char *  suffix = "" 
)
static

AddTask.

Definition at line 375 of file AliAnalysisTaskPythiaBranchEA.cxx.

void AliAnalysisTaskPythiaBranchEA::CreateNewObjectBranch ( )

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

Definition at line 219 of file AliAnalysisTaskPythiaBranchEA.cxx.

Referenced by ExecOnce().

void AliAnalysisTaskPythiaBranchEA::ExecOnce ( )

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

Definition at line 196 of file AliAnalysisTaskPythiaBranchEA.cxx.

Referenced by UserExec().

void AliAnalysisTaskPythiaBranchEA::FillHistograms ( )

Loop over particles to fill histograms.

Definition at line 351 of file AliAnalysisTaskPythiaBranchEA.cxx.

Referenced by UserExec().

void AliAnalysisTaskPythiaBranchEA::GetNewPythiaFile ( )

This function will open new pythia text file

Definition at line 168 of file AliAnalysisTaskPythiaBranchEA.cxx.

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

AliAnalysisTaskPythiaBranchEA& PWGJE::EMCALJetTasks::AliAnalysisTaskPythiaBranchEA::operator= ( const AliAnalysisTaskPythiaBranchEA )
private
Bool_t AliAnalysisTaskPythiaBranchEA::PassedDetectorEfficiency ( Float_t  pt)

Track reconstruction efficiency

Definition at line 458 of file AliAnalysisTaskPythiaBranchEA.cxx.

Referenced by Run(), and SetNFiles().

void AliAnalysisTaskPythiaBranchEA::ReadMomentumSmearingFile ( )

Read parameters for momentum smearing

Definition at line 239 of file AliAnalysisTaskPythiaBranchEA.cxx.

Referenced by ExecOnce(), and SetMomentumSmearingFile().

void AliAnalysisTaskPythiaBranchEA::Run ( )

Run analysis code here.

Definition at line 290 of file AliAnalysisTaskPythiaBranchEA.cxx.

Referenced by UserExec().

void PWGJE::EMCALJetTasks::AliAnalysisTaskPythiaBranchEA::SetMaxEta ( Int_t  d)
inline

Definition at line 83 of file AliAnalysisTaskPythiaBranchEA.h.

void PWGJE::EMCALJetTasks::AliAnalysisTaskPythiaBranchEA::SetMinEta ( Int_t  d)
inline

Definition at line 82 of file AliAnalysisTaskPythiaBranchEA.h.

void PWGJE::EMCALJetTasks::AliAnalysisTaskPythiaBranchEA::SetMomentumSmearingFile ( const char *  path,
const char *  file 
)
inline

Definition at line 93 of file AliAnalysisTaskPythiaBranchEA.h.

void PWGJE::EMCALJetTasks::AliAnalysisTaskPythiaBranchEA::SetNFiles ( Int_t  n)
inline

Definition at line 87 of file AliAnalysisTaskPythiaBranchEA.h.

void PWGJE::EMCALJetTasks::AliAnalysisTaskPythiaBranchEA::SetOutputCollectionName ( std::string  name)
inline

Definition at line 79 of file AliAnalysisTaskPythiaBranchEA.h.

Referenced by AddTaskPythiaBranchEA().

void PWGJE::EMCALJetTasks::AliAnalysisTaskPythiaBranchEA::SetPythiaFileMask ( const char *  pyfilemask)
inline

Definition at line 86 of file AliAnalysisTaskPythiaBranchEA.h.

Referenced by AddTaskPythiaBranchEA().

void PWGJE::EMCALJetTasks::AliAnalysisTaskPythiaBranchEA::SetPythiaFilePath ( const char *  pyfile)
inline

Definition at line 85 of file AliAnalysisTaskPythiaBranchEA.h.

Referenced by AddTaskPythiaBranchEA().

Float_t AliAnalysisTaskPythiaBranchEA::SmearPt ( Float_t  pt)

Smear Pt

Definition at line 491 of file AliAnalysisTaskPythiaBranchEA.cxx.

Referenced by Run(), and SetNFiles().

void AliAnalysisTaskPythiaBranchEA::Terminate ( Option_t )

Terminate clean up

Definition at line 529 of file AliAnalysisTaskPythiaBranchEA.cxx.

void AliAnalysisTaskPythiaBranchEA::UserCreateOutputObjects ( )

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

Definition at line 116 of file AliAnalysisTaskPythiaBranchEA.cxx.

void AliAnalysisTaskPythiaBranchEA::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 267 of file AliAnalysisTaskPythiaBranchEA.cxx.

Member Data Documentation

Bool_t PWGJE::EMCALJetTasks::AliAnalysisTaskPythiaBranchEA::fEffMomSmear
protected

Apply efficiency and momentum smearing to PYTHIA.

Definition at line 122 of file AliAnalysisTaskPythiaBranchEA.h.

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

AliVEvent* PWGJE::EMCALJetTasks::AliAnalysisTaskPythiaBranchEA::fEvent
protected

! Pointer to the current event

Definition at line 103 of file AliAnalysisTaskPythiaBranchEA.h.

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

bool PWGJE::EMCALJetTasks::AliAnalysisTaskPythiaBranchEA::fEventInitialized
protected

If the event is initialized properly.

Definition at line 102 of file AliAnalysisTaskPythiaBranchEA.h.

Referenced by ExecOnce(), and UserExec().

THistManager PWGJE::EMCALJetTasks::AliAnalysisTaskPythiaBranchEA::fHistManager
protected

Histogram manager.

Definition at line 132 of file AliAnalysisTaskPythiaBranchEA.h.

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

TH1D* PWGJE::EMCALJetTasks::AliAnalysisTaskPythiaBranchEA::fhSigmaPt[100]
protected

! sigma_1/pt / 1/pt from covariance matrix

Definition at line 123 of file AliAnalysisTaskPythiaBranchEA.h.

Referenced by ReadMomentumSmearingFile(), and SmearPt().

FILE* PWGJE::EMCALJetTasks::AliAnalysisTaskPythiaBranchEA::fInput
protected

! PYTHIA txt file

Definition at line 133 of file AliAnalysisTaskPythiaBranchEA.h.

Referenced by GetNewPythiaFile(), Run(), and Terminate().

Double_t PWGJE::EMCALJetTasks::AliAnalysisTaskPythiaBranchEA::fMaxEta
protected

Max eta for thermal particles.

Definition at line 114 of file AliAnalysisTaskPythiaBranchEA.h.

Referenced by Run(), and SetMaxEta().

Double_t PWGJE::EMCALJetTasks::AliAnalysisTaskPythiaBranchEA::fMinEta
protected

Min eta for thermal particles.

Definition at line 113 of file AliAnalysisTaskPythiaBranchEA.h.

Referenced by Run(), and SetMinEta().

TString PWGJE::EMCALJetTasks::AliAnalysisTaskPythiaBranchEA::fMomSmearFileName
protected

momentum smeaing root file name

Definition at line 125 of file AliAnalysisTaskPythiaBranchEA.h.

Referenced by ReadMomentumSmearingFile(), and SetMomentumSmearingFile().

TString PWGJE::EMCALJetTasks::AliAnalysisTaskPythiaBranchEA::fMomSmearFilePath
protected

Path to momentum smeaing root file.

Definition at line 124 of file AliAnalysisTaskPythiaBranchEA.h.

Referenced by ReadMomentumSmearingFile(), and SetMomentumSmearingFile().

TFile* PWGJE::EMCALJetTasks::AliAnalysisTaskPythiaBranchEA::fMomSmearingFile
protected

! momentum smearing file

Definition at line 126 of file AliAnalysisTaskPythiaBranchEA.h.

Referenced by ReadMomentumSmearingFile(), and Terminate().

Int_t PWGJE::EMCALJetTasks::AliAnalysisTaskPythiaBranchEA::fNfiles
protected

Number of files.

Definition at line 121 of file AliAnalysisTaskPythiaBranchEA.h.

Referenced by GetNewPythiaFile(), and SetNFiles().

Int_t PWGJE::EMCALJetTasks::AliAnalysisTaskPythiaBranchEA::fNumber
protected

! Random number

Definition at line 120 of file AliAnalysisTaskPythiaBranchEA.h.

Referenced by GetNewPythiaFile().

TList* PWGJE::EMCALJetTasks::AliAnalysisTaskPythiaBranchEA::fOutput
protected

! Output for histograms

Definition at line 131 of file AliAnalysisTaskPythiaBranchEA.h.

Referenced by UserCreateOutputObjects().

std::string PWGJE::EMCALJetTasks::AliAnalysisTaskPythiaBranchEA::fOutputCollectionName
protected

Name of TClonesArray output the thermal particles to the event.

Definition at line 109 of file AliAnalysisTaskPythiaBranchEA.h.

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

TString PWGJE::EMCALJetTasks::AliAnalysisTaskPythiaBranchEA::fPyFile
protected

Mask of PYTHIA text file.

Definition at line 119 of file AliAnalysisTaskPythiaBranchEA.h.

Referenced by GetNewPythiaFile().

TString PWGJE::EMCALJetTasks::AliAnalysisTaskPythiaBranchEA::fPyFileMask
protected

Mask of PYTHIA text file.

Definition at line 117 of file AliAnalysisTaskPythiaBranchEA.h.

Referenced by GetNewPythiaFile(), and SetPythiaFileMask().

TString PWGJE::EMCALJetTasks::AliAnalysisTaskPythiaBranchEA::fPyFileName
protected

Mask of PYTHIA text file.

Definition at line 118 of file AliAnalysisTaskPythiaBranchEA.h.

Referenced by GetNewPythiaFile(), Run(), and Terminate().

TString PWGJE::EMCALJetTasks::AliAnalysisTaskPythiaBranchEA::fPyFilePath
protected

Path to PYTHIA text file.

Definition at line 116 of file AliAnalysisTaskPythiaBranchEA.h.

Referenced by GetNewPythiaFile(), and SetPythiaFilePath().

TRandom3 PWGJE::EMCALJetTasks::AliAnalysisTaskPythiaBranchEA::fRandom
protected

! Random number generator

Definition at line 104 of file AliAnalysisTaskPythiaBranchEA.h.

Referenced by ExecOnce(), GetNewPythiaFile(), PassedDetectorEfficiency(), and SmearPt().

TClonesArray* PWGJE::EMCALJetTasks::AliAnalysisTaskPythiaBranchEA::fThermalParticlesArray
protected

! Thermal particle collection

Definition at line 110 of file AliAnalysisTaskPythiaBranchEA.h.

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


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