AliPhysics  master (3d17d9d)
AliVertexingHFUtils Class Reference

Class with functions useful for different D2H analyses //. More...

#include <AliVertexingHFUtils.h>

Inheritance diagram for AliVertexingHFUtils:

Classes

struct  GlobalInOutOfPlaneChi2
 

Public Member Functions

 AliVertexingHFUtils ()
 
 AliVertexingHFUtils (Int_t k)
 
virtual ~AliVertexingHFUtils ()
 
void SetK (Int_t k)
 Functions for Event plane resolution. More...
 
void SetSubEvResol (Double_t res)
 
void SetSubEventHisto (const TH1F *hSub)
 
Int_t GetK () const
 
Double_t GetSubEvResol () const
 
Double_t Pol (Double_t x) const
 
Double_t FindChi () const
 
Double_t GetFullEvResol () const
 
void SetEtaRangeForTracklets (Double_t mineta, Double_t maxeta)
 Functions for tracklet multiplcity calculation. More...
 
Int_t GetNumberOfTrackletsInEtaRange (AliAODEvent *ev) const
 

Static Public Member Functions

static void ComputeSignificance (Double_t signal, Double_t errsignal, Double_t background, Double_t errbackground, Double_t &significance, Double_t &errsignificance)
 Significance calculator. More...
 
static Double_t FindChi (Double_t res, Int_t k=1)
 
static Double_t Pol (Double_t x, Int_t k)
 
static Double_t ResolK1 (Double_t x)
 
static Double_t GetSubEvResol (const TH1F *hSubEvCorr)
 
static Double_t GetSubEvResolLowLim (const TH1F *hSubEvCorr)
 
static Double_t GetSubEvResolHighLim (const TH1F *hSubEvCorr)
 
static Double_t GetFullEvResol (Double_t resSub, Int_t k=1)
 
static Double_t GetFullEvResol (const TH1F *hSubEvCorr, Int_t k=1)
 
static Double_t GetFullEvResolLowLim (const TH1F *hSubEvCorr, Int_t k=1)
 
static Double_t GetFullEvResolHighLim (const TH1F *hSubEvCorr, Int_t k=1)
 
static TString GetGenerator (Int_t label, AliAODMCHeader *header)
 
static Bool_t IsTrackInjected (Int_t label, AliAODMCHeader *header, TClonesArray *arrayMC)
 
static Bool_t IsTrackInjected (AliAODTrack *track, AliAODMCHeader *header, TClonesArray *arrayMC)
 
static void GetTrackPrimaryGenerator (AliAODTrack *track, AliAODMCHeader *header, TClonesArray *arrayMC, TString &nameGen)
 
static void GetTrackPrimaryGenerator (Int_t label, AliAODMCHeader *header, TClonesArray *arrayMC, TString &nameGen)
 
static Bool_t IsCandidateInjected (AliAODRecoDecayHF *cand, AliAODMCHeader *header, TClonesArray *arrayMC)
 
static Bool_t IsCandidateInjected (AliAODRecoDecayHF *cand, AliAODEvent *aod, AliAODMCHeader *header, TClonesArray *arrayMC)
 
static Bool_t HasCascadeCandidateAnyDaughInjected (AliAODRecoCascadeHF *cand, AliAODMCHeader *header, TClonesArray *arrayMC)
 
static Int_t PreSelectITSUpgrade (TClonesArray *arrayMC, AliAODMCHeader *header, TObjArray aodTracks, Int_t nDaug, Int_t pdgabs, const Int_t *pdgDg)
 
static Int_t GetNumberOfTrackletsInEtaRange (AliAODEvent *ev, Double_t mineta, Double_t maxeta)
 
static Int_t GetGeneratedMultiplicityInEtaRange (TClonesArray *arrayMC, Double_t mineta, Double_t maxeta)
 
static Int_t GetGeneratedPrimariesInEtaRange (TClonesArray *arrayMC, Double_t mineta, Double_t maxeta)
 
static Int_t GetGeneratedPhysicalPrimariesInEtaRange (TClonesArray *arrayMC, Double_t mineta, Double_t maxeta)
 
static void GetSpherocity (AliAODEvent *aod, Double_t &spherocity, Double_t &phiRef, Double_t etaMin=-0.8, Double_t etaMax=0.8, Double_t ptMin=0.15, Double_t ptMax=10., Int_t filtbit1=256, Int_t filtbit2=512, Int_t minMult=3, Double_t phiStepSizeDeg=0.1, Int_t nTrksToSkip=0, Int_t *idToSkip=0x0)
 Functions for event shape variables. More...
 
static void GetGeneratedSpherocity (TClonesArray *arrayMC, Double_t &spherocity, Double_t &phiRef, Double_t etaMin=-0.8, Double_t etaMax=0.8, Double_t ptMin=0.15, Double_t ptMax=10., Int_t minMult=3, Double_t phiStepSizeDeg=0.1)
 
static Double_t GetSphericity (AliAODEvent *aod, Double_t etaMin=-0.8, Double_t etaMax=0.8, Double_t ptMin=0.15, Double_t ptMax=10., Int_t filtbit1=256, Int_t filtbit2=512, Int_t minMult=3)
 
static Double_t GetVZEROAEqualizedMultiplicity (AliAODEvent *ev)
 Utilities for V0 multiplicity checks. More...
 
static Double_t GetVZEROCEqualizedMultiplicity (AliAODEvent *ev)
 
static void AveragePt (Float_t &averagePt, Float_t &errorPt, Float_t ptmin, Float_t ptmax, TH2F *hMassD, Float_t massFromFit, Float_t sigmaFromFit, TF1 *funcB2, Float_t sigmaRangeForSig=2.5, Float_t sigmaRangeForBkg=4.5, Float_t minMass=0., Float_t maxMass=3., Int_t rebin=1)
 Functions for computing average pt. More...
 
static Bool_t CheckT0TriggerFired (AliAODEvent *aodEv)
 Functions for processing trigger information. More...
 
