AliPhysics  master (3d17d9d)
AliNanoAODArrayMaker Class Reference

creates input arrays for the analysis from NanoAODs More...

#include <AliNanoAODArrayMaker.h>

Inheritance diagram for AliNanoAODArrayMaker:

Public Member Functions

 AliNanoAODArrayMaker ()
 
 AliNanoAODArrayMaker (const char *name)
 
virtual ~AliNanoAODArrayMaker ()
 
virtual void UserCreateOutputObjects ()
 
virtual void UserExec (Option_t *option)
 
virtual void Terminate (Option_t *)
 
void SetOutputArrayName (const char *name)
 
void SetOutputArrayPythiaName (const char *name)
 
void SetOutputArrayDataName (const char *name)
 
void SetTrackEfficiencyPythia (Double_t val)
 
void SetTrackEfficiencyData (Double_t val)
 
void GetAODTrack (AliAODTrack *newTrack, AliNanoAODTrack *track, Int_t index=-1)
 

Private Member Functions

 AliNanoAODArrayMaker (const AliNanoAODArrayMaker &)
 
AliNanoAODArrayMakeroperator= (const AliNanoAODArrayMaker &)
 not implemented More...
 

Private Attributes

Bool_t fIsFirstLoop
 
TString fOutputArrayName
 describes if this is the first event loop More...
 
TClonesArray * fOutputArray
 name of the output array with all particles More...
 
TString fOutputArrayPythiaName
 
TClonesArray * fPythiaArray
 name of the output array with pythia particles More...
 
TString fOutputArrayDataName
 
TClonesArray * fDataArray
 name of the output array with data particles More...
 
Double_t fTrackEffPythia
 
Double_t fTrackEffData
 artificial tracking efficiency modification for PYTHIA particles More...
 
TRandom3 * fRandom
 artificial tracking efficiency modification for data particles More...
 
TListfOutputList
 

Detailed Description

creates input arrays for the analysis from NanoAODs

The class converts the nanoAOD information into the standard arrays which are used in the PWGJE EMCAL analysis this includes embedded tracks in measured events

Author
M.Zimmermann

Definition at line 19 of file AliNanoAODArrayMaker.h.

Constructor & Destructor Documentation

AliNanoAODArrayMaker::AliNanoAODArrayMaker ( )
inline

Definition at line 21 of file AliNanoAODArrayMaker.h.

AliNanoAODArrayMaker::AliNanoAODArrayMaker ( const char *  name)

Constructor

Output slot #0 id reserved by the base class for AOD Output slot #1 writes into a TH1 container

Definition at line 16 of file AliNanoAODArrayMaker.cxx.

virtual AliNanoAODArrayMaker::~AliNanoAODArrayMaker ( )
inlinevirtual

Definition at line 23 of file AliNanoAODArrayMaker.h.

AliNanoAODArrayMaker::AliNanoAODArrayMaker ( const AliNanoAODArrayMaker )
private

Member Function Documentation

void AliNanoAODArrayMaker::GetAODTrack ( AliAODTrack *  newTrack,
AliNanoAODTrack *  track,
Int_t  index = -1 
)

create AOD track from NanoAOD track with the availbable information

the same as in AliAnalysisTaskParticleRandomizer

Definition at line 127 of file AliNanoAODArrayMaker.cxx.

Referenced by SetTrackEfficiencyData(), and UserExec().

AliNanoAODArrayMaker& AliNanoAODArrayMaker::operator= ( const AliNanoAODArrayMaker )
private

not implemented

void AliNanoAODArrayMaker::SetOutputArrayDataName ( const char *  name)
inline

Definition at line 31 of file AliNanoAODArrayMaker.h.

void AliNanoAODArrayMaker::SetOutputArrayName ( const char *  name)
inline

Definition at line 29 of file AliNanoAODArrayMaker.h.

void AliNanoAODArrayMaker::SetOutputArrayPythiaName ( const char *  name)
inline

Definition at line 30 of file AliNanoAODArrayMaker.h.

void AliNanoAODArrayMaker::SetTrackEfficiencyData ( Double_t  val)
inline

