AliPhysics  vAN-20150827 (3e81cbb)
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
AliAnalysisTaskSED0Mass Class Reference

#include <AliAnalysisTaskSED0Mass.h>

Inheritance diagram for AliAnalysisTaskSED0Mass:

Public Types

enum  { kD0, kLS }
 

Public Member Functions

 AliAnalysisTaskSED0Mass ()
 
 AliAnalysisTaskSED0Mass (const char *name, AliRDHFCutsD0toKpi *cuts)
 
virtual ~AliAnalysisTaskSED0Mass ()
 
virtual void UserCreateOutputObjects ()
 Implementation of interface methods. More...
 
virtual void Init ()
 
virtual void LocalInit ()
 
virtual void UserExec (Option_t *option)
 
virtual void Terminate (Option_t *option)
 
void SetArray (Int_t type=AliAnalysisTaskSED0Mass::kD0)
 
void SetReadMC (Bool_t readMC=kFALSE)
 
void SetCutOnDistr (Bool_t cutondistr=kFALSE)
 
void SetUsePid4Distr (Bool_t usepid=kTRUE)
 
void SetFillOnlyD0D0bar (Int_t flagfill)
 
void SetFillVarHists (Bool_t flag)
 
void SetFillPtHistos (Bool_t flag)
 
void SetFillYHistos (Bool_t flag)
 
void SetFillImpactParameterHistos (Bool_t flag)
 
void SetSystem (Int_t sys)
 
void SetRejectSDDClusters (Bool_t flag)
 
void SetUseSelectionBit (Bool_t flag)
 
void SetWriteVariableTree (Bool_t flag)
 
void SetDrawDetSignal (Bool_t flag)
 
void SetPIDCheck (Bool_t flag)
 
Bool_t GetCutOnDistr () const
 
Bool_t GetUsePid4Distr () const
 
Int_t GetFillOnlyD0D0bar () const
 
Bool_t GetFillVarHists () const
 
Bool_t GetFillPtHistos () const
 
Bool_t GetFillYHistos () const
 
Bool_t GetFillImpactParameterHistos () const
 
Int_t GetSystem () const
 
Bool_t GetRejectSDDClusters () const
 
Bool_t GetUseSelectionBit () const
 
Bool_t GetWriteVariableTree () const
 
Bool_t GetDrawDetSignal () const
 
Bool_t GetPIDCheck () const
 

Private Member Functions

 AliAnalysisTaskSED0Mass (const AliAnalysisTaskSED0Mass &source)
 
AliAnalysisTaskSED0Massoperator= (const AliAnalysisTaskSED0Mass &source)
 
void DrawDetSignal (AliAODRecoDecayHF2Prong *part, TList *ListDetSignal)
 
void FillMassHists (AliAODRecoDecayHF2Prong *part, TClonesArray *arrMC, AliAODMCHeader *mcHeader, AliRDHFCutsD0toKpi *cuts, TList *listout)
 
void FillVarHists (AliAODEvent *aodev, AliAODRecoDecayHF2Prong *part, TClonesArray *arrMC, AliRDHFCutsD0toKpi *cuts, TList *listout)
 
AliAODVertex * GetPrimaryVtxSkipped (AliAODEvent *aodev)
 
void CreateImpactParameterHistos ()
 
Int_t CheckOrigin (TClonesArray *arrayMC, AliAODMCParticle *mcPartCandidate) const
 
Float_t GetTrueImpactParameter (AliAODMCHeader *mcHeader, TClonesArray *arrayMC, AliAODMCParticle *partD0) const
 

Private Attributes

TList * fOutputMass
 ! list send on output slot 1 More...
 
TList * fOutputMassPt
 ! list send on output slot 6 More...
 
TList * fOutputMassY
 ! list send on output slot 9 More...
 
TList * fDistr
 ! list send on output slot 2 More...
 
TH1F * fNentries
 ! histogram with number of events on output slot 3 More...
 
AliRDHFCutsD0toKpifCuts
 
THnSparseF * fHistMassPtImpParTC [5]
 ! histograms for impact paramter studies More...
 
