AliPhysics  9fe175b (9fe175b)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliHFsubtractBFDcuts Class Reference

Class for storing and handling D0 meson candidates properties // for estimating the feed-down fraction using several sets of cuts //. More...

#include <AliHFsubtractBFDcuts.h>

Inheritance diagram for AliHFsubtractBFDcuts:

Public Member Functions

 AliHFsubtractBFDcuts ()
 
 AliHFsubtractBFDcuts (const char *name, const char *title)
 
 ~AliHFsubtractBFDcuts ()
 
void InitHistos ()
 
void FillGenStep (AliAODMCParticle *dzeroMC, Double_t pt=-1, Double_t weight=1., TClonesArray *mcArray=0x0, AliAODMCHeader *mcHeader=0x0)
 
THnSparseF * GetSparseData () const
 
THnSparseF * GetSparseMC () const
 
THnSparseF * GetSparseMCgen () const
 
void SetHistoPtMCgen (THnSparseF *h)
 
void SetSparseData (THnSparseF *h)
 
void SetSparseMC (THnSparseF *h)
 
void SetFillMC (Bool_t fillMC=kTRUE)
 
void FillSparses (AliAODRecoDecayHF2Prong *dzeroPart, Int_t isSelected, Double_t pt=-1, Double_t massD0=-1, Double_t massD0bar=-1, Double_t weight=1., TClonesArray *mcArray=0x0, AliAODEvent *aodEvent=0x0, AliAODMCHeader *mcHeader=0x0)
 
TList * GetDecayStrings ()
 
TList * GetQAhists ()
 

Private Member Functions

 AliHFsubtractBFDcuts (const AliHFsubtractBFDcuts &c)
 
AliHFsubtractBFDcuts operator= (const AliHFsubtractBFDcuts &c)
 
Bool_t GetCandidateLabel ()
 
Bool_t AnalyseDecay (Bool_t generateString, Bool_t mcOnly)
 
void CountProngs (Int_t labCurrMother, Int_t labCurrExcl, Bool_t generateString, Bool_t mConly)
 check in which decay process a particle was created More...
 
Bool_t IsStable (Int_t labProng)
 counting the prongs of labCurrMother, labCurrExcl is assumed to be a stable particle More...
 
Bool_t IsInAcceptance (Int_t labProng) const
 Is that prong a stable particle? More...
 
AliAODVertex * RecBvtx (TObjArray *tracks) const
 Is that prong within the fiducial acceptance. More...
 
Bool_t CheckBhypothesis (Int_t iAODtrack, Bool_t Bprong)
 Reconstruct a secondary vertex with the supplied tracks. More...
 

Private Attributes

Bool_t fIsMC
 Method to check Whether the current D0 candidate and the track originate from a B decay. More...
 
Bool_t fCheckAcceptance
 flag for MC/Data More...
 
Bool_t fResolveResonances
 flag for checking whether the decay prongs are within acceptance More...
 
THnSparseF * fTHnGenStep
 flag resolve resonances in during the prong determination More...
 
THnSparseF * fTHnData
 ! THnSparse for cut variables (data, with inv mass axis), first axis is always mass More...
 
THnSparseF * fTHnMC
 ! THnSparse for cut variables (MC at PID level, w/o mass axis)y More...
 
TList * fQAhists
 ! List with QA histograms More...
 
TClonesArray * fMCarray
 Event specific variables. More...
 
TClonesArray * fAODtracks
 ! TClonesArray holding the AliAODTracks of the event to be processed More...
 
AliAODVertex * fPriVtx
 ! Primary AOD vertex More...
 
Double_t fBkG
 
AliAODRecoDecayHF2ProngfD0Cand
 Magnetic field (z-direction) in units of kG. More...
 
AliNeutralTrackParam * fD0CandParam
 Pointer to the D0 candidate from reconstruction. More...
 
Int_t fLabCand
 Pointer to an AliNeutralTrackParam of the D0 candidata for DCA calculation. More...
 
Double_t fPtCand
 Label of the candidate D0 (charmed hadron in case of a chained decay) More...
 
Int_t fLabMother
 pT of the candidate (from MC track, not following decay chain) More...
 
UInt_t fNprongs
 Label of the mother of the candidate D0 (or charmed hadron) More...
 
UInt_t fNprongsInAcc
 Number of prongs, counting the first charmed hadron as one particle (simulation cuts can lead to loss of prongs!) More...
 
