AliPhysics  5364b50 (5364b50)
AliAnalysisTaskDmesonMCPerform Class Reference

#include <AliAnalysisTaskDmesonMCPerform.h>

Inheritance diagram for AliAnalysisTaskDmesonMCPerform:

Public Member Functions

 AliAnalysisTaskDmesonMCPerform ()
 
virtual ~AliAnalysisTaskDmesonMCPerform ()
 
void SetAODMismatchProtection (Int_t opt=1)
 
void SetDplusAnalysisCuts (AliRDHFCutsDplustoKpipi *cts)
 
void SetUseCentrality (Int_t flag)
 
virtual void UserCreateOutputObjects ()
 
virtual void Init ()
 
virtual void LocalInit ()
 
virtual void UserExec (Option_t *option)
 
virtual void Terminate (Option_t *option)
 

Private Types

enum  { kDecays =5, kMaxLabel =1000000 }
 

Private Member Functions

void FillGenLevelHistos (AliAODEvent *aod, TClonesArray *arrayMC, AliAODMCHeader *mcHeader)
 
void FillCandLevelHistos (Int_t idCase, AliAODEvent *aod, TClonesArray *arrayDcand, TClonesArray *arrayMC)
 
Bool_t CheckAcceptance (TClonesArray *arrayMC, Int_t nProng, Int_t *labDau)
 
AliAODRecoDecayHFGetRecoDecay (AliAODEvent *aod, Int_t nProng, Int_t *labDau)
 
void MapTrackLabels (AliAODEvent *aod)
 
 AliAnalysisTaskDmesonMCPerform (const AliAnalysisTaskDmesonMCPerform &source)
 
AliAnalysisTaskDmesonMCPerformoperator= (const AliAnalysisTaskDmesonMCPerform &source)
 

Private Attributes

TListfOutput
 ! list send on output slot 0 More...
 
TH1F * fHistNEvents
 ! hist. for N. of events More...
 
TH1F * fHistNGenD
 ! hist. for N. of D's More...
 
TH2FfHistNCand
 ! hist. for N. of D candidates More...
 
TH3FfHistPtYMultGen [2 *kDecays]
 ! hist. for generated D More...
 
TH3FfHistPtYMultGenDauInAcc [2 *kDecays]
 ! hist. for generated D in acc More...
 
TH3FfHistPtYMultReco [2 *kDecays]
 ! hist. for D with reco daught. More...
 
TH3FfHistPtYMultRecoFilt [2 *kDecays]
 ! hist. for D candidates More...
 
TH3FfHistPtYMultRecoSel [2 *kDecays]
 ! hist. for D candidates (sel) More...
 
TH2FfHistXvtxResVsPt [2 *kDecays]
 ! hist. for sec vert x resol More...
 
TH2FfHistYvtxResVsPt [2 *kDecays]
 ! hist. for sec vert x resol More...
 
TH2FfHistZvtxResVsPt [2 *kDecays]
 ! hist. for sec vert x resol More...
 
TH2FfHistInvMassVsPt [2 *kDecays]
 ! hist. of inv mass (meas) More...
 
TH2FfHistDecLenVsPt [2 *kDecays]
 ! hist. of decay length (meas) More...
 
TH2FfHistNormDLxyVsPt [2 *kDecays]
 ! hist. of decay length (meas) More...
 
TH2FfHistCosPointVsPt [2 *kDecays]
 ! hist. of cos(theta_p) (meas) More...
 
Int_t fAODProtection
 
AliRDHFCutsD0toKpifRDHFCuts
 flag to activate protection against AOD-dAOD mismatch. More...
 
AliRDHFCutsDplustoKpipifRDHFCutsDplus
 Cuts for event selection. More...
 
TString fPartName [kDecays]
 Cuts for Dplus. More...
 
Int_t fMapTrLabel [kMaxLabel]
 Names of hadron species. More...
 

Detailed Description

Definition at line 20 of file AliAnalysisTaskDmesonMCPerform.h.

Member Enumeration Documentation

anonymous enum
private
Enumerator
kDecays 
kMaxLabel 