Int_t fArray
 
Bool_t fReadMC
 can be D0 or Like Sign candidates More...
 
Bool_t fCutOnDistr
 flag for MC array: kTRUE = read it, kFALSE = do not read it More...
 
Bool_t fUsePid4Distr
 flag to decide if apply cut also on distributions: 0 no cuts, 1 looser cuts, 2 tighter/ cuts More...
 
AliNormalizationCounterfCounter
 ! AliNormalizationCounter on output slot 5 More...
 
Int_t fNPtBins
 
Double_t fLsNormalization
 number of pt bins More...
 
Int_t fFillOnlyD0D0bar
 normalization More...
 
TObjArray fDaughterTracks
 flag to fill mass histogram with D0/D0bar only (0 = fill with both, 1 = fill with D0 only, 2 = fill with D0bar only) More...
 
Int_t fIsSelectedCandidate
 keeps the daughter tracks More...
 
Bool_t fFillVarHists
 selection outcome More...
 
Int_t fSys
 flag to enable filling variable histos More...
 
Bool_t fIsRejectSDDClusters
 fSys=0 -> p-p; fSys=1 ->PbPb (in this case fFillVarHists=kFALSE by default: set it to kTRUE after if needed) More...
 
Bool_t fFillPtHist
 flag to reject events with SDD clusters More...
 
Bool_t fFillYHist
 flag to fill Pt and Impact Parameter Histograms More...
 
Bool_t fFillImpParHist
 flag to fill Y Histograms More...
 
Bool_t fUseSelectionBit
 flag to fill Pt and Impact Parameter Histograms More...
 
Bool_t fWriteVariableTree
 flag to check or not the selection bit More...
 
TTree * fVariablesTree
 flag to decide whether to write the candidate variables on a tree variables More...
 
Double_t * fCandidateVariables
 ! variables to be written to the tree More...
 
Bool_t fPIDCheck
 
Bool_t fDrawDetSignal
 flag to decide whether to fill "PID = x" bins in fNentrie More...
 
TList * fDetSignal
 flag to decide whether to draw the TPC dE/dx and TOF signal before/after PID More...
 

Detailed Description

Definition at line 31 of file AliAnalysisTaskSED0Mass.h.

Member Enumeration Documentation

anonymous enum
Enumerator
kD0 
kLS 

Definition at line 48 of file AliAnalysisTaskSED0Mass.h.

Constructor & Destructor Documentation

AliAnalysisTaskSED0Mass::AliAnalysisTaskSED0Mass ( )

Default constructor

Definition at line 65 of file AliAnalysisTaskSED0Mass.cxx.

AliAnalysisTaskSED0Mass::AliAnalysisTaskSED0Mass ( const char *  name,
AliRDHFCutsD0toKpi cuts 
)

Default constructor

Definition at line 103 of file AliAnalysisTaskSED0Mass.cxx.

AliAnalysisTaskSED0Mass::~AliAnalysisTaskSED0Mass ( )
virtual

Definition at line 163 of file AliAnalysisTaskSED0Mass.cxx.

AliAnalysisTaskSED0Mass::AliAnalysisTaskSED0Mass ( const AliAnalysisTaskSED0Mass source)
private

Member Function Documentation

Int_t AliAnalysisTaskSED0Mass::CheckOrigin ( TClonesArray *  arrayMC,
AliAODMCParticle *  mcPartCandidate 
) const
private

checking whether the mother of the particles come from a charm or a bottom quark

Definition at line 2559 of file AliAnalysisTaskSED0Mass.cxx.

Referenced by FillMassHists().

void AliAnalysisTaskSED0Mass::CreateImpactParameterHistos ( )
private

Histos for impact paramter study

Definition at line 2482 of file AliAnalysisTaskSED0Mass.cxx.

Referenced by UserCreateOutputObjects().

void AliAnalysisTaskSED0Mass::DrawDetSignal ( AliAODRecoDecayHF2Prong part,
TList *  ListDetSignal 
)
private

Function called in UserExec for drawing detector signal histograms:

Definition at line 1190 of file AliAnalysisTaskSED0Mass.cxx.

Referenced by UserExec().

void AliAnalysisTaskSED0Mass::FillMassHists ( AliAODRecoDecayHF2Prong part,
TClonesArray *  arrMC,
AliAODMCHeader *  mcHeader,
AliRDHFCutsD0toKpi cuts,
TList *  listout 
)
private

function used in UserExec to fill mass histograms:

Definition at line 1973 of file AliAnalysisTaskSED0Mass.cxx.

Referenced by UserExec().

void AliAnalysisTaskSED0Mass::FillVarHists ( AliAODEvent *  aodev,
AliAODRecoDecayHF2Prong part,
TClonesArray *  arrMC,
AliRDHFCutsD0toKpi cuts,
TList *  listout 
)
private

function used in UserExec to fill variable histograms:

Definition at line 1228 of file AliAnalysisTaskSED0Mass.cxx.

Referenced by UserExec().

Bool_t AliAnalysisTaskSED0Mass::GetCutOnDistr ( ) const
inline

Definition at line 66 of file AliAnalysisTaskSED0Mass.h.

Bool_t AliAnalysisTaskSED0Mass::GetDrawDetSignal ( ) const
inline

Definition at line 77 of file AliAnalysisTaskSED0Mass.h.

Bool_t AliAnalysisTaskSED0Mass::GetFillImpactParameterHistos ( ) const
inline

Definition at line 72 of file AliAnalysisTaskSED0Mass.h.

Int_t AliAnalysisTaskSED0Mass::GetFillOnlyD0D0bar ( ) const
inline

Definition at line 68 of file AliAnalysisTaskSED0Mass.h.

Bool_t AliAnalysisTaskSED0Mass::GetFillPtHistos ( ) const
inline

Definition at line 70 of file AliAnalysisTaskSED0Mass.h.

Bool_t AliAnalysisTaskSED0Mass::GetFillVarHists ( ) const
inline

Definition at line 69 of file AliAnalysisTaskSED0Mass.h.

Bool_t AliAnalysisTaskSED0Mass::GetFillYHistos ( ) const
inline

Definition at line 71 of file AliAnalysisTaskSED0Mass.h.

Bool_t AliAnalysisTaskSED0Mass::GetPIDCheck ( ) const
inline

Definition at line 78 of file AliAnalysisTaskSED0Mass.h.

AliAODVertex * AliAnalysisTaskSED0Mass::GetPrimaryVtxSkipped ( AliAODEvent *  aodev)
private

Calculate the primary vertex w/o the daughter tracks of the candidate

Definition at line 2301 of file AliAnalysisTaskSED0Mass.cxx.

Referenced by FillVarHists().

Bool_t AliAnalysisTaskSED0Mass::GetRejectSDDClusters ( ) const
inline

Definition at line 74 of file AliAnalysisTaskSED0Mass.h.

Int_t AliAnalysisTaskSED0Mass::GetSystem ( ) const
inline

Definition at line 73 of file AliAnalysisTaskSED0Mass.h.

Float_t AliAnalysisTaskSED0Mass::GetTrueImpactParameter ( AliAODMCHeader *  mcHeader,
TClonesArray *  arrayMC,
AliAODMCParticle *  partD0 
) const
private

true impact parameter calculation

Definition at line 2516 of file AliAnalysisTaskSED0Mass.cxx.

Referenced by FillMassHists().

Bool_t AliAnalysisTaskSED0Mass::GetUsePid4Distr ( ) const
inline

Definition at line 67 of file AliAnalysisTaskSED0Mass.h.

Bool_t AliAnalysisTaskSED0Mass::GetUseSelectionBit ( ) const
inline

Definition at line 75 of file AliAnalysisTaskSED0Mass.h.

Bool_t AliAnalysisTaskSED0Mass::GetWriteVariableTree ( ) const
inline

Definition at line 76 of file AliAnalysisTaskSED0Mass.h.

void AliAnalysisTaskSED0Mass::Init ( )
virtual

Initialization