Bool_t fFoundElectron
 Number of prongs, counting only the particles within acceptance. More...
 
Bool_t fDecayChain
 Does the B meson decay contain an electron? More...
 
Double_t fMotherPt
 Chained decay of charmed hadrons. More...
 
Bool_t fGenerateDecayList
 
std::vector< Int_t > fDecayProngs
 Generate the list containig strings with all PDG codes of the decay prongs. More...
 
TList * fDecayStrList
 PDG codes of the daughters separated. More...
 

Detailed Description

Class for storing and handling D0 meson candidates properties // for estimating the feed-down fraction using several sets of cuts //.

//

Author
Andrea Rossi andre.nosp@m.a.ro.nosp@m.ssi@c.nosp@m.ern..nosp@m.ch //
Felix Reidt felix.nosp@m..rei.nosp@m.dt@ce.nosp@m.rn.c.nosp@m.h // //

Definition at line 42 of file AliHFsubtractBFDcuts.h.

Constructor & Destructor Documentation

AliHFsubtractBFDcuts::AliHFsubtractBFDcuts ( )

AliHFsubtractBFDcuts // // Class for storing and handling D0 meson candidates properties // for estimating the feed-down fraction using several sets of cuts // Andrea Rossi andre.nosp@m.a.ro.nosp@m.ssi@c.nosp@m.ern..nosp@m.ch // Felix Reidt felix.nosp@m..rei.nosp@m.dt@ce.nosp@m.rn.c.nosp@m.h // //

default constructor

Definition at line 54 of file AliHFsubtractBFDcuts.cxx.

AliHFsubtractBFDcuts::AliHFsubtractBFDcuts ( const char *  name,
const char *  title 
)

default constructor with name

Definition at line 78 of file AliHFsubtractBFDcuts.cxx.

AliHFsubtractBFDcuts::~AliHFsubtractBFDcuts ( )

Definition at line 136 of file AliHFsubtractBFDcuts.cxx.

AliHFsubtractBFDcuts::AliHFsubtractBFDcuts ( const AliHFsubtractBFDcuts c)
private

copy constructor

Definition at line 106 of file AliHFsubtractBFDcuts.cxx.

Member Function Documentation

Bool_t AliHFsubtractBFDcuts::AnalyseDecay ( Bool_t  generateString,
Bool_t  mcOnly 
)
private

Definition at line 363 of file AliHFsubtractBFDcuts.cxx.

Referenced by FillGenStep(), and FillSparses().

Bool_t AliHFsubtractBFDcuts::CheckBhypothesis ( Int_t  iAODtrack,
Bool_t  Bprong 
)
private

Reconstruct a secondary vertex with the supplied tracks.

Definition at line 475 of file AliHFsubtractBFDcuts.cxx.

Referenced by AnalyseDecay(), and CountProngs().

void AliHFsubtractBFDcuts::CountProngs ( Int_t  labCurrMother,
Int_t  labCurrExcl,
Bool_t  generateString,
Bool_t  mConly 
)
private

check in which decay process a particle was created

Definition at line 424 of file AliHFsubtractBFDcuts.cxx.

Referenced by AnalyseDecay().

void AliHFsubtractBFDcuts::FillGenStep ( AliAODMCParticle *  dzeroMC,
Double_t  pt = -1,
Double_t  weight = 1.,
TClonesArray *  mcArray = 0x0,
AliAODMCHeader *  mcHeader = 0x0 
)

Definition at line 228 of file AliHFsubtractBFDcuts.cxx.

Referenced by AliCFTaskVertexingHFCutVarFDSub::UserExec().

void AliHFsubtractBFDcuts::FillSparses ( AliAODRecoDecayHF2Prong dzeroPart,
Int_t  isSelected,
Double_t  pt = -1,
Double_t  massD0 = -1,
Double_t  massD0bar = -1,
Double_t  weight = 1.,
TClonesArray *  mcArray = 0x0,
AliAODEvent *  aodEvent = 0x0,
AliAODMCHeader *  mcHeader = 0x0 
)
Bool_t AliHFsubtractBFDcuts::GetCandidateLabel ( )
private

Definition at line 345 of file AliHFsubtractBFDcuts.cxx.

Referenced by FillSparses().