static TH1DRebinHisto (TH1 *hOrig, Int_t reb, Int_t firstUse=-1)
 Rebinning of invariant mass histograms. More...
 
static TH1AdaptTemplateRangeAndBinning (const TH1 *hRef, TH1 *hData, Double_t minFit, Double_t maxFit)
 
static Double_t GetTrueImpactParameterDzero (AliAODMCHeader *mcHeader, TClonesArray *arrayMC, AliAODMCParticle *partDp)
 Functions for computing true impact parameter of D meson. More...
 
static Double_t GetTrueImpactParameterDplus (AliAODMCHeader *mcHeader, TClonesArray *arrayMC, AliAODMCParticle *partDp)
 
static Double_t GetCorrectedNtracklets (TProfile *estimatorAvg, Double_t uncorrectedNacc, Double_t vtxZ, Double_t refMult)
 
static Int_t CheckOrigin (TClonesArray *arrayMC, AliAODMCParticle *mcPart, Bool_t searchUpToQuark=kTRUE)
 Functions to check the decay tree. More...
 
static Int_t CheckOrigin (AliMCEvent *mcEvent, AliMCParticle *mcPart, Bool_t searchUpToQuark=kTRUE)
 
static Bool_t IsTrackFromCharm (AliAODTrack *tr, TClonesArray *arrayMC)
 
static Bool_t IsTrackFromBeauty (AliAODTrack *tr, TClonesArray *arrayMC)
 
static Bool_t IsTrackFromHadronDecay (Int_t pdgMoth, AliAODTrack *tr, TClonesArray *arrayMC)
 
static Double_t GetBeautyMotherPt (TClonesArray *arrayMC, AliAODMCParticle *mcPart)
 
static Double_t GetBeautyMotherPtAndPDG (TClonesArray *arrayMC, AliAODMCParticle *mcPart, Int_t &pdgGranma)
 
static Int_t CheckD0Decay (AliMCEvent *mcEvent, Int_t label, Int_t *arrayDauLab)
 
static Int_t CheckD0Decay (TClonesArray *arrayMC, AliAODMCParticle *mcPart, Int_t *arrayDauLab)
 
static Int_t CheckDplusDecay (AliMCEvent *mcEvent, Int_t label, Int_t *arrayDauLab)
 
static Int_t CheckDplusDecay (TClonesArray *arrayMC, AliAODMCParticle *mcPart, Int_t *arrayDauLab)
 
static Int_t CheckDplusKKpiDecay (AliMCEvent *mcEvent, Int_t label, Int_t *arrayDauLab)
 
static Int_t CheckDplusKKpiDecay (TClonesArray *arrayMC, AliAODMCParticle *mcPart, Int_t *arrayDauLab)
 
static Int_t CheckDplusK0spiDecay (AliMCEvent *mcEvent, Int_t label, Int_t *arrayDauLab)
 
static Int_t CheckDsDecay (AliMCEvent *mcEvent, Int_t label, Int_t *arrayDauLab)
 
static Int_t CheckDsDecay (TClonesArray *arrayMC, AliAODMCParticle *mcPart, Int_t *arrayDauLab)
 
static Int_t CheckDsK0sKDecay (AliMCEvent *mcEvent, Int_t label, Int_t *arrayDauLab)
 
static Int_t CheckDstarDecay (AliMCEvent *mcEvent, Int_t label, Int_t *arrayDauLab)
 
static Int_t CheckDstarDecay (TClonesArray *arrayMC, AliAODMCParticle *mcPart, Int_t *arrayDauLab)
 
static Int_t CheckLcpKpiDecay (AliMCEvent *mcEvent, Int_t label, Int_t *arrayDauLab)
 
static Int_t CheckLcpKpiDecay (TClonesArray *arrayMC, AliAODMCParticle *mcPart, Int_t *arrayDauLab)
 
static Int_t CheckLcV0bachelorDecay (AliMCEvent *mcEvent, Int_t label, Int_t *arrayDauLab)
 
static Int_t CheckLcV0bachelorDecay (TClonesArray *arrayMC, AliAODMCParticle *mcPart, Int_t *arrayDauLab)
 
static Int_t CheckXicXipipiDecay (AliMCEvent *mcEvent, Int_t label, Int_t *arrayDauLab)
 
static Int_t CheckBplusDecay (AliMCEvent *mcEvent, Int_t label, Int_t *arrayDauLab)
 
static Int_t CheckBplusDecay (TClonesArray *arrayMC, AliAODMCParticle *mcPart, Int_t *arrayDauLab)
 
static Int_t CheckB0toDminuspiDecay (AliMCEvent *mcEvent, Int_t label, Int_t *arrayDauLab)
 
static Int_t CheckB0toDminuspiDecay (TClonesArray *arrayMC, AliAODMCParticle *mcPart, Int_t *arrayDauLab)
 
static Int_t CheckBsDecay (AliMCEvent *mcEvent, Int_t label, Int_t *arrayDauLab, Bool_t ITS2UpgradeProd=kFALSE)
 
static Int_t CheckBsDecay (TClonesArray *arrayMC, AliAODMCParticle *mcPart, Int_t *arrayDauLab, Bool_t ITS2UpgradeProd=kFALSE)
 
static Int_t CheckLbDecay (AliMCEvent *mcEvent, Int_t label, Int_t *arrayDauLab)
 
static Int_t CheckLbDecay (TClonesArray *arrayMC, AliAODMCParticle *mcPart, Int_t *arrayDauLab)
 
static ROOT::Fit::FitResult DoInPlaneOutOfPlaneSimultaneusFit (AliHFInvMassFitter *&massfitterInPlane, AliHFInvMassFitter *&massfitterOutOfPlane, TH1F *hMassInPlane, TH1F *hMassOutOfPlane, Double_t MinMass, Double_t MaxMass, Double_t massD, vector< UInt_t > commonpars)
 
static Double_t ComputeMaxd0MeasMinusExp (AliAODRecoDecayHF *cand, Double_t bfield)
 Helper functions for D-meson analyses. More...
 