Definition at line 208 of file AliAnalysisTaskSED0Mass.cxx.

Referenced by LocalInit().

virtual void AliAnalysisTaskSED0Mass::LocalInit ( )
inlinevirtual

Definition at line 43 of file AliAnalysisTaskSED0Mass.h.

AliAnalysisTaskSED0Mass& AliAnalysisTaskSED0Mass::operator= ( const AliAnalysisTaskSED0Mass source)
private
void AliAnalysisTaskSED0Mass::SetArray ( Int_t  type = AliAnalysisTaskSED0Mass::kD0)
inline

Definition at line 47 of file AliAnalysisTaskSED0Mass.h.

Referenced by AddTaskD0Mass().

void AliAnalysisTaskSED0Mass::SetCutOnDistr ( Bool_t  cutondistr = kFALSE)
inline

Definition at line 51 of file AliAnalysisTaskSED0Mass.h.

Referenced by AddTaskD0Mass().

void AliAnalysisTaskSED0Mass::SetDrawDetSignal ( Bool_t  flag)
inline

Definition at line 62 of file AliAnalysisTaskSED0Mass.h.

Referenced by AddTaskD0Mass().

void AliAnalysisTaskSED0Mass::SetFillImpactParameterHistos ( Bool_t  flag)
inline

Definition at line 57 of file AliAnalysisTaskSED0Mass.h.

Referenced by AddTaskD0Mass().

void AliAnalysisTaskSED0Mass::SetFillOnlyD0D0bar ( Int_t  flagfill)
inline

Definition at line 53 of file AliAnalysisTaskSED0Mass.h.

Referenced by AddTaskD0Mass().

void AliAnalysisTaskSED0Mass::SetFillPtHistos ( Bool_t  flag)
inline

Definition at line 55 of file AliAnalysisTaskSED0Mass.h.

Referenced by AddTaskD0Mass().

void AliAnalysisTaskSED0Mass::SetFillVarHists ( Bool_t  flag)
inline

Definition at line 54 of file AliAnalysisTaskSED0Mass.h.

Referenced by AddTaskD0Mass(), and SetSystem().

void AliAnalysisTaskSED0Mass::SetFillYHistos ( Bool_t  flag)
inline

Definition at line 56 of file AliAnalysisTaskSED0Mass.h.

Referenced by AddTaskD0Mass().

void AliAnalysisTaskSED0Mass::SetPIDCheck ( Bool_t  flag)
inline

Definition at line 63 of file AliAnalysisTaskSED0Mass.h.

Referenced by AddTaskD0Mass().

void AliAnalysisTaskSED0Mass::SetReadMC ( Bool_t  readMC = kFALSE)
inline

Definition at line 50 of file AliAnalysisTaskSED0Mass.h.

Referenced by AddTaskD0Mass().

void AliAnalysisTaskSED0Mass::SetRejectSDDClusters ( Bool_t  flag)
inline

Definition at line 59 of file AliAnalysisTaskSED0Mass.h.

void AliAnalysisTaskSED0Mass::SetSystem ( Int_t  sys)
inline

Definition at line 58 of file AliAnalysisTaskSED0Mass.h.

Referenced by AddTaskD0Mass().

void AliAnalysisTaskSED0Mass::SetUsePid4Distr ( Bool_t  usepid = kTRUE)
inline

Definition at line 52 of file AliAnalysisTaskSED0Mass.h.

Referenced by AddTaskD0Mass().

void AliAnalysisTaskSED0Mass::SetUseSelectionBit ( Bool_t  flag)
inline

Definition at line 60 of file AliAnalysisTaskSED0Mass.h.

void AliAnalysisTaskSED0Mass::SetWriteVariableTree ( Bool_t  flag)
inline

Definition at line 61 of file AliAnalysisTaskSED0Mass.h.

void AliAnalysisTaskSED0Mass::Terminate ( Option_t *  option)
virtual

Terminate analysis

Definition at line 2351 of file AliAnalysisTaskSED0Mass.cxx.

void AliAnalysisTaskSED0Mass::UserCreateOutputObjects ( )
virtual