TList* AliHFsubtractBFDcuts::GetDecayStrings ( )
inline
TList* AliHFsubtractBFDcuts::GetQAhists ( )
inline
THnSparseF* AliHFsubtractBFDcuts::GetSparseData ( ) const
inline
THnSparseF* AliHFsubtractBFDcuts::GetSparseMC ( ) const
inline
THnSparseF* AliHFsubtractBFDcuts::GetSparseMCgen ( ) const
inline
Bool_t AliHFsubtractBFDcuts::IsInAcceptance ( Int_t  labProng) const
private

Is that prong a stable particle?

Definition at line 466 of file AliHFsubtractBFDcuts.cxx.

Referenced by CountProngs().

Bool_t AliHFsubtractBFDcuts::IsStable ( Int_t  labProng)
private

counting the prongs of labCurrMother, labCurrExcl is assumed to be a stable particle

Definition at line 453 of file AliHFsubtractBFDcuts.cxx.

Referenced by CountProngs(), and FillGenStep().

AliHFsubtractBFDcuts AliHFsubtractBFDcuts::operator= ( const AliHFsubtractBFDcuts c)
private

assignment operator

Definition at line 130 of file AliHFsubtractBFDcuts.cxx.

AliAODVertex * AliHFsubtractBFDcuts::RecBvtx ( TObjArray *  tracks) const
private

Is that prong within the fiducial acceptance.

Definition at line 534 of file AliHFsubtractBFDcuts.cxx.

Referenced by CheckBhypothesis().

void AliHFsubtractBFDcuts::SetFillMC ( Bool_t  fillMC = kTRUE)
inline
void AliHFsubtractBFDcuts::SetHistoPtMCgen ( THnSparseF *  h)
inline

Definition at line 56 of file AliHFsubtractBFDcuts.h.

void AliHFsubtractBFDcuts::SetSparseData ( THnSparseF *  h)
inline

Definition at line 57 of file AliHFsubtractBFDcuts.h.

void AliHFsubtractBFDcuts::SetSparseMC ( THnSparseF *  h)
inline

Definition at line 58 of file AliHFsubtractBFDcuts.h.

Member Data Documentation

TClonesArray* AliHFsubtractBFDcuts::fAODtracks
private

! TClonesArray holding the AliAODTracks of the event to be processed

Definition at line 89 of file AliHFsubtractBFDcuts.h.

Referenced by AnalyseDecay(), CheckBhypothesis(), CountProngs(), and FillSparses().

Double_t AliHFsubtractBFDcuts::fBkG
private

Definition at line 91 of file AliHFsubtractBFDcuts.h.

Referenced by CheckBhypothesis(), FillSparses(), and RecBvtx().

Bool_t AliHFsubtractBFDcuts::fCheckAcceptance
private

flag for MC/Data

Definition at line 80 of file AliHFsubtractBFDcuts.h.

Referenced by CountProngs().

AliAODRecoDecayHF2Prong* AliHFsubtractBFDcuts::fD0Cand
private

Magnetic field (z-direction) in units of kG.

Definition at line 92 of file AliHFsubtractBFDcuts.h.

Referenced by FillSparses(), and GetCandidateLabel().

AliNeutralTrackParam* AliHFsubtractBFDcuts::fD0CandParam
private

Pointer to the D0 candidate from reconstruction.

Definition at line 93 of file AliHFsubtractBFDcuts.h.

Referenced by CheckBhypothesis(), and FillSparses().

Bool_t AliHFsubtractBFDcuts::fDecayChain
private

Does the B meson decay contain an electron?

Definition at line 100 of file AliHFsubtractBFDcuts.h.

Referenced by AnalyseDecay(), FillGenStep(), and FillSparses().

std::vector<Int_t> AliHFsubtractBFDcuts::fDecayProngs
private

Generate the list containig strings with all PDG codes of the decay prongs.

Definition at line 104 of file AliHFsubtractBFDcuts.h.

Referenced by AnalyseDecay(), and CountProngs().

TList* AliHFsubtractBFDcuts::fDecayStrList
private

PDG codes of the daughters separated.

! List with all decay strings

Definition at line 105 of file AliHFsubtractBFDcuts.h.

Referenced by AliHFsubtractBFDcuts(), AnalyseDecay(), and GetDecayStrings().

Bool_t AliHFsubtractBFDcuts::fFoundElectron
private

Number of prongs, counting only the particles within acceptance.

Definition at line 99 of file AliHFsubtractBFDcuts.h.

Referenced by FillGenStep(), FillSparses(), and IsStable().

Bool_t AliHFsubtractBFDcuts::fGenerateDecayList
private