static Double_t CombineNsigmaTPCTOF (Double_t nsigmaTPC, Double_t nsigmaTOF)
 

Private Attributes

Int_t fK
 
Double_t fSubRes
 ratio of measured harmonic to event plane harmonic More...
 
Double_t fMinEtaForTracklets
 sub-event resolution = sqrt(<cos[n(phiA-phiB)] >) More...
 
Double_t fMaxEtaForTracklets
 min eta for counting tracklets More...
 

Detailed Description

Class with functions useful for different D2H analyses //.

//

Definition at line 48 of file AliVertexingHFUtils.h.

Constructor & Destructor Documentation

AliVertexingHFUtils::AliVertexingHFUtils ( )

Default contructor

Definition at line 52 of file AliVertexingHFUtils.cxx.

AliVertexingHFUtils::AliVertexingHFUtils ( Int_t  k)

Standard constructor

Definition at line 63 of file AliVertexingHFUtils.cxx.

virtual AliVertexingHFUtils::~AliVertexingHFUtils ( )
inlinevirtual

Definition at line 52 of file AliVertexingHFUtils.h.

Member Function Documentation

TH1 * AliVertexingHFUtils::AdaptTemplateRangeAndBinning ( const TH1 hRef,
TH1 hData,
Double_t  minFit,
Double_t  maxFit 
)
static

Adapt the MC histograms (for signal and reflections) to the binning of the data histogram

Definition at line 3438 of file AliVertexingHFUtils.cxx.

Referenced by ConfigureFitter(), AliHFInvMassMultiTrialFit::DoMultiTrials(), and GetNumberOfTrackletsInEtaRange().

void AliVertexingHFUtils::AveragePt ( Float_t averagePt,
Float_t errorPt,
Float_t  ptmin,
Float_t  ptmax,
TH2F hMassD,
Float_t  massFromFit,
Float_t  sigmaFromFit,
TF1 *  funcB2,
Float_t  sigmaRangeForSig = 2.5,
Float_t  sigmaRangeForBkg = 4.5,
Float_t  minMass = 0.,
Float_t  maxMass = 3.,
Int_t  rebin = 1 
)
static

Functions for computing average pt.

Compute <pt> from 2D histogram M vs pt

Definition at line 279 of file AliVertexingHFUtils.cxx.

Referenced by GetNumberOfTrackletsInEtaRange().

Int_t AliVertexingHFUtils::CheckB0toDminuspiDecay ( AliMCEvent *  mcEvent,
Int_t  label,
Int_t arrayDauLab 
)
static

Checks the Bs decay channel. Returns >= 1 for B0->Dminuspi->Kpipipi, <0 in other cases Returns 1 for the non-resonant case, 2 for the resonant case, -1 in other cases If rejected by momentum conservation check, return (-1*decay - 1) (to allow checks at task level)

NB: Loosened cut on mom. conserv. (needed because of small issue in ITS Upgrade productions)

Checks the Dplus decay channel. Returns 1 for the non-resonant case, 2 for the resonant case, -1 in other cases

Definition at line 2618 of file AliVertexingHFUtils.cxx.

Referenced by GetNumberOfTrackletsInEtaRange().

Int_t AliVertexingHFUtils::CheckB0toDminuspiDecay ( TClonesArray *  arrayMC,
AliAODMCParticle *  mcPart,
Int_t arrayDauLab 
)
static

Checks the Bs decay channel. Returns >= 1 for B0->Dminuspi->Kpipipi, <0 in other cases Returns 1 for the non-resonant case, 2 for the resonant case, -1 in other cases If rejected by momentum conservation check, return (-1*decay - 1) (to allow checks at task level)

NB: Loosened cut on mom. conserv. (needed because of small issue in ITS Upgrade productions)

Checks the Dplus decay channel. Returns 1 for the non-resonant case, 2 for the resonant case, -1 in other cases

Definition at line 2707 of file AliVertexingHFUtils.cxx.

Int_t AliVertexingHFUtils::CheckBplusDecay ( AliMCEvent *  mcEvent,
Int_t  label,
Int_t arrayDauLab 
)
static

Checks the Bplus decay channel. Returns 1 for Bplus->D0pi->Kpipi, -1 in other cases If rejected by momentum conservation check, return (-1*decay - 1) (to allow checks at task level)

NB: Loosened cut on mom. conserv. (needed because of small issue in ITS Upgrade productions)

Definition at line 2459 of file AliVertexingHFUtils.cxx.

Referenced by GetNumberOfTrackletsInEtaRange().

Int_t AliVertexingHFUtils::CheckBplusDecay ( TClonesArray *  arrayMC,
AliAODMCParticle *  mcPart,
Int_t arrayDauLab 
)
static

Checks the Bplus decay channel. Returns 1 for Bplus->D0pi->Kpipi, -1 in other cases If rejected by momentum conservation check, return (-1*decay - 1) (to allow checks at task level)

NB: Loosened cut on mom. conserv. (needed because of small issue in ITS Upgrade productions)

Definition at line 2541 of file AliVertexingHFUtils.cxx.

Int_t AliVertexingHFUtils::CheckBsDecay ( AliMCEvent *  mcEvent,
Int_t  label,
Int_t arrayDauLab,
Bool_t  ITS2UpgradeProd = kFALSE 
)
static

Checks the Bs decay channel. Returns >= 1 for Bs->Dspi->KKpipi, <0 in other cases Returns 1 for Ds->phipi->KKpi, 2 for Ds->K0*K->KKpi, 3 for the non-resonant case, 4 for Ds->f0pi->KKpi If rejected by momentum conservation check, return (-1*decay - 1) (to allow checks at task level)

NB: Loosened cut on mom. conserv. (needed because of small issue in ITS Upgrade productions)

Definition at line 2791 of file AliVertexingHFUtils.cxx.

Referenced by GetNumberOfTrackletsInEtaRange().