Implementation of interface methods.

Create the output container

Definition at line 226 of file AliAnalysisTaskSED0Mass.cxx.

void AliAnalysisTaskSED0Mass::UserExec ( Option_t *  option)
virtual

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

Definition at line 978 of file AliAnalysisTaskSED0Mass.cxx.

Member Data Documentation

Int_t AliAnalysisTaskSED0Mass::fArray
private
Double_t* AliAnalysisTaskSED0Mass::fCandidateVariables
private

! variables to be written to the tree

Definition at line 120 of file AliAnalysisTaskSED0Mass.h.

Referenced by FillMassHists(), and UserCreateOutputObjects().

AliNormalizationCounter* AliAnalysisTaskSED0Mass::fCounter
private
Bool_t AliAnalysisTaskSED0Mass::fCutOnDistr
private

flag for MC array: kTRUE = read it, kFALSE = do not read it

Definition at line 102 of file AliAnalysisTaskSED0Mass.h.

Referenced by FillVarHists(), GetCutOnDistr(), and SetCutOnDistr().

TObjArray AliAnalysisTaskSED0Mass::fDaughterTracks
private

flag to fill mass histogram with D0/D0bar only (0 = fill with both, 1 = fill with D0 only, 2 = fill with D0bar only)

Definition at line 108 of file AliAnalysisTaskSED0Mass.h.

Referenced by DrawDetSignal(), FillVarHists(), GetPrimaryVtxSkipped(), and UserExec().

TList* AliAnalysisTaskSED0Mass::fDetSignal
private

flag to decide whether to draw the TPC dE/dx and TOF signal before/after PID

!Detector signal histograms (on output slot 8)

Definition at line 123 of file AliAnalysisTaskSED0Mass.h.

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

TList* AliAnalysisTaskSED0Mass::fDistr
private

! list send on output slot 2

Definition at line 96 of file AliAnalysisTaskSED0Mass.h.

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

Bool_t AliAnalysisTaskSED0Mass::fDrawDetSignal
private

flag to decide whether to fill "PID = x" bins in fNentrie

Definition at line 122 of file AliAnalysisTaskSED0Mass.h.

Referenced by GetDrawDetSignal(), SetDrawDetSignal(), Terminate(), UserCreateOutputObjects(), and UserExec().

Bool_t AliAnalysisTaskSED0Mass::fFillImpParHist
private
Int_t AliAnalysisTaskSED0Mass::fFillOnlyD0D0bar
private

normalization

Definition at line 107 of file AliAnalysisTaskSED0Mass.h.

Referenced by FillMassHists(), GetFillOnlyD0D0bar(), and SetFillOnlyD0D0bar().

Bool_t AliAnalysisTaskSED0Mass::fFillPtHist
private

flag to reject events with SDD clusters

Definition at line 113 of file AliAnalysisTaskSED0Mass.h.

Referenced by FillMassHists(), FillVarHists(), GetFillPtHistos(), SetFillPtHistos(), Terminate(), and UserCreateOutputObjects().

Bool_t AliAnalysisTaskSED0Mass::fFillVarHists
private
Bool_t AliAnalysisTaskSED0Mass::fFillYHist
private

flag to fill Pt and Impact Parameter Histograms

Definition at line 114 of file AliAnalysisTaskSED0Mass.h.

Referenced by FillMassHists(), GetFillYHistos(), SetFillYHistos(), Terminate(), and UserCreateOutputObjects().

THnSparseF* AliAnalysisTaskSED0Mass::fHistMassPtImpParTC[5]
private

! histograms for impact paramter studies

Definition at line 99 of file AliAnalysisTaskSED0Mass.h.

Referenced by AliAnalysisTaskSED0Mass(), CreateImpactParameterHistos(), FillMassHists(), and ~AliAnalysisTaskSED0Mass().

Bool_t AliAnalysisTaskSED0Mass::fIsRejectSDDClusters
private

fSys=0 -> p-p; fSys=1 ->PbPb (in this case fFillVarHists=kFALSE by default: set it to kTRUE after if needed)