Definition at line 50 of file AliAnalysisTaskDmesonMCPerform.h.

Constructor & Destructor Documentation

AliAnalysisTaskDmesonMCPerform::AliAnalysisTaskDmesonMCPerform ( )

Default constructor

Definition at line 43 of file AliAnalysisTaskDmesonMCPerform.cxx.

Referenced by LocalInit().

AliAnalysisTaskDmesonMCPerform::~AliAnalysisTaskDmesonMCPerform ( )
virtual

Destructor

Definition at line 76 of file AliAnalysisTaskDmesonMCPerform.cxx.

AliAnalysisTaskDmesonMCPerform::AliAnalysisTaskDmesonMCPerform ( const AliAnalysisTaskDmesonMCPerform source)
private

Member Function Documentation

Bool_t AliAnalysisTaskDmesonMCPerform::CheckAcceptance ( TClonesArray *  arrayMC,
Int_t  nProng,
Int_t labDau 
)
private

check if the decay products are in the good eta and pt range

Definition at line 471 of file AliAnalysisTaskDmesonMCPerform.cxx.

Referenced by FillGenLevelHistos(), and LocalInit().

void AliAnalysisTaskDmesonMCPerform::FillCandLevelHistos ( Int_t  idCase,
AliAODEvent aod,
TClonesArray *  arrayDcand,
TClonesArray *  arrayMC 
)
private

fill histograms starting from candidates in deltaAODs.

Definition at line 361 of file AliAnalysisTaskDmesonMCPerform.cxx.

Referenced by LocalInit(), and UserExec().

void AliAnalysisTaskDmesonMCPerform::FillGenLevelHistos ( AliAODEvent aod,
TClonesArray *  arrayMC,
AliAODMCHeader *  mcHeader 
)
private

fill histograms starting from generated particles

Definition at line 293 of file AliAnalysisTaskDmesonMCPerform.cxx.

Referenced by LocalInit(), and UserExec().

AliAODRecoDecayHF * AliAnalysisTaskDmesonMCPerform::GetRecoDecay ( AliAODEvent aod,
Int_t  nProng,
Int_t labDau 
)
private

create the AliAODRecoDecayHF object fromt he tracks

Definition at line 499 of file AliAnalysisTaskDmesonMCPerform.cxx.

Referenced by FillGenLevelHistos(), and LocalInit().

virtual void AliAnalysisTaskDmesonMCPerform::Init ( )
inlinevirtual

Definition at line 34 of file AliAnalysisTaskDmesonMCPerform.h.

Referenced by LocalInit().

virtual void AliAnalysisTaskDmesonMCPerform::LocalInit ( )
inlinevirtual

Definition at line 35 of file AliAnalysisTaskDmesonMCPerform.h.

void AliAnalysisTaskDmesonMCPerform::MapTrackLabels ( AliAODEvent aod)
private

Fill array of correspondence track lables <-> id

Definition at line 483 of file AliAnalysisTaskDmesonMCPerform.cxx.

Referenced by LocalInit(), and UserExec().

AliAnalysisTaskDmesonMCPerform& AliAnalysisTaskDmesonMCPerform::operator= ( const AliAnalysisTaskDmesonMCPerform source)
private

Referenced by LocalInit().

void AliAnalysisTaskDmesonMCPerform::SetAODMismatchProtection ( Int_t  opt = 1)
inline

Definition at line 26 of file AliAnalysisTaskDmesonMCPerform.h.

void AliAnalysisTaskDmesonMCPerform::SetDplusAnalysisCuts ( AliRDHFCutsDplustoKpipi cts)
inline

Definition at line 27 of file AliAnalysisTaskDmesonMCPerform.h.

Referenced by AddTaskDmesonMCPerform().

void AliAnalysisTaskDmesonMCPerform::SetUseCentrality ( Int_t  flag)
inline

Definition at line 30 of file AliAnalysisTaskDmesonMCPerform.h.

Referenced by AddTaskDmesonMCPerform().

void AliAnalysisTaskDmesonMCPerform::Terminate ( Option_t option)
virtual