Int_t AliVertexingHFUtils::CheckBsDecay ( TClonesArray *  arrayMC,
AliAODMCParticle *  mcPart,
Int_t arrayDauLab,
Bool_t  ITS2UpgradeProd = kFALSE 
)
static

Checks the Bs decay channel. Returns >= 1 for Bs->Dspi->KKpipi, <0 in other cases Returns 1 for Ds->phipi->KKpi, 2 for Ds->K0*K->KKpi, 3 for the non-resonant case, 4 for Ds->f0pi->KKpi If rejected by momentum conservation check, return (-1*decay - 1) (to allow checks at task level)

NB: Loosened cut on mom. conserv. (needed because of small issue in ITS Upgrade productions)

Definition at line 2905 of file AliVertexingHFUtils.cxx.

Int_t AliVertexingHFUtils::CheckD0Decay ( TClonesArray *  arrayMC,
AliAODMCParticle *  mcPart,
Int_t arrayDauLab 
)
static

Checks the D0 decay channel. Returns 1 for the D0->Kpi case, 2 for the D0->Kpipipi case, -1 in other cases

Definition at line 1037 of file AliVertexingHFUtils.cxx.

Int_t AliVertexingHFUtils::CheckDplusDecay ( AliMCEvent *  mcEvent,
Int_t  label,
Int_t arrayDauLab 
)
static
Int_t AliVertexingHFUtils::CheckDplusDecay ( TClonesArray *  arrayMC,
AliAODMCParticle *  mcPart,
Int_t arrayDauLab 
)
static

Checks the Dplus decay channel. Returns 1 for the non-resonant case, 2 for the resonant case, -1 in other cases

Definition at line 1234 of file AliVertexingHFUtils.cxx.

Int_t AliVertexingHFUtils::CheckDplusK0spiDecay ( AliMCEvent *  mcEvent,
Int_t  label,
Int_t arrayDauLab 
)
static

Checks the Dplus->V0+pion decay channel. Returns 1 if success, -1 otherwise

Definition at line 1497 of file AliVertexingHFUtils.cxx.

Referenced by GetNumberOfTrackletsInEtaRange().

Int_t AliVertexingHFUtils::CheckDplusKKpiDecay ( AliMCEvent *  mcEvent,
Int_t  label,
Int_t arrayDauLab 
)
static

Checks the Ds decay channel. Returns 1 for Ds->phipi->KKpi, 2 for Ds->K0*K->KKpi, 3 for the non-resonant case

Definition at line 1318 of file AliVertexingHFUtils.cxx.

Referenced by GetNumberOfTrackletsInEtaRange(), and AliAnalysisTaskCheckHFMCProd::UserExec().

Int_t AliVertexingHFUtils::CheckDplusKKpiDecay ( TClonesArray *  arrayMC,
AliAODMCParticle *  mcPart,
Int_t arrayDauLab 
)
static

Checks the D+ decay channel. Returns 1 for D+->phipi->KKpi, 2 for D+->K0*K->KKpi, 3 for the non-resonant case

Definition at line 1410 of file AliVertexingHFUtils.cxx.

Int_t AliVertexingHFUtils::CheckDsDecay ( AliMCEvent *  mcEvent,
Int_t  label,
Int_t arrayDauLab 
)
static

Checks the Ds decay channel. Returns 1 for Ds->phipi->KKpi, 2 for Ds->K0*K->KKpi, 3 for the non-resonant case, 4 for Ds->f0pi->KKpi

Definition at line 1580 of file AliVertexingHFUtils.cxx.

Referenced by CheckBsDecay(), AliAnalysisTaskCombinHF::FillGenHistos(), AliAnalysisTaskDmesonMCPerform::FillGenLevelHistos(), AliAnalysisTaskSEDvsEventShapes::FillMCGenAccHistos(), GetNumberOfTrackletsInEtaRange(), and AliAnalysisTaskCheckHFMCProd::UserExec().

Int_t AliVertexingHFUtils::CheckDsDecay ( TClonesArray *  arrayMC,
AliAODMCParticle *  mcPart,
Int_t arrayDauLab 
)
static

Checks the Ds decay channel. Returns 1 for Ds->phipi->KKpi, 2 for Ds->K0*K->KKpi, 3 for the non-resonant case, 4 for Ds->f0pi->KKpi

Definition at line 1674 of file AliVertexingHFUtils.cxx.

Int_t AliVertexingHFUtils::CheckDsK0sKDecay ( AliMCEvent *  mcEvent,
Int_t  label,
Int_t arrayDauLab 
)
static

Checks the Ds->K0s+S decay channel. Returns 1 in case of success, otherwise -1

Definition at line 1763 of file AliVertexingHFUtils.cxx.

Referenced by GetNumberOfTrackletsInEtaRange().

Int_t AliVertexingHFUtils::CheckDstarDecay ( AliMCEvent *  mcEvent,
Int_t  label,
Int_t arrayDauLab 
)
static

Checks the Dstar decay channel. Returns 1 for D*->D0pi->Kpipi, -1 in other cases

Definition at line 1853 of file AliVertexingHFUtils.cxx.

Referenced by AliAnalysisTaskDmesonMCPerform::FillGenLevelHistos(), AliAnalysisTaskSEDvsEventShapes::FillMCGenAccHistos(), GetNumberOfTrackletsInEtaRange(), and AliAnalysisTaskCheckHFMCProd::UserExec().

Int_t AliVertexingHFUtils::CheckDstarDecay ( TClonesArray *  arrayMC,
AliAODMCParticle *  mcPart,
Int_t arrayDauLab 
)
static

Checks the Dstar decay channel. Returns 1 for D*->D0pi->Kpipi, -1 in other cases

Definition at line 1931 of file AliVertexingHFUtils.cxx.

Int_t AliVertexingHFUtils::CheckLbDecay ( AliMCEvent *  mcEvent,
Int_t  label,
Int_t arrayDauLab 
)
static