Transverse momentum of the mother particle (B hadron in case of feed-down, the charmed hadron itsself in case of prompt production)

Definition at line 103 of file AliHFsubtractBFDcuts.h.

Referenced by FillGenStep().

Bool_t AliHFsubtractBFDcuts::fIsMC
private

Method to check Whether the current D0 candidate and the track originate from a B decay.

Definition at line 79 of file AliHFsubtractBFDcuts.h.

Referenced by FillGenStep(), FillSparses(), and SetFillMC().

Int_t AliHFsubtractBFDcuts::fLabCand
private

Pointer to an AliNeutralTrackParam of the D0 candidata for DCA calculation.

Definition at line 94 of file AliHFsubtractBFDcuts.h.

Referenced by AnalyseDecay(), FillGenStep(), and GetCandidateLabel().

Int_t AliHFsubtractBFDcuts::fLabMother
private

pT of the candidate (from MC track, not following decay chain)

Definition at line 96 of file AliHFsubtractBFDcuts.h.

Referenced by AnalyseDecay().

TClonesArray* AliHFsubtractBFDcuts::fMCarray
private

Event specific variables.

! TClonesArray holding the particles of the event to be processed

Definition at line 88 of file AliHFsubtractBFDcuts.h.

Referenced by AnalyseDecay(), CountProngs(), FillGenStep(), FillSparses(), GetCandidateLabel(), IsInAcceptance(), and IsStable().

Double_t AliHFsubtractBFDcuts::fMotherPt
private

Chained decay of charmed hadrons.

Definition at line 101 of file AliHFsubtractBFDcuts.h.

Referenced by AnalyseDecay(), FillGenStep(), and FillSparses().

UInt_t AliHFsubtractBFDcuts::fNprongs
private

Label of the mother of the candidate D0 (or charmed hadron)

Definition at line 97 of file AliHFsubtractBFDcuts.h.

Referenced by AnalyseDecay(), CountProngs(), FillGenStep(), and FillSparses().

UInt_t AliHFsubtractBFDcuts::fNprongsInAcc
private

Number of prongs, counting the first charmed hadron as one particle (simulation cuts can lead to loss of prongs!)

Definition at line 98 of file AliHFsubtractBFDcuts.h.

Referenced by AnalyseDecay(), CountProngs(), FillGenStep(), and FillSparses().

AliAODVertex* AliHFsubtractBFDcuts::fPriVtx
private

! Primary AOD vertex

Definition at line 90 of file AliHFsubtractBFDcuts.h.

Referenced by CheckBhypothesis(), FillSparses(), and RecBvtx().

Double_t AliHFsubtractBFDcuts::fPtCand
private

Label of the candidate D0 (charmed hadron in case of a chained decay)

Definition at line 95 of file AliHFsubtractBFDcuts.h.

Referenced by AnalyseDecay(), CheckBhypothesis(), and FillGenStep().

TList* AliHFsubtractBFDcuts::fQAhists
private

! List with QA histograms

Definition at line 85 of file AliHFsubtractBFDcuts.h.

Referenced by AliHFsubtractBFDcuts(), AnalyseDecay(), CheckBhypothesis(), FillGenStep(), FillSparses(), GetQAhists(), and InitHistos().

Bool_t AliHFsubtractBFDcuts::fResolveResonances
private

flag for checking whether the decay prongs are within acceptance

Definition at line 81 of file AliHFsubtractBFDcuts.h.

Referenced by CountProngs().

THnSparseF* AliHFsubtractBFDcuts::fTHnData
private

! THnSparse for cut variables (data, with inv mass axis), first axis is always mass

Definition at line 83 of file AliHFsubtractBFDcuts.h.

Referenced by FillSparses(), GetSparseData(), InitHistos(), and SetSparseData().

THnSparseF* AliHFsubtractBFDcuts::fTHnGenStep
private

flag resolve resonances in during the prong determination

! histo with spectrum at generation level

Definition at line 82 of file AliHFsubtractBFDcuts.h.

Referenced by FillGenStep(), GetSparseMCgen(), InitHistos(), and SetHistoPtMCgen().

THnSparseF* AliHFsubtractBFDcuts::fTHnMC
private

! THnSparse for cut variables (MC at PID level, w/o mass axis)y

Definition at line 84 of file AliHFsubtractBFDcuts.h.

Referenced by FillSparses(), GetSparseMC(), InitHistos(), and SetSparseMC().


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