Terminate analysis

Definition at line 528 of file AliAnalysisTaskDmesonMCPerform.cxx.

Referenced by LocalInit().

void AliAnalysisTaskDmesonMCPerform::UserCreateOutputObjects ( )
virtual

Create the output container

Definition at line 105 of file AliAnalysisTaskDmesonMCPerform.cxx.

Referenced by SetUseCentrality().

void AliAnalysisTaskDmesonMCPerform::UserExec ( Option_t option)
virtual

Execute analysis for current event: heavy flavor candidates association to MC truth

Definition at line 187 of file AliAnalysisTaskDmesonMCPerform.cxx.

Referenced by LocalInit().

Member Data Documentation

Int_t AliAnalysisTaskDmesonMCPerform::fAODProtection
private

Definition at line 70 of file AliAnalysisTaskDmesonMCPerform.h.

Referenced by SetAODMismatchProtection(), and UserExec().

TH2F* AliAnalysisTaskDmesonMCPerform::fHistCosPointVsPt[2 *kDecays]
private

! hist. of cos(theta_p) (meas)

Definition at line 68 of file AliAnalysisTaskDmesonMCPerform.h.

Referenced by FillCandLevelHistos(), UserCreateOutputObjects(), and ~AliAnalysisTaskDmesonMCPerform().

TH2F* AliAnalysisTaskDmesonMCPerform::fHistDecLenVsPt[2 *kDecays]
private

! hist. of decay length (meas)

Definition at line 66 of file AliAnalysisTaskDmesonMCPerform.h.

Referenced by FillCandLevelHistos(), UserCreateOutputObjects(), and ~AliAnalysisTaskDmesonMCPerform().

TH2F* AliAnalysisTaskDmesonMCPerform::fHistInvMassVsPt[2 *kDecays]
private

! hist. of inv mass (meas)

Definition at line 65 of file AliAnalysisTaskDmesonMCPerform.h.

Referenced by FillCandLevelHistos(), UserCreateOutputObjects(), and ~AliAnalysisTaskDmesonMCPerform().

TH2F* AliAnalysisTaskDmesonMCPerform::fHistNCand
private

! hist. for N. of D candidates

Definition at line 55 of file AliAnalysisTaskDmesonMCPerform.h.

Referenced by FillCandLevelHistos(), UserCreateOutputObjects(), and ~AliAnalysisTaskDmesonMCPerform().

TH1F* AliAnalysisTaskDmesonMCPerform::fHistNEvents
private

! hist. for N. of events

Definition at line 53 of file AliAnalysisTaskDmesonMCPerform.h.

Referenced by Terminate(), UserCreateOutputObjects(), UserExec(), and ~AliAnalysisTaskDmesonMCPerform().

TH1F* AliAnalysisTaskDmesonMCPerform::fHistNGenD
private

! hist. for N. of D's

Definition at line 54 of file AliAnalysisTaskDmesonMCPerform.h.

Referenced by FillGenLevelHistos(), UserCreateOutputObjects(), and ~AliAnalysisTaskDmesonMCPerform().

TH2F* AliAnalysisTaskDmesonMCPerform::fHistNormDLxyVsPt[2 *kDecays]
private

! hist. of decay length (meas)

Definition at line 67 of file AliAnalysisTaskDmesonMCPerform.h.

Referenced by FillCandLevelHistos(), UserCreateOutputObjects(), and ~AliAnalysisTaskDmesonMCPerform().

TH3F* AliAnalysisTaskDmesonMCPerform::fHistPtYMultGen[2 *kDecays]
private

! hist. for generated D

Definition at line 56 of file AliAnalysisTaskDmesonMCPerform.h.

Referenced by FillGenLevelHistos(), UserCreateOutputObjects(), and ~AliAnalysisTaskDmesonMCPerform().

TH3F* AliAnalysisTaskDmesonMCPerform::fHistPtYMultGenDauInAcc[2 *kDecays]
private

! hist. for generated D in acc

Definition at line 57 of file AliAnalysisTaskDmesonMCPerform.h.