Checks the Lb decay channel. Returns >= 1 for Lb->Lcpi->pKpipi, <0 in other cases Returns 1 for non-resonant Lc decays and 2, 3 or 4 for resonant ones, -1 in other cases If rejected by momentum conservation check, return (-1*decay - 1) (to allow checks at task level)

NB: Loosened cut on mom. conserv. (needed because of small issue in ITS Upgrade productions)

Definition at line 3014 of file AliVertexingHFUtils.cxx.

Referenced by GetNumberOfTrackletsInEtaRange().

Int_t AliVertexingHFUtils::CheckLbDecay ( TClonesArray *  arrayMC,
AliAODMCParticle *  mcPart,
Int_t arrayDauLab 
)
static

Checks the Lb decay channel. Returns >= 1 for Lb->Lcpi->pKpipi, <0 in other cases Returns 1 for non-resonant Lc decays and 2, 3 or 4 for resonant ones, -1 in other cases If rejected by momentum conservation check, return (-1*decay - 1) (to allow checks at task level)

NB: Loosened cut on mom. conserv. (needed because of small issue in ITS Upgrade productions)

Definition at line 3109 of file AliVertexingHFUtils.cxx.

Int_t AliVertexingHFUtils::CheckLcpKpiDecay ( AliMCEvent *  mcEvent,
Int_t  label,
Int_t arrayDauLab 
)
static
Int_t AliVertexingHFUtils::CheckLcpKpiDecay ( TClonesArray *  arrayMC,
AliAODMCParticle *  mcPart,
Int_t arrayDauLab 
)
static

Checks the Lc->pKpi decay channel. Returns 1 for non-resonant decays and 2, 3 or 4 for resonant ones, -1 in other cases

Definition at line 2111 of file AliVertexingHFUtils.cxx.

Int_t AliVertexingHFUtils::CheckLcV0bachelorDecay ( AliMCEvent *  mcEvent,
Int_t  label,
Int_t arrayDauLab 
)
static

Checks the Lc->V0+bachelor decay channel. Returns 1 for pK0s, 2 for piLambda, 3 for pK0l -1 in other cases

Definition at line 2212 of file AliVertexingHFUtils.cxx.

Referenced by GetNumberOfTrackletsInEtaRange(), and AliAnalysisTaskCheckHFMCProd::UserExec().

Int_t AliVertexingHFUtils::CheckLcV0bachelorDecay ( TClonesArray *  arrayMC,
AliAODMCParticle *  mcPart,
Int_t arrayDauLab 
)
static

Checks the Lc->V0+bachelor decay channel. Returns 1 for pK0s, 2 for piLambda, 3 for pK0l -1 in other cases

Definition at line 2310 of file AliVertexingHFUtils.cxx.

Int_t AliVertexingHFUtils::CheckOrigin ( TClonesArray *  arrayMC,
AliAODMCParticle *  mcPart,
Bool_t  searchUpToQuark = kTRUE 
)
static

Functions to check the decay tree.

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

Definition at line 769 of file AliVertexingHFUtils.cxx.

Referenced by AliAnalysisTaskDmesonMCPerform::FillCandLevelHistos(), AliAnalysisTaskSED0Mass::FillCandVariables(), AliAnalysisTaskSED0MassTMVA::FillCandVariables(), AliAnalysisTaskSED0BDT::FillCandVariables(), AliAnalysisTaskCombinHF::FillGenHistos(), AliAnalysisTaskDmesonMCPerform::FillGenLevelHistos(), AliAnalysisTaskCombinHF::FillHistos(), AliAnalysisTaskSELc2V0bachelorTMVAApp::FillLc2pK0Sspectrum(), AliAnalysisTaskSELambdac::FillMassHists(), AliAnalysisTaskSED0MassNonPromptFraction::FillMassHists(), AliAnalysisTaskSED0Mass::FillMassHists(), AliAnalysisTaskSED0MassTMVA::FillMassHists(), AliAnalysisTaskSED0BDT::FillMassHists(), AliAnalysisTaskSED0MassTMVA::FillMCAcceptanceHistos(), AliAnalysisTaskSED0Mass::FillMCAcceptanceHistos(), AliAnalysisTaskSED0BDT::FillMCAcceptanceHistos(), AliAnalysisTaskSEDvsEventShapes::FillMCGenAccHistos(), AliAnalysisTaskSED0MassNonPromptFraction::FillMCGenHists(), AliAnalysisTaskSEDvsEventShapes::FillMCMassHistos(), AliAnalysisTaskSELambdac::FillVarHists(), AliAnalysisTaskSED0MassNonPromptFraction::FillVarHists(), GetNumberOfTrackletsInEtaRange(), AliAnalysisTaskSEXicPlus2XiPiPifromAODtracks::LoopOverGenParticles(), AliAnalysisTaskSEXicTopKpi::LoopOverGenParticles(), AliAnalysisTaskSEXicPlus2XiPiPifromAODtracks::MakeAnalysis(), AliAnalysisTaskSELc2V0bachelor::MakeAnalysisForLc2prK0S(), AliAnalysisTaskSELc2V0bachelorTMVA::MakeAnalysisForLc2prK0S(), AliAnalysisTaskSELc2V0bachelorTMVAApp::MakeAnalysisForLc2prK0S(), AliAnalysisTaskSEXicTopKpi::MatchRecoCandtoMC(), AliAnalysisTaskSED0Mass::NormIPvar(), AliAnalysisTaskSED0MassTMVA::NormIPvar(), AliAnalysisTaskSED0BDT::ProcessBDT(), AliAnalysisTaskSEDvsMultiplicity_BDT::ProcessBDTD0(), AliAnalysisTaskSEDvsMultiplicity_BDT::ProcessBDTDs(), AliAnalysisTaskSELambdacTMVA::SetIsLcGen(), AliAnalysisTaskSELambdacTMVA::SetIsLcReco(), AliAnalysisTaskSEDmesonPIDSysProp::UserExec(), AliAnalysisTaskCheckHFMCProd::UserExec(), AliAnalysisTaskSEB0toDminuspi::UserExec(), and AliAnalysisTaskSEDvsEventShapes::UserExec().

