1 #ifndef ALIANALYSISTASKSED0MASS_H
2 #define ALIANALYSISTASKSED0MASS_H
23 #include <THnSparse.h>
25 #include "AliAnalysisTaskSE.h"
44 virtual void UserExec(Option_t *option);
48 Bool_t
CheckAcc(TClonesArray* arrayMC,Int_t nProng, Int_t *labDau);
97 Int_t
CheckOrigin(TClonesArray* arrayMC, AliAODMCParticle *mcPartCandidate)
const;
98 Float_t
GetTrueImpactParameter(AliAODMCHeader *mcHeader, TClonesArray* arrayMC, AliAODMCParticle *partD0)
const ;
THnSparseF * fMCAccBFeed
!histo for StepMCAcc for D0 FD (pt,y,ptB)
Bool_t GetDrawDetSignal() const
void SetFillPtHistos(Bool_t flag)
TList * fOutputMassPt
! list send on output slot 6
Bool_t fDrawDetSignal
flag to decide whether to fill "PID = x" bins in fNentrie
void SetUseSelectionBit(Bool_t flag)
Bool_t fFillYHist
flag to fill Pt and Impact Parameter Histograms
void SetDoMCAcceptanceHistos(Bool_t doMCAcc=kTRUE)
void FillVarHists(AliAODEvent *aodev, AliAODRecoDecayHF2Prong *part, TClonesArray *arrMC, AliRDHFCutsD0toKpi *cuts, TList *listout)
Double_t * fCandidateVariables
! variables to be written to the tree
void SetFillVarHists(Bool_t flag)
AliAnalysisTaskSED0Mass()
Bool_t fWriteVariableTree
flag to check or not the selection bit
Bool_t GetFillImpactParameterHistos() const
Bool_t GetRejectSDDClusters() const
void SetArray(Int_t type=AliAnalysisTaskSED0Mass::kD0)
void SetFillYHistos(Bool_t flag)
void CreateImpactParameterHistos()
TList * fDistr
! list send on output slot 2
void NormIPvar(AliAODEvent *aod, AliAODRecoDecayHF2Prong *part, TClonesArray *arrMC)
TList * fDetSignal
!Detector signal histograms (on output slot 8)
Bool_t fUseSelectionBit
flag to fill Pt and Impact Parameter Histograms
void SetFillOnlyD0D0bar(Int_t flagfill)
void SetUseQuarkLevelTag(Bool_t opt)
void FillMCAcceptanceHistos(TClonesArray *arrayMC, AliAODMCHeader *mcHeader)
Int_t fSys
flag to enable filling variable histos
void SetWriteVariableTree(Bool_t flag)
TList * fOutputMass
! list send on output slot 1
Bool_t CheckAcc(TClonesArray *arrayMC, Int_t nProng, Int_t *labDau)
Bool_t fReadMC
can be D0 or Like Sign candidates
AliRDHFCutsD0toKpi * fCuts
void SetReadMC(Bool_t readMC=kFALSE)
virtual ~AliAnalysisTaskSED0Mass()
THnSparseF * fHistMassPtImpParTC[5]
! histograms for impact paramter studies
AliAnalysisTaskSED0Mass & operator=(const AliAnalysisTaskSED0Mass &source)
TH1F * fNentries
! histogram with number of events on output slot 3
virtual void UserCreateOutputObjects()
Implementation of interface methods.
Bool_t fFillPtHist
flag to reject events with SDD clusters
Bool_t fFillImpParHist
flag to fill Y Histograms
void SetPIDCheck(Bool_t flag)
Bool_t fUseQuarkTagInKine
flag to decide whether to draw the TPC dE/dx and TOF signal before/after PID
void SetRejectSDDClusters(Bool_t flag)
Bool_t fIsRejectSDDClusters
fSys=0 -> p-p; fSys=1 ->PbPb (in this case fFillVarHists=kFALSE by default: set it to kTRUE after if ...
void SetFillImpactParameterHistos(Bool_t flag)
Bool_t GetCutOnDistr() const
Int_t CheckOrigin(TClonesArray *arrayMC, AliAODMCParticle *mcPartCandidate) const
Int_t GetFillOnlyD0D0bar() const
void CreateMCAcceptanceHistos()
Bool_t GetFillVarHists() const
virtual void Terminate(Option_t *option)
Float_t GetTrueImpactParameter(AliAODMCHeader *mcHeader, TClonesArray *arrayMC, AliAODMCParticle *partD0) const
void DrawDetSignal(AliAODRecoDecayHF2Prong *part, TList *ListDetSignal)
void SetDrawDetSignal(Bool_t flag)
Double_t fLsNormalization
number of pt bins
Bool_t fUsePid4Distr
flag to decide if apply cut also on distributions: 0 no cuts, 1 looser cuts, 2 tighter/ cuts ...
THnSparseF * fhStudyImpParSingleTrackFd
! sparse with imp par residual cuts for MC
Bool_t fCutOnDistr
flag for MC array: kTRUE = read it, kFALSE = do not read it
AliAODVertex * GetPrimaryVtxSkipped(AliAODEvent *aodev)
THnSparseF * fhStudyImpParSingleTrackSign
! sparse with imp par residual cuts for MC
Bool_t GetUsePid4Distr() const
void FillMassHists(AliAODRecoDecayHF2Prong *part, TClonesArray *arrMC, AliAODMCHeader *mcHeader, AliRDHFCutsD0toKpi *cuts, TList *listout)
Int_t fIsSelectedCandidate
keeps the daughter tracks
Bool_t GetUseSelectionBit() const
Bool_t GetFillYHistos() const
THnSparseF * fhStudyImpParSingleTrackCand
! sparse with imp par residual cuts for Data
TList * fOutputMassY
! list send on output slot 9
Bool_t GetPIDCheck() const
TTree * fVariablesTree
flag to decide whether to write the candidate variables on a tree variables
virtual void UserExec(Option_t *option)
TObjArray fDaughterTracks
flag to fill mass histogram with D0/D0bar only (0 = fill with both, 1 = fill with D0 only...
Bool_t GetFillPtHistos() const
void SetCutOnDistr(Bool_t cutondistr=kFALSE)
Bool_t GetWriteVariableTree() const
void SetUsePid4Distr(Bool_t usepid=kTRUE)
Int_t fFillOnlyD0D0bar
normalization
THnSparseF * fMCAccPrompt
!histo for StepMCAcc for D0 prompt (pt,y,ptB)
Bool_t fFillVarHists
selection outcome
AliNormalizationCounter * fCounter
! AliNormalizationCounter on output slot 5
void SetSystem(Int_t sys)