Definition at line 112 of file AliAnalysisTaskSED0Mass.h.

Referenced by GetRejectSDDClusters(), SetRejectSDDClusters(), UserCreateOutputObjects(), and UserExec().

Int_t AliAnalysisTaskSED0Mass::fIsSelectedCandidate
private

keeps the daughter tracks

Definition at line 109 of file AliAnalysisTaskSED0Mass.h.

Referenced by FillMassHists(), FillVarHists(), and UserExec().

Double_t AliAnalysisTaskSED0Mass::fLsNormalization
private

number of pt bins

Definition at line 106 of file AliAnalysisTaskSED0Mass.h.

Referenced by Terminate().

TH1F* AliAnalysisTaskSED0Mass::fNentries
private

! histogram with number of events on output slot 3

Definition at line 97 of file AliAnalysisTaskSED0Mass.h.

Referenced by FillMassHists(), FillVarHists(), Terminate(), UserCreateOutputObjects(), UserExec(), and ~AliAnalysisTaskSED0Mass().

Int_t AliAnalysisTaskSED0Mass::fNPtBins
private

Definition at line 105 of file AliAnalysisTaskSED0Mass.h.

Referenced by AliAnalysisTaskSED0Mass().

TList* AliAnalysisTaskSED0Mass::fOutputMass
private

! list send on output slot 1

Definition at line 93 of file AliAnalysisTaskSED0Mass.h.

Referenced by FillVarHists(), Terminate(), UserCreateOutputObjects(), UserExec(), and ~AliAnalysisTaskSED0Mass().

TList* AliAnalysisTaskSED0Mass::fOutputMassPt
private
TList* AliAnalysisTaskSED0Mass::fOutputMassY
private

! list send on output slot 9

Definition at line 95 of file AliAnalysisTaskSED0Mass.h.

Referenced by FillMassHists(), Terminate(), UserCreateOutputObjects(), and ~AliAnalysisTaskSED0Mass().

Bool_t AliAnalysisTaskSED0Mass::fPIDCheck
private
Bool_t AliAnalysisTaskSED0Mass::fReadMC
private

can be D0 or Like Sign candidates

Definition at line 101 of file AliAnalysisTaskSED0Mass.h.

Referenced by DrawDetSignal(), FillMassHists(), FillVarHists(), SetReadMC(), UserCreateOutputObjects(), and UserExec().

Int_t AliAnalysisTaskSED0Mass::fSys
private

flag to enable filling variable histos

Definition at line 111 of file AliAnalysisTaskSED0Mass.h.

Referenced by FillMassHists(), FillVarHists(), GetSystem(), SetSystem(), Terminate(), UserCreateOutputObjects(), and UserExec().

Bool_t AliAnalysisTaskSED0Mass::fUsePid4Distr
private

flag to decide if apply cut also on distributions: 0 no cuts, 1 looser cuts, 2 tighter/ cuts

Definition at line 103 of file AliAnalysisTaskSED0Mass.h.

Referenced by DrawDetSignal(), FillVarHists(), GetUsePid4Distr(), SetUsePid4Distr(), and UserExec().

Bool_t AliAnalysisTaskSED0Mass::fUseSelectionBit
private

flag to fill Pt and Impact Parameter Histograms

Definition at line 116 of file AliAnalysisTaskSED0Mass.h.

Referenced by GetUseSelectionBit(), SetUseSelectionBit(), and UserExec().

TTree* AliAnalysisTaskSED0Mass::fVariablesTree
private

flag to decide whether to write the candidate variables on a tree variables

! tree of the candidate variables after track selection on output slot 7

Definition at line 119 of file AliAnalysisTaskSED0Mass.h.

Referenced by FillMassHists(), UserCreateOutputObjects(), UserExec(), and ~AliAnalysisTaskSED0Mass().

Bool_t AliAnalysisTaskSED0Mass::fWriteVariableTree
private

flag to check or not the selection bit

Definition at line 118 of file AliAnalysisTaskSED0Mass.h.

Referenced by FillMassHists(), GetWriteVariableTree(), and SetWriteVariableTree().


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