Int_t AliVertexingHFUtils::CheckOrigin ( AliMCEvent *  mcEvent,
AliMCParticle *  mcPart,
Bool_t  searchUpToQuark = kTRUE 
)
static

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

Definition at line 736 of file AliVertexingHFUtils.cxx.

Bool_t AliVertexingHFUtils::CheckT0TriggerFired ( AliAODEvent aodEv)
static

Functions for processing trigger information.

check if T0VTX trigger was fired, based on a workaround suggested by Alla

Definition at line 358 of file AliVertexingHFUtils.cxx.

Referenced by GetNumberOfTrackletsInEtaRange().

Int_t AliVertexingHFUtils::CheckXicXipipiDecay ( AliMCEvent *  mcEvent,
Int_t  label,
Int_t arrayDauLab 
)
static

Checks the Xic decay channel. Returns 1 for Xic->Xipipi, -1 in other cases

Definition at line 2402 of file AliVertexingHFUtils.cxx.

Referenced by GetNumberOfTrackletsInEtaRange().

Double_t AliVertexingHFUtils::CombineNsigmaTPCTOF ( Double_t  nsigmaTPC,
Double_t  nsigmaTOF 
)
static
Double_t AliVertexingHFUtils::ComputeMaxd0MeasMinusExp ( AliAODRecoDecayHF cand,
Double_t  bfield 
)
static

Helper functions for D-meson analyses.

Definition at line 3640 of file AliVertexingHFUtils.cxx.

Referenced by AliAnalysisTaskSEDvsMultiplicity_BDT::ProcessBDTDs().

void AliVertexingHFUtils::ComputeSignificance ( Double_t  signal,
Double_t  errsignal,
Double_t  background,
Double_t  errbackground,
Double_t significance,
Double_t errsignificance 
)
static
ROOT::Fit::FitResult AliVertexingHFUtils::DoInPlaneOutOfPlaneSimultaneusFit ( AliHFInvMassFitter *&  massfitterInPlane,
AliHFInvMassFitter *&  massfitterOutOfPlane,
TH1F *  hMassInPlane,
TH1F *  hMassOutOfPlane,
Double_t  MinMass,
Double_t  MaxMass,
Double_t  massD,
vector< UInt_t commonpars 
)
static

Definition at line 3518 of file AliVertexingHFUtils.cxx.

Double_t AliVertexingHFUtils::FindChi ( ) const
inline

Definition at line 66 of file AliVertexingHFUtils.h.

Referenced by FindChi(), and GetFullEvResol().

Double_t AliVertexingHFUtils::FindChi ( Double_t  res,
Int_t  k = 1 
)
static

compute chi variable (=v2*sqrt(N)) from external values

Definition at line 113 of file AliVertexingHFUtils.cxx.

Double_t AliVertexingHFUtils::GetBeautyMotherPtAndPDG ( TClonesArray *  arrayMC,
AliAODMCParticle *  mcPart,
Int_t pdgGranma 
)
static

get the pt of the beauty hadron (feed-down case), returns negative value for prompt

Definition at line 894 of file AliVertexingHFUtils.cxx.

Referenced by GetNumberOfTrackletsInEtaRange().

Double_t AliVertexingHFUtils::GetFullEvResol ( ) const
inline
Double_t AliVertexingHFUtils::GetFullEvResol ( Double_t  resSub,
Int_t  k = 1 
)
static

computes event plane resolution starting from sub event resolution

Definition at line 156 of file AliVertexingHFUtils.cxx.

Double_t AliVertexingHFUtils::GetFullEvResol ( const TH1F *  hSubEvCorr,
Int_t  k = 1 
)
static

computes event plane resolution starting from sub event correlation histogram

Definition at line 169 of file AliVertexingHFUtils.cxx.

Double_t AliVertexingHFUtils::GetFullEvResolHighLim ( const TH1F *  hSubEvCorr,
Int_t  k = 1 
)
static

computes high limit event plane resolution starting from sub event correlation histogram

Definition at line 184 of file AliVertexingHFUtils.cxx.

Referenced by GetSubEvResolHighLim().

Double_t AliVertexingHFUtils::GetFullEvResolLowLim ( const TH1F *  hSubEvCorr,
Int_t  k = 1 
)
static

computes low limit event plane resolution starting from sub event correlation histogram

Definition at line 176 of file AliVertexingHFUtils.cxx.

Referenced by GetSubEvResolHighLim().

Int_t AliVertexingHFUtils::GetGeneratedMultiplicityInEtaRange ( TClonesArray *  arrayMC,
Double_t  mineta,
Double_t  maxeta 
)
static

counts generated particles in fgiven eta range

Definition at line 205 of file AliVertexingHFUtils.cxx.

Referenced by GetNumberOfTrackletsInEtaRange().

Int_t AliVertexingHFUtils::GetGeneratedPhysicalPrimariesInEtaRange ( TClonesArray *  arrayMC,
Double_t  mineta,
Double_t  maxeta 
)
static

counts generated primary particles in given eta range

Definition at line 233 of file AliVertexingHFUtils.cxx.

Referenced by GetNumberOfTrackletsInEtaRange(), AliCFTaskVertexingHFCutVarFDSub::UserExec(), and AliCFTaskVertexingHF::UserExec().

Int_t AliVertexingHFUtils::GetGeneratedPrimariesInEtaRange ( TClonesArray *  arrayMC,
Double_t  mineta,
Double_t  maxeta 
)
static

counts generated primary particles in given eta range

Definition at line 218 of file AliVertexingHFUtils.cxx.

Referenced by GetNumberOfTrackletsInEtaRange().

void AliVertexingHFUtils::GetGeneratedSpherocity ( TClonesArray *  arrayMC,
Double_t spherocity,
Double_t phiRef,
Double_t  etaMin = -0.8,
Double_t  etaMax = 0.8,
Double_t  ptMin = 0.15,
Double_t  ptMax = 10.,
Int_t  minMult = 3,
Double_t  phiStepSizeDeg = 0.1 
)
static