Definition at line 34 of file AliNanoAODArrayMaker.h.

void AliNanoAODArrayMaker::SetTrackEfficiencyPythia ( Double_t  val)
inline

Definition at line 33 of file AliNanoAODArrayMaker.h.

void AliNanoAODArrayMaker::Terminate ( Option_t )
virtual

Called once at the end of the query

Definition at line 120 of file AliNanoAODArrayMaker.cxx.

Referenced by ~AliNanoAODArrayMaker().

void AliNanoAODArrayMaker::UserCreateOutputObjects ( )
virtual

Create arrays and set names Called once

Definition at line 27 of file AliNanoAODArrayMaker.cxx.

Referenced by ~AliNanoAODArrayMaker().

void AliNanoAODArrayMaker::UserExec ( Option_t option)
virtual

Main loop Called for each event

add dummy arrays so that the clean up for Nano AOD arrays works, this is necessary because normal AODs contain more arrays in the AOD event in the standard format. Only Arrays after these standard events will be resetted for the next AOD event. These dummy arrays ensure that the arrays added further below are properly resetted in the framework

22 is the number of entries in the standard AODs

due to the definition of the content to be dummy this array cannot be filled or deleted

find NanoAOD particle array

get custom NanoAOD variables which had to be defined in the nanoAOD generation

loop over particles in the event and add them to the correct arrays

Discard tracks due to lowered tracking efficiency

Discard tracks due to lowered tracking efficiency

Definition at line 53 of file AliNanoAODArrayMaker.cxx.

Referenced by ~AliNanoAODArrayMaker().

Member Data Documentation

TClonesArray* AliNanoAODArrayMaker::fDataArray
private

name of the output array with data particles

! output array with data particles

Definition at line 47 of file AliNanoAODArrayMaker.h.

Referenced by UserCreateOutputObjects(), and UserExec().

Bool_t AliNanoAODArrayMaker::fIsFirstLoop
private

Definition at line 39 of file AliNanoAODArrayMaker.h.

Referenced by UserExec().

TClonesArray* AliNanoAODArrayMaker::fOutputArray
private

name of the output array with all particles

! array with all particles

Definition at line 41 of file AliNanoAODArrayMaker.h.

Referenced by UserCreateOutputObjects(), and UserExec().

TString AliNanoAODArrayMaker::fOutputArrayDataName
private

Definition at line 46 of file AliNanoAODArrayMaker.h.

Referenced by SetOutputArrayDataName(), and UserCreateOutputObjects().

TString AliNanoAODArrayMaker::fOutputArrayName
private

describes if this is the first event loop

Definition at line 40 of file AliNanoAODArrayMaker.h.

Referenced by SetOutputArrayName(), and UserCreateOutputObjects().

TString AliNanoAODArrayMaker::fOutputArrayPythiaName
private

Definition at line 43 of file AliNanoAODArrayMaker.h.

Referenced by SetOutputArrayPythiaName(), and UserCreateOutputObjects().

TList* AliNanoAODArrayMaker::fOutputList
private

Definition at line 53 of file AliNanoAODArrayMaker.h.

Referenced by UserCreateOutputObjects().

TClonesArray* AliNanoAODArrayMaker::fPythiaArray
private

name of the output array with pythia particles

! output array with pythia particles

Definition at line 44 of file AliNanoAODArrayMaker.h.

Referenced by UserCreateOutputObjects(), and UserExec().

TRandom3* AliNanoAODArrayMaker::fRandom
private

artificial tracking efficiency modification for data particles

! random number generator

Definition at line 51 of file AliNanoAODArrayMaker.h.

Referenced by UserCreateOutputObjects().

Double_t AliNanoAODArrayMaker::fTrackEffData
private

artificial tracking efficiency modification for PYTHIA particles

Definition at line 50 of file AliNanoAODArrayMaker.h.

Referenced by SetTrackEfficiencyData(), and UserExec().

Double_t AliNanoAODArrayMaker::fTrackEffPythia
private

Definition at line 49 of file AliNanoAODArrayMaker.h.

Referenced by SetTrackEfficiencyPythia(), and UserExec().


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