Referenced by FillGenLevelHistos(), UserCreateOutputObjects(), and ~AliAnalysisTaskDmesonMCPerform().

TH3F* AliAnalysisTaskDmesonMCPerform::fHistPtYMultReco[2 *kDecays]
private

! hist. for D with reco daught.

Definition at line 58 of file AliAnalysisTaskDmesonMCPerform.h.

Referenced by FillGenLevelHistos(), UserCreateOutputObjects(), and ~AliAnalysisTaskDmesonMCPerform().

TH3F* AliAnalysisTaskDmesonMCPerform::fHistPtYMultRecoFilt[2 *kDecays]
private

! hist. for D candidates

Definition at line 59 of file AliAnalysisTaskDmesonMCPerform.h.

Referenced by FillCandLevelHistos(), UserCreateOutputObjects(), and ~AliAnalysisTaskDmesonMCPerform().

TH3F* AliAnalysisTaskDmesonMCPerform::fHistPtYMultRecoSel[2 *kDecays]
private

! hist. for D candidates (sel)

Definition at line 60 of file AliAnalysisTaskDmesonMCPerform.h.

Referenced by FillCandLevelHistos(), UserCreateOutputObjects(), and ~AliAnalysisTaskDmesonMCPerform().

TH2F* AliAnalysisTaskDmesonMCPerform::fHistXvtxResVsPt[2 *kDecays]
private

! hist. for sec vert x resol

Definition at line 62 of file AliAnalysisTaskDmesonMCPerform.h.

Referenced by FillCandLevelHistos(), UserCreateOutputObjects(), and ~AliAnalysisTaskDmesonMCPerform().

TH2F* AliAnalysisTaskDmesonMCPerform::fHistYvtxResVsPt[2 *kDecays]
private

! hist. for sec vert x resol

Definition at line 63 of file AliAnalysisTaskDmesonMCPerform.h.

Referenced by FillCandLevelHistos(), UserCreateOutputObjects(), and ~AliAnalysisTaskDmesonMCPerform().

TH2F* AliAnalysisTaskDmesonMCPerform::fHistZvtxResVsPt[2 *kDecays]
private

! hist. for sec vert x resol

Definition at line 64 of file AliAnalysisTaskDmesonMCPerform.h.

Referenced by FillCandLevelHistos(), UserCreateOutputObjects(), and ~AliAnalysisTaskDmesonMCPerform().

Int_t AliAnalysisTaskDmesonMCPerform::fMapTrLabel[kMaxLabel]
private

Names of hadron species.

Definition at line 75 of file AliAnalysisTaskDmesonMCPerform.h.

Referenced by GetRecoDecay(), MapTrackLabels(), and UserExec().

TList* AliAnalysisTaskDmesonMCPerform::fOutput
private

! list send on output slot 0

Definition at line 52 of file AliAnalysisTaskDmesonMCPerform.h.

Referenced by Terminate(), UserCreateOutputObjects(), UserExec(), and ~AliAnalysisTaskDmesonMCPerform().

TString AliAnalysisTaskDmesonMCPerform::fPartName[kDecays]
private

Cuts for Dplus.

Definition at line 74 of file AliAnalysisTaskDmesonMCPerform.h.

Referenced by AliAnalysisTaskDmesonMCPerform(), and UserCreateOutputObjects().

AliRDHFCutsD0toKpi* AliAnalysisTaskDmesonMCPerform::fRDHFCuts
private

flag to activate protection against AOD-dAOD mismatch.

Definition at line 72 of file AliAnalysisTaskDmesonMCPerform.h.

Referenced by AliAnalysisTaskDmesonMCPerform(), FillCandLevelHistos(), FillGenLevelHistos(), SetUseCentrality(), UserExec(), and ~AliAnalysisTaskDmesonMCPerform().

AliRDHFCutsDplustoKpipi* AliAnalysisTaskDmesonMCPerform::fRDHFCutsDplus
private

Cuts for event selection.

Definition at line 73 of file AliAnalysisTaskDmesonMCPerform.h.

Referenced by FillCandLevelHistos(), and SetDplusAnalysisCuts().


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