compute generated spherocity

Definition at line 3330 of file AliVertexingHFUtils.cxx.

Referenced by GetNumberOfTrackletsInEtaRange(), and AliAnalysisTaskSEDvsEventShapes::UserExec().

Int_t AliVertexingHFUtils::GetK ( ) const
inline

Definition at line 63 of file AliVertexingHFUtils.h.

Int_t AliVertexingHFUtils::GetNumberOfTrackletsInEtaRange ( AliAODEvent ev) const
inline

Definition at line 103 of file AliVertexingHFUtils.h.

Double_t AliVertexingHFUtils::GetSphericity ( AliAODEvent aod,
Double_t  etaMin = -0.8,
Double_t  etaMax = 0.8,
Double_t  ptMin = 0.15,
Double_t  ptMax = 10.,
Int_t  filtbit1 = 256,
Int_t  filtbit2 = 512,
Int_t  minMult = 3 
)
static

compute sphericity

Definition at line 3199 of file AliVertexingHFUtils.cxx.

Referenced by GetNumberOfTrackletsInEtaRange(), and AliAnalysisTaskSEDvsEventShapes::UserExec().

void AliVertexingHFUtils::GetSpherocity ( AliAODEvent aod,
Double_t spherocity,
Double_t phiRef,
Double_t  etaMin = -0.8,
Double_t  etaMax = 0.8,
Double_t  ptMin = 0.15,
Double_t  ptMax = 10.,
Int_t  filtbit1 = 256,
Int_t  filtbit2 = 512,
Int_t  minMult = 3,
Double_t  phiStepSizeDeg = 0.1,
Int_t  nTrksToSkip = 0,
Int_t idToSkip = 0x0 
)
static

Functions for event shape variables.

compute spherocity

Definition at line 3256 of file AliVertexingHFUtils.cxx.

Referenced by AliAnalysisTaskSEDvsEventShapes::FillMCGenAccHistos(), GetNumberOfTrackletsInEtaRange(), and AliAnalysisTaskSEDvsEventShapes::UserExec().

Double_t AliVertexingHFUtils::GetSubEvResol ( ) const
inline

Definition at line 64 of file AliVertexingHFUtils.h.

Referenced by GetFullEvResol(), and SetSubEventHisto().

static Double_t AliVertexingHFUtils::GetSubEvResol ( const TH1F *  hSubEvCorr)
inlinestatic

Definition at line 71 of file AliVertexingHFUtils.h.

static Double_t AliVertexingHFUtils::GetSubEvResolHighLim ( const TH1F *  hSubEvCorr)
inlinestatic

Definition at line 79 of file AliVertexingHFUtils.h.

Referenced by GetFullEvResolHighLim().

static Double_t AliVertexingHFUtils::GetSubEvResolLowLim ( const TH1F *  hSubEvCorr)
inlinestatic

Definition at line 75 of file AliVertexingHFUtils.h.

Referenced by GetFullEvResolLowLim().

void AliVertexingHFUtils::GetTrackPrimaryGenerator ( AliAODTrack *  track,
AliAODMCHeader *  header,
TClonesArray *  arrayMC,
TString nameGen 
)
static
void AliVertexingHFUtils::GetTrackPrimaryGenerator ( Int_t  label,
AliAODMCHeader *  header,
TClonesArray *  arrayMC,
TString nameGen 
)
static

method to check if a track comes from a given generator

Definition at line 540 of file AliVertexingHFUtils.cxx.

Double_t AliVertexingHFUtils::GetTrueImpactParameterDplus ( AliAODMCHeader *  mcHeader,
TClonesArray *  arrayMC,
AliAODMCParticle *  partDp 
)
static
Double_t AliVertexingHFUtils::GetTrueImpactParameterDzero ( AliAODMCHeader *  mcHeader,
TClonesArray *  arrayMC,
AliAODMCParticle *  partDp 
)
static

Functions for computing true impact parameter of D meson.

true impact parameter calculation for Dzero

Definition at line 365 of file AliVertexingHFUtils.cxx.

Referenced by GetNumberOfTrackletsInEtaRange(), AliAnalysisTaskSEDvsEventShapes::UserExec(), AliAnalysisTaskSEDvsMultiplicity_BDT::UserExec(), and AliAnalysisTaskSEDvsMultiplicity::UserExec().

Double_t AliVertexingHFUtils::GetVZEROAEqualizedMultiplicity ( AliAODEvent ev)
static

Utilities for V0 multiplicity checks.

Method to get VZERO-A equalized multiplicty as done in AliCentralitySelectionTask getting the equalized VZERO factors from the tender or AOD

Definition at line 250 of file AliVertexingHFUtils.cxx.

Referenced by GetNumberOfTrackletsInEtaRange(), AliAnalysisTaskSELc2V0bachelorTMVAApp::UserExec(), AliAnalysisTaskSEDvsEventShapes::UserExec(), AliAnalysisTaskSEDvsMultiplicity_BDT::UserExec(), and AliAnalysisTaskSEDvsMultiplicity::UserExec().

Double_t AliVertexingHFUtils::GetVZEROCEqualizedMultiplicity ( AliAODEvent ev)
static
Bool_t AliVertexingHFUtils::HasCascadeCandidateAnyDaughInjected ( AliAODRecoCascadeHF cand,
AliAODMCHeader *  header,
TClonesArray *  arrayMC 
)
static

method to check if a cascade candidate comes from the signal event or from the underlying Hijing event

Definition at line 613 of file AliVertexingHFUtils.cxx.

Referenced by GetSubEvResolHighLim(), AliAnalysisTaskSELc2V0bachelorTMVA::MakeAnalysisForLc2prK0S(), and AliAnalysisTaskSELc2V0bachelorTMVAApp::MakeAnalysisForLc2prK0S().

