AliPhysics  ef3b16e (ef3b16e)
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)
 
void SetPtBinning (Int_t nbins, Double_t minpt, Double_t maxpt)
 
void SetFillExtraHistos (Bool_t opt)
 
virtual void UserCreateOutputObjects ()
 
virtual void Init ()
 
virtual void LocalInit ()
 
virtual void UserExec (Option_t *option)
 
virtual void Terminate (Option_t *option)
 
AliRDHFCutsGetCutObject ()
 

Private Types

enum  { kDecays =6, 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...
 
TH2FfHistXvtxResRotVsPt [2 *kDecays]
 ! hist. for sec vert x resol More...
 
TH2FfHistYvtxResRotVsPt [2 *kDecays]
 ! hist. for sec vert x resol More...
 
TH2FfHistXvtxResVsPhi [2 *kDecays]
 ! hist. for sec vert x resol More...
 
TH2FfHistYvtxResVsPhi [2 *kDecays]
 ! hist. for sec vert x resol More...
 
TH2FfHistZvtxResVsPhi [2 *kDecays]
 ! hist. for sec vert x resol More...
 
TH3FfHistXvtxResVsDecLenVsPt [2 *kDecays]
 ! hist. for sec vert x resol More...
 
TH3FfHistYvtxResVsDecLenVsPt [2 *kDecays]
 ! hist. for sec vert x resol More...
 
TH3FfHistZvtxResVsDecLenVsPt [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 fNPtBins
 
Double_t fMinPt
 number of pt bins in histos More...
 
Double_t fMaxPt
 lower limit for pt More...
 
Bool_t fEnableExtraHistos
 upper limit for pt More...
 
Int_t fAODProtection
 flag to control the additional info More...
 
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 58 of file AliAnalysisTaskDmesonMCPerform.h.

Constructor & Destructor Documentation

AliAnalysisTaskDmesonMCPerform::AliAnalysisTaskDmesonMCPerform ( )

Default constructor

Definition at line 43 of file AliAnalysisTaskDmesonMCPerform.cxx.

Referenced by GetCutObject().

AliAnalysisTaskDmesonMCPerform::~AliAnalysisTaskDmesonMCPerform ( )
virtual

Destructor

Definition at line 81 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 551 of file AliAnalysisTaskDmesonMCPerform.cxx.

Referenced by FillGenLevelHistos(), and GetCutObject().

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

fill histograms starting from candidates in deltaAODs.

Definition at line 393 of file AliAnalysisTaskDmesonMCPerform.cxx.

Referenced by GetCutObject(), and UserExec().

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

fill histograms starting from generated particles

Definition at line 325 of file AliAnalysisTaskDmesonMCPerform.cxx.

Referenced by GetCutObject(), and UserExec().

AliRDHFCuts* AliAnalysisTaskDmesonMCPerform::GetCutObject ( )
inline

Definition at line 45 of file AliAnalysisTaskDmesonMCPerform.h.

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

create the AliAODRecoDecayHF object fromt he tracks

Definition at line 579 of file AliAnalysisTaskDmesonMCPerform.cxx.

Referenced by FillGenLevelHistos(), and GetCutObject().

virtual void AliAnalysisTaskDmesonMCPerform::Init ( )
inlinevirtual

Definition at line 40 of file AliAnalysisTaskDmesonMCPerform.h.

Referenced by LocalInit().

virtual void AliAnalysisTaskDmesonMCPerform::LocalInit ( )
inlinevirtual

Definition at line 41 of file AliAnalysisTaskDmesonMCPerform.h.

void AliAnalysisTaskDmesonMCPerform::MapTrackLabels ( AliAODEvent aod)
private

Fill array of correspondence track lables <-> id

Definition at line 563 of file AliAnalysisTaskDmesonMCPerform.cxx.

Referenced by GetCutObject(), and UserExec().

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

Referenced by GetCutObject().

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::SetFillExtraHistos ( Bool_t  opt)
inline

Definition at line 36 of file AliAnalysisTaskDmesonMCPerform.h.

void AliAnalysisTaskDmesonMCPerform::SetPtBinning ( Int_t  nbins,
Double_t  minpt,
Double_t  maxpt 
)
inline

Definition at line 33 of file AliAnalysisTaskDmesonMCPerform.h.

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 608 of file AliAnalysisTaskDmesonMCPerform.cxx.

Referenced by LocalInit().

void AliAnalysisTaskDmesonMCPerform::UserCreateOutputObjects ( )
virtual

Create the output container

Definition at line 118 of file AliAnalysisTaskDmesonMCPerform.cxx.

Referenced by SetFillExtraHistos().

void AliAnalysisTaskDmesonMCPerform::UserExec ( Option_t option)
virtual

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

Definition at line 219 of file AliAnalysisTaskDmesonMCPerform.cxx.

Referenced by LocalInit().

Member Data Documentation

Int_t AliAnalysisTaskDmesonMCPerform::fAODProtection
private

flag to control the additional info

Definition at line 91 of file AliAnalysisTaskDmesonMCPerform.h.

Referenced by SetAODMismatchProtection(), and UserExec().

Bool_t AliAnalysisTaskDmesonMCPerform::fEnableExtraHistos
private

upper limit for pt

Definition at line 89 of file AliAnalysisTaskDmesonMCPerform.h.

Referenced by FillCandLevelHistos(), SetFillExtraHistos(), and UserCreateOutputObjects().

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

! hist. of cos(theta_p) (meas)

Definition at line 84 of file AliAnalysisTaskDmesonMCPerform.h.

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

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

! hist. of decay length (meas)

Definition at line 82 of file AliAnalysisTaskDmesonMCPerform.h.

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

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

! hist. of inv mass (meas)

Definition at line 81 of file AliAnalysisTaskDmesonMCPerform.h.

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

TH2F* AliAnalysisTaskDmesonMCPerform::fHistNCand
private

! hist. for N. of D candidates

Definition at line 63 of file AliAnalysisTaskDmesonMCPerform.h.

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

TH1F* AliAnalysisTaskDmesonMCPerform::fHistNEvents
private

! hist. for N. of events

Definition at line 61 of file AliAnalysisTaskDmesonMCPerform.h.

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

TH1F* AliAnalysisTaskDmesonMCPerform::fHistNGenD
private

! hist. for N. of D's

Definition at line 62 of file AliAnalysisTaskDmesonMCPerform.h.

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

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

! hist. of decay length (meas)

Definition at line 83 of file AliAnalysisTaskDmesonMCPerform.h.

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

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

! hist. for generated D

Definition at line 64 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 65 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 66 of file AliAnalysisTaskDmesonMCPerform.h.

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

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

! hist. for D candidates

Definition at line 67 of file AliAnalysisTaskDmesonMCPerform.h.

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

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

! hist. for D candidates (sel)

Definition at line 68 of file AliAnalysisTaskDmesonMCPerform.h.

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

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

! hist. for sec vert x resol

Definition at line 73 of file AliAnalysisTaskDmesonMCPerform.h.

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

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

! hist. for sec vert x resol

Definition at line 78 of file AliAnalysisTaskDmesonMCPerform.h.

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

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

! hist. for sec vert x resol

Definition at line 75 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 70 of file AliAnalysisTaskDmesonMCPerform.h.

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

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

! hist. for sec vert x resol

Definition at line 74 of file AliAnalysisTaskDmesonMCPerform.h.

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

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

! hist. for sec vert x resol

Definition at line 79 of file AliAnalysisTaskDmesonMCPerform.h.

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

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

! hist. for sec vert x resol

Definition at line 76 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 71 of file AliAnalysisTaskDmesonMCPerform.h.

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

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

! hist. for sec vert x resol

Definition at line 80 of file AliAnalysisTaskDmesonMCPerform.h.

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

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

! hist. for sec vert x resol

Definition at line 77 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 72 of file AliAnalysisTaskDmesonMCPerform.h.

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

Int_t AliAnalysisTaskDmesonMCPerform::fMapTrLabel[kMaxLabel]
private

Names of hadron species.

Definition at line 96 of file AliAnalysisTaskDmesonMCPerform.h.

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

Double_t AliAnalysisTaskDmesonMCPerform::fMaxPt
private

lower limit for pt

Definition at line 88 of file AliAnalysisTaskDmesonMCPerform.h.

Referenced by SetPtBinning(), and UserCreateOutputObjects().

Double_t AliAnalysisTaskDmesonMCPerform::fMinPt
private

number of pt bins in histos

Definition at line 87 of file AliAnalysisTaskDmesonMCPerform.h.

Referenced by SetPtBinning(), and UserCreateOutputObjects().

Int_t AliAnalysisTaskDmesonMCPerform::fNPtBins
private

Definition at line 86 of file AliAnalysisTaskDmesonMCPerform.h.

Referenced by SetPtBinning(), and UserCreateOutputObjects().

TList* AliAnalysisTaskDmesonMCPerform::fOutput
private

! list send on output slot 0

Definition at line 60 of file AliAnalysisTaskDmesonMCPerform.h.

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

TString AliAnalysisTaskDmesonMCPerform::fPartName[kDecays]
private

Cuts for Dplus.

Definition at line 95 of file AliAnalysisTaskDmesonMCPerform.h.

Referenced by AliAnalysisTaskDmesonMCPerform(), and UserCreateOutputObjects().

AliRDHFCutsD0toKpi* AliAnalysisTaskDmesonMCPerform::fRDHFCuts
private
AliRDHFCutsDplustoKpipi* AliAnalysisTaskDmesonMCPerform::fRDHFCutsDplus
private

Cuts for event selection.

Definition at line 94 of file AliAnalysisTaskDmesonMCPerform.h.

Referenced by FillCandLevelHistos(), and SetDplusAnalysisCuts().


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