Bool_t AliVertexingHFUtils::IsCandidateInjected ( AliAODRecoDecayHF cand,
AliAODMCHeader *  header,
TClonesArray *  arrayMC 
)
static
Bool_t AliVertexingHFUtils::IsCandidateInjected ( AliAODRecoDecayHF cand,
AliAODEvent aod,
AliAODMCHeader *  header,
TClonesArray *  arrayMC 
)
static

method to check if a D meson candidate comes from the signal event or from the underlying Hijing event works also with not-refilled candidates of reduced AODs For refilled candidates other IsCandidateInjected method recommended

Definition at line 595 of file AliVertexingHFUtils.cxx.

Bool_t AliVertexingHFUtils::IsTrackFromBeauty ( AliAODTrack *  tr,
TClonesArray *  arrayMC 
)
static

check if an AOD track originated from a charm hadron decay

Definition at line 822 of file AliVertexingHFUtils.cxx.

Referenced by GetNumberOfTrackletsInEtaRange().

Bool_t AliVertexingHFUtils::IsTrackFromCharm ( AliAODTrack *  tr,
TClonesArray *  arrayMC 
)
static

check if an AOD track originated from a charm hadron decay

Definition at line 801 of file AliVertexingHFUtils.cxx.

Referenced by GetNumberOfTrackletsInEtaRange().

Bool_t AliVertexingHFUtils::IsTrackFromHadronDecay ( Int_t  pdgMoth,
AliAODTrack *  tr,
TClonesArray *  arrayMC 
)
static

check if an AOD track originated from a charm hadron decay

Definition at line 843 of file AliVertexingHFUtils.cxx.

Referenced by GetNumberOfTrackletsInEtaRange(), and AliAnalysisTaskCombinHF::UserExec().

Bool_t AliVertexingHFUtils::IsTrackInjected ( Int_t  label,
AliAODMCHeader *  header,
TClonesArray *  arrayMC 
)
static
Bool_t AliVertexingHFUtils::IsTrackInjected ( AliAODTrack *  track,
AliAODMCHeader *  header,
TClonesArray *  arrayMC 
)
static

method to check if a track comes from the signal event or from the underlying Hijing event

Definition at line 566 of file AliVertexingHFUtils.cxx.

Double_t AliVertexingHFUtils::Pol ( Double_t  x) const
inline

Definition at line 65 of file AliVertexingHFUtils.h.

Referenced by FindChi(), GetFullEvResol(), and Pol().

Double_t AliVertexingHFUtils::Pol ( Double_t  x,
Int_t  k 
)
static

compute chi from polynomial approximation

Definition at line 93 of file AliVertexingHFUtils.cxx.

Int_t AliVertexingHFUtils::PreSelectITSUpgrade ( TClonesArray *  arrayMC,
AliAODMCHeader *  header,
TObjArray  aodTracks,
Int_t  nDaug,
Int_t  pdgabs,
const Int_t pdgDg 
)
static

Preselect function for ITS Upgrade MC's, to make a fast general preselection before filling the HF candidate Returns 0 when combination of injected+HIJING Returns 1 when purely injected + matched to MC Returns 2 when purely injected + not matched Returns 3 when purely HIJING

Definition at line 633 of file AliVertexingHFUtils.cxx.

Referenced by GetSubEvResolHighLim().

TH1D * AliVertexingHFUtils::RebinHisto ( TH1 hOrig,
Int_t  reb,
Int_t  firstUse = -1 
)
static

Rebinning of invariant mass histograms.

Rebin histogram, from bin firstUse to lastUse Use all bins if firstUse=-1 If ngroup is not an exact divider of the number of bins, the bin width is kept as reb*original width and the range of rebinned histogram is adapted

Definition at line 3394 of file AliVertexingHFUtils.cxx.

Referenced by AliHFInvMassMultiTrialFit::DoMultiTrials(), FitMassSpectra(), GetNumberOfTrackletsInEtaRange(), and ProjectCombinHFAndFit().

Double_t AliVertexingHFUtils::ResolK1 ( Double_t  x)
static

Definition at line 107 of file AliVertexingHFUtils.cxx.

Referenced by FindChi(), and GetFullEvResol().

void AliVertexingHFUtils::SetEtaRangeForTracklets ( Double_t  mineta,
Double_t  maxeta 
)
inline

Functions for tracklet multiplcity calculation.

Definition at line 98 of file AliVertexingHFUtils.h.

void AliVertexingHFUtils::SetK ( Int_t  k)
inline

Functions for Event plane resolution.

Definition at line 58 of file AliVertexingHFUtils.h.

void AliVertexingHFUtils::SetSubEventHisto ( const TH1F *  hSub)
inline

Definition at line 60 of file AliVertexingHFUtils.h.

void AliVertexingHFUtils::SetSubEvResol ( Double_t  res)
inline

Definition at line 59 of file AliVertexingHFUtils.h.

Member Data Documentation

Int_t AliVertexingHFUtils::fK
private

Definition at line 239 of file AliVertexingHFUtils.h.

Referenced by FindChi(), GetFullEvResol(), GetK(), Pol(), and SetK().

Double_t AliVertexingHFUtils::fMaxEtaForTracklets
private

min eta for counting tracklets

Definition at line 242 of file AliVertexingHFUtils.h.

Referenced by GetNumberOfTrackletsInEtaRange(), and SetEtaRangeForTracklets().

Double_t AliVertexingHFUtils::fMinEtaForTracklets
private

sub-event resolution = sqrt(<cos[n(phiA-phiB)] >)

Definition at line 241 of file AliVertexingHFUtils.h.

Referenced by GetNumberOfTrackletsInEtaRange(), and SetEtaRangeForTracklets().

Double_t AliVertexingHFUtils::fSubRes
private

ratio of measured harmonic to event plane harmonic

Definition at line 240 of file AliVertexingHFUtils.h.

Referenced by FindChi(), GetFullEvResol(), GetSubEvResol(), SetSubEventHisto(), and SetSubEvResol().


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