AliPhysics  251aa1e (251aa1e)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliAnalysisTaskSESignificance Class Reference

#include <AliAnalysisTaskSESignificance.h>

Inheritance diagram for AliAnalysisTaskSESignificance:

Public Types

enum  FeedDownEnum { kBoth, kCharmOnly, kBeautyOnly }
 
enum  ChanDs { kAllReson, kPhi, kK0star }
 

Public Member Functions

 AliAnalysisTaskSESignificance ()
 
 AliAnalysisTaskSESignificance (const char *name, TList *listMDV, AliRDHFCuts *RDCuts, Int_t decaychannel, Int_t selectionlevel=AliRDHFCuts::kAll)
 
virtual ~AliAnalysisTaskSESignificance ()
 
Bool_t CheckConsistency ()
 
void SetReadMC (Bool_t readMC=kTRUE)
 
void SetBFeedDown (FeedDownEnum flagB)
 
void SetDFromCharmOnly ()
 
void SetDFromBeautyOnly ()
 
void SetMassLimits (Float_t range, Int_t pdg)
 
void SetMassLimits (Float_t lowlimit, Float_t uplimit)
 
void SetNBins (Int_t nbins)
 
void SetFillWithPartAntiPartBoth (Int_t value)
 
void SetDsChannel (Int_t chan)
 
void SetUseSelBit (Bool_t selBit=kTRUE)
 
void SetAODMismatchProtection (Int_t opt=1)
 
Float_t GetUpperMassLimit () const
 
Float_t GetLowerMassLimit () const
 
Int_t GetNBins () const
 
Int_t GetFillWithPartAntiPartBoth () const
 
Int_t GetBFeedDown () const
 
Int_t GetDsChannel () const
 
Bool_t GetUseSelBit () const
 
virtual void UserCreateOutputObjects ()
 Implementation of interface methods. More...
 
virtual void LocalInit ()
 
virtual void UserExec (Option_t *option)
 
virtual void Terminate (Option_t *option)
 

Private Types

enum  { kMaxPtBins =8 }
 
enum  { kMaxCutVar =10 }
 
enum  { kMaxSteps =10 }
 
enum  { kMaxNHist =500000 }
 
enum  {
  kDplustoKpipi, kD0toKpi, kDstartoKpipi, kDstoKKpi,
  kD0toKpipipi, kLambdactopKpi
}
 

Private Member Functions

void SetPDGdaughterDstoKKpi ()
 
void SetPDGdaughterDstopiKK ()
 
 AliAnalysisTaskSESignificance (const AliAnalysisTaskSESignificance &source)
 
AliAnalysisTaskSESignificanceoperator= (const AliAnalysisTaskSESignificance &source)
 
void SetPDGCodes ()
 
Int_t GetHistoIndex (Int_t iPtBin) const
 
Int_t GetSignalHistoIndex (Int_t iPtBin) const
 
Int_t GetBackgroundHistoIndex (Int_t iPtBin) const
 
Int_t GetLSHistoIndex (Int_t iPtBin) const
 
Int_t CheckOrigin (const AliAODMCParticle *mcPart, const TClonesArray *mcArray) const
 
void FillDplus (AliAODRecoDecayHF *d, TClonesArray *arrayMC, Int_t index, Int_t isSel)
 
void FillD02p (AliAODRecoDecayHF *d, TClonesArray *arrayMC, Int_t index, Int_t isSel)
 
void FillDs (AliAODRecoDecayHF *d, TClonesArray *arrayMC, Int_t index, Int_t isSel, Int_t optDecay)
 
void FillDstar (AliAODRecoCascadeHF *dstarD0pi, TClonesArray *arrayMC, Int_t index, Int_t isSel)
 
void FillD04p (AliAODRecoDecayHF *d, TClonesArray *arrayMC, Int_t index, Int_t isSel)
 
void FillLambdac (AliAODRecoDecayHF *d, TClonesArray *arrayMC, Int_t index, Int_t isSel)
 

Private Attributes

TListfOutput
 ! list send on output slot 0 More...
 
TListfCutList
 
TH1F * fMassHist [kMaxNHist]
 Multidimvector container. More...
 
TH1F * fSigHist [kMaxNHist]
 !hist. for inv mass (sig from MC truth) More...
 
TH1F * fBkgHist [kMaxNHist]
 !hist. for inv mass (bkg from MC truth) More...
 
TH1F * fRflHist [kMaxNHist]
 !hist. for inv mass (bkg from MC truth) More...
 
TH1F * fHistNEvents
 ! hist of n of aods More...
 
Float_t fUpmasslimit
 
Float_t fLowmasslimit
 upper inv mass limit for histos More...
 
AliRDHFCutsfRDCuts
 lower inv mass limit for histos More...
 
Int_t fNPtBins
 prong cut values More...
 
Int_t fAODProtection
 number of pt bins More...
 
Bool_t fReadMC
 
Bool_t fUseSelBit
 flag for access to MC More...
 
FeedDownEnum fBFeedDown
 flag to use selection bit (speed up candidates selection) More...
 
Int_t fDecChannel
 flag to search for D from B decays More...
 
Int_t fPDGmother
 decay channel identifier More...
 
Int_t fNProngs
 PDG code of D meson. More...
 
Int_t fPDGdaughters [4]
 number of prong of the decay channel More...
 
TString fBranchName
 PDG codes of daughters. More...
 
Int_t fSelectionlevel
 AOD branch name for channel. More...
 
Int_t fNVars
 selection level: kALL,kTracks,kCandidate More...
 
Float_t fVars [kMaxCutVar]
 number of selection variables More...
 
Int_t fNBins
 array with values of cut variables More...
 
Int_t fPartOrAndAntiPart
 number of bins in the mass histograms More...
 
Int_t fDsChannel
 fill histograms with particle only (+1), antiparticle only (-1), both (0) More...
 
Int_t fPDGDStarToD0pi [2]
 Ds resonant channel selected. More...
 
Int_t fPDGD0ToKpi [2]
 PDG codes for the particles in the D* -> pi + D0 decay. More...
 

Detailed Description

Definition at line 25 of file AliAnalysisTaskSESignificance.h.

Member Enumeration Documentation

anonymous enum
private
Enumerator
kMaxPtBins 

Definition at line 97 of file AliAnalysisTaskSESignificance.h.

anonymous enum
private
Enumerator
kMaxCutVar 

Definition at line 98 of file AliAnalysisTaskSESignificance.h.

anonymous enum
private
Enumerator
kMaxSteps 

Definition at line 99 of file AliAnalysisTaskSESignificance.h.

anonymous enum
private
Enumerator
kMaxNHist 

Definition at line 100 of file AliAnalysisTaskSESignificance.h.

anonymous enum
private
Enumerator
kDplustoKpipi 
kD0toKpi 
kDstartoKpipi 
kDstoKKpi 
kD0toKpipipi 
kLambdactopKpi 

Definition at line 101 of file AliAnalysisTaskSESignificance.h.

Enumerator
kAllReson 
kPhi 
kK0star 

Definition at line 30 of file AliAnalysisTaskSESignificance.h.

Enumerator
kBoth 
kCharmOnly 
kBeautyOnly 

Definition at line 29 of file AliAnalysisTaskSESignificance.h.

Constructor & Destructor Documentation

AliAnalysisTaskSESignificance::AliAnalysisTaskSESignificance ( )

Definition at line 70 of file AliAnalysisTaskSESignificance.cxx.

AliAnalysisTaskSESignificance::AliAnalysisTaskSESignificance ( const char *  name,
TList listMDV,
AliRDHFCuts RDCuts,
Int_t  decaychannel,
Int_t  selectionlevel = AliRDHFCuts::kAll 
)

Definition at line 110 of file AliAnalysisTaskSESignificance.cxx.

AliAnalysisTaskSESignificance::~AliAnalysisTaskSESignificance ( )
virtual

Definition at line 156 of file AliAnalysisTaskSESignificance.cxx.

AliAnalysisTaskSESignificance::AliAnalysisTaskSESignificance ( const AliAnalysisTaskSESignificance source)
private

Member Function Documentation

Bool_t AliAnalysisTaskSESignificance::CheckConsistency ( )

Definition at line 248 of file AliAnalysisTaskSESignificance.cxx.

Referenced by AliAnalysisTaskSESignificance().

Int_t AliAnalysisTaskSESignificance::CheckOrigin ( const AliAODMCParticle *  mcPart,
const TClonesArray *  mcArray 
) const
private

Definition at line 1020 of file AliAnalysisTaskSESignificance.cxx.

Referenced by UserExec().

void AliAnalysisTaskSESignificance::FillD02p ( AliAODRecoDecayHF d,
TClonesArray *  arrayMC,
Int_t  index,
Int_t  isSel 
)
private

Definition at line 715 of file AliAnalysisTaskSESignificance.cxx.

Referenced by UserExec().

void AliAnalysisTaskSESignificance::FillD04p ( AliAODRecoDecayHF d,
TClonesArray *  arrayMC,
Int_t  index,
Int_t  isSel 
)
private

Definition at line 878 of file AliAnalysisTaskSESignificance.cxx.

Referenced by UserExec().

void AliAnalysisTaskSESignificance::FillDplus ( AliAODRecoDecayHF d,
TClonesArray *  arrayMC,
Int_t  index,
Int_t  isSel 
)
private

Definition at line 689 of file AliAnalysisTaskSESignificance.cxx.

Referenced by UserExec().

void AliAnalysisTaskSESignificance::FillDs ( AliAODRecoDecayHF d,
TClonesArray *  arrayMC,
Int_t  index,
Int_t  isSel,
Int_t  optDecay 
)
private

Definition at line 802 of file AliAnalysisTaskSESignificance.cxx.

Referenced by UserExec().

void AliAnalysisTaskSESignificance::FillDstar ( AliAODRecoCascadeHF dstarD0pi,
TClonesArray *  arrayMC,
Int_t  index,
Int_t  isSel 
)
private

Definition at line 767 of file AliAnalysisTaskSESignificance.cxx.

Referenced by UserExec().

void AliAnalysisTaskSESignificance::FillLambdac ( AliAODRecoDecayHF d,
TClonesArray *  arrayMC,
Int_t  index,
Int_t  isSel 
)
private

Definition at line 884 of file AliAnalysisTaskSESignificance.cxx.

Referenced by UserExec().

Int_t AliAnalysisTaskSESignificance::GetBackgroundHistoIndex ( Int_t  iPtBin) const
inlineprivate

Definition at line 85 of file AliAnalysisTaskSESignificance.h.

Int_t AliAnalysisTaskSESignificance::GetBFeedDown ( ) const
inline

Definition at line 55 of file AliAnalysisTaskSESignificance.h.

Int_t AliAnalysisTaskSESignificance::GetDsChannel ( ) const
inline

Definition at line 56 of file AliAnalysisTaskSESignificance.h.

Int_t AliAnalysisTaskSESignificance::GetFillWithPartAntiPartBoth ( ) const
inline

Definition at line 54 of file AliAnalysisTaskSESignificance.h.

Int_t AliAnalysisTaskSESignificance::GetHistoIndex ( Int_t  iPtBin) const
inlineprivate

Definition at line 83 of file AliAnalysisTaskSESignificance.h.

Float_t AliAnalysisTaskSESignificance::GetLowerMassLimit ( ) const
inline

Definition at line 52 of file AliAnalysisTaskSESignificance.h.

Int_t AliAnalysisTaskSESignificance::GetLSHistoIndex ( Int_t  iPtBin) const
inlineprivate

Definition at line 86 of file AliAnalysisTaskSESignificance.h.

Int_t AliAnalysisTaskSESignificance::GetNBins ( ) const
inline

Definition at line 53 of file AliAnalysisTaskSESignificance.h.

Int_t AliAnalysisTaskSESignificance::GetSignalHistoIndex ( Int_t  iPtBin) const
inlineprivate

Definition at line 84 of file AliAnalysisTaskSESignificance.h.

Float_t AliAnalysisTaskSESignificance::GetUpperMassLimit ( ) const
inline

Definition at line 51 of file AliAnalysisTaskSESignificance.h.

Bool_t AliAnalysisTaskSESignificance::GetUseSelBit ( ) const
inline

Definition at line 57 of file AliAnalysisTaskSESignificance.h.

void AliAnalysisTaskSESignificance::LocalInit ( )
virtual

Definition at line 313 of file AliAnalysisTaskSESignificance.cxx.

AliAnalysisTaskSESignificance& AliAnalysisTaskSESignificance::operator= ( const AliAnalysisTaskSESignificance source)
private
void AliAnalysisTaskSESignificance::SetAODMismatchProtection ( Int_t  opt = 1)
inline

Definition at line 48 of file AliAnalysisTaskSESignificance.h.

void AliAnalysisTaskSESignificance::SetBFeedDown ( FeedDownEnum  flagB)
void AliAnalysisTaskSESignificance::SetDFromBeautyOnly ( )
inline

Definition at line 41 of file AliAnalysisTaskSESignificance.h.

void AliAnalysisTaskSESignificance::SetDFromCharmOnly ( )
inline

Definition at line 40 of file AliAnalysisTaskSESignificance.h.

void AliAnalysisTaskSESignificance::SetDsChannel ( Int_t  chan)
inline

Definition at line 46 of file AliAnalysisTaskSESignificance.h.

Referenced by AliAnalysisTaskSESignificance().

void AliAnalysisTaskSESignificance::SetFillWithPartAntiPartBoth ( Int_t  value)
inline

Definition at line 45 of file AliAnalysisTaskSESignificance.h.

Referenced by AddTaskSignificance().

void AliAnalysisTaskSESignificance::SetMassLimits ( Float_t  range,
Int_t  pdg 
)

Definition at line 294 of file AliAnalysisTaskSESignificance.cxx.

Referenced by AliAnalysisTaskSESignificance().

void AliAnalysisTaskSESignificance::SetMassLimits ( Float_t  lowlimit,
Float_t  uplimit 
)

Definition at line 302 of file AliAnalysisTaskSESignificance.cxx.

void AliAnalysisTaskSESignificance::SetNBins ( Int_t  nbins)
inline

Definition at line 44 of file AliAnalysisTaskSESignificance.h.

void AliAnalysisTaskSESignificance::SetPDGCodes ( )
private

Definition at line 180 of file AliAnalysisTaskSESignificance.cxx.

Referenced by AliAnalysisTaskSESignificance().

void AliAnalysisTaskSESignificance::SetPDGdaughterDstoKKpi ( )
inlineprivate

Definition at line 67 of file AliAnalysisTaskSESignificance.h.

Referenced by UserExec().

void AliAnalysisTaskSESignificance::SetPDGdaughterDstopiKK ( )
inlineprivate

Definition at line 73 of file AliAnalysisTaskSESignificance.h.

Referenced by UserExec().

void AliAnalysisTaskSESignificance::SetReadMC ( Bool_t  readMC = kTRUE)
inline

Definition at line 38 of file AliAnalysisTaskSESignificance.h.

Referenced by AddTaskSignificance().

void AliAnalysisTaskSESignificance::SetUseSelBit ( Bool_t  selBit = kTRUE)
inline

Definition at line 47 of file AliAnalysisTaskSESignificance.h.

Referenced by AddTaskSignificance().

void AliAnalysisTaskSESignificance::Terminate ( Option_t option)
virtual

Definition at line 958 of file AliAnalysisTaskSESignificance.cxx.

void AliAnalysisTaskSESignificance::UserCreateOutputObjects ( )
virtual

Implementation of interface methods.

Definition at line 376 of file AliAnalysisTaskSESignificance.cxx.

void AliAnalysisTaskSESignificance::UserExec ( Option_t option)
virtual

Definition at line 450 of file AliAnalysisTaskSESignificance.cxx.

Member Data Documentation

Int_t AliAnalysisTaskSESignificance::fAODProtection
private

number of pt bins

Definition at line 114 of file AliAnalysisTaskSESignificance.h.

Referenced by SetAODMismatchProtection(), and UserExec().

FeedDownEnum AliAnalysisTaskSESignificance::fBFeedDown
private

flag to use selection bit (speed up candidates selection)

Definition at line 118 of file AliAnalysisTaskSESignificance.h.

Referenced by GetBFeedDown(), SetBFeedDown(), and UserExec().

TH1F* AliAnalysisTaskSESignificance::fBkgHist[kMaxNHist]
private

!hist. for inv mass (bkg from MC truth)

Definition at line 107 of file AliAnalysisTaskSESignificance.h.

Referenced by AliAnalysisTaskSESignificance(), FillD02p(), FillDplus(), FillDs(), FillDstar(), FillLambdac(), Terminate(), and UserCreateOutputObjects().

TString AliAnalysisTaskSESignificance::fBranchName
private

PDG codes of daughters.

Definition at line 123 of file AliAnalysisTaskSESignificance.h.

Referenced by SetPDGCodes(), and UserExec().

TList* AliAnalysisTaskSESignificance::fCutList
private
Int_t AliAnalysisTaskSESignificance::fDecChannel
private

flag to search for D from B decays

Definition at line 119 of file AliAnalysisTaskSESignificance.h.

Referenced by AliAnalysisTaskSESignificance(), LocalInit(), SetPDGCodes(), Terminate(), UserCreateOutputObjects(), and UserExec().

Int_t AliAnalysisTaskSESignificance::fDsChannel
private

fill histograms with particle only (+1), antiparticle only (-1), both (0)

Definition at line 129 of file AliAnalysisTaskSESignificance.h.

Referenced by FillDs(), GetDsChannel(), and SetDsChannel().

TH1F* AliAnalysisTaskSESignificance::fHistNEvents
private

! hist of n of aods

Definition at line 109 of file AliAnalysisTaskSESignificance.h.

Referenced by UserCreateOutputObjects(), UserExec(), and ~AliAnalysisTaskSESignificance().

Float_t AliAnalysisTaskSESignificance::fLowmasslimit
private

upper inv mass limit for histos

Definition at line 111 of file AliAnalysisTaskSESignificance.h.

Referenced by GetLowerMassLimit(), SetMassLimits(), and UserCreateOutputObjects().

TH1F* AliAnalysisTaskSESignificance::fMassHist[kMaxNHist]
private

Multidimvector container.

!hist. for inv mass

Definition at line 105 of file AliAnalysisTaskSESignificance.h.

Referenced by AliAnalysisTaskSESignificance(), FillD02p(), FillDplus(), FillDs(), FillDstar(), FillLambdac(), Terminate(), and UserCreateOutputObjects().

Int_t AliAnalysisTaskSESignificance::fNBins
private

array with values of cut variables

Definition at line 127 of file AliAnalysisTaskSESignificance.h.

Referenced by GetNBins(), SetNBins(), and UserCreateOutputObjects().

Int_t AliAnalysisTaskSESignificance::fNProngs
private

PDG code of D meson.

Definition at line 121 of file AliAnalysisTaskSESignificance.h.

Referenced by FillD02p(), FillDs(), FillLambdac(), SetPDGCodes(), and UserExec().

Int_t AliAnalysisTaskSESignificance::fNPtBins
private

prong cut values

Definition at line 113 of file AliAnalysisTaskSESignificance.h.

Referenced by AliAnalysisTaskSESignificance(), CheckConsistency(), and UserCreateOutputObjects().

Int_t AliAnalysisTaskSESignificance::fNVars
private

selection level: kALL,kTracks,kCandidate

Definition at line 125 of file AliAnalysisTaskSESignificance.h.

Referenced by AliAnalysisTaskSESignificance(), and UserExec().

TList* AliAnalysisTaskSESignificance::fOutput
private

! list send on output slot 0

Definition at line 103 of file AliAnalysisTaskSESignificance.h.

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

Int_t AliAnalysisTaskSESignificance::fPartOrAndAntiPart
private

number of bins in the mass histograms

Definition at line 128 of file AliAnalysisTaskSESignificance.h.

Referenced by FillD02p(), FillDplus(), FillDs(), FillDstar(), FillLambdac(), GetFillWithPartAntiPartBoth(), and SetFillWithPartAntiPartBoth().

Int_t AliAnalysisTaskSESignificance::fPDGD0ToKpi[2]
private

PDG codes for the particles in the D* -> pi + D0 decay.

Definition at line 131 of file AliAnalysisTaskSESignificance.h.

Referenced by AliAnalysisTaskSESignificance(), FillDstar(), and UserExec().

Int_t AliAnalysisTaskSESignificance::fPDGdaughters[4]
private

number of prong of the decay channel

Definition at line 122 of file AliAnalysisTaskSESignificance.h.

Referenced by AliAnalysisTaskSESignificance(), SetPDGCodes(), SetPDGdaughterDstoKKpi(), SetPDGdaughterDstopiKK(), and UserExec().

Int_t AliAnalysisTaskSESignificance::fPDGDStarToD0pi[2]
private

Ds resonant channel selected.

Definition at line 130 of file AliAnalysisTaskSESignificance.h.

Referenced by AliAnalysisTaskSESignificance(), FillDstar(), and UserExec().

Int_t AliAnalysisTaskSESignificance::fPDGmother
private

decay channel identifier

Definition at line 120 of file AliAnalysisTaskSESignificance.h.

Referenced by AliAnalysisTaskSESignificance(), FillD02p(), SetPDGCodes(), and UserExec().

AliRDHFCuts* AliAnalysisTaskSESignificance::fRDCuts
private

lower inv mass limit for histos

Definition at line 112 of file AliAnalysisTaskSESignificance.h.

Referenced by AliAnalysisTaskSESignificance(), CheckConsistency(), LocalInit(), and UserExec().

Bool_t AliAnalysisTaskSESignificance::fReadMC
private

flag to activate protection against AOD-dAOD mismatch. -1: no protection, 0: check AOD/dAOD nEvents only, 1: check AOD/dAOD nEvents + TProcessID names

Definition at line 116 of file AliAnalysisTaskSESignificance.h.

Referenced by FillD02p(), FillDplus(), FillDs(), FillDstar(), FillLambdac(), SetBFeedDown(), SetReadMC(), Terminate(), UserCreateOutputObjects(), and UserExec().

TH1F* AliAnalysisTaskSESignificance::fRflHist[kMaxNHist]
private

!hist. for inv mass (bkg from MC truth)

Definition at line 108 of file AliAnalysisTaskSESignificance.h.

Referenced by AliAnalysisTaskSESignificance(), FillD02p(), FillDs(), FillDstar(), FillLambdac(), Terminate(), and UserCreateOutputObjects().

Int_t AliAnalysisTaskSESignificance::fSelectionlevel
private

AOD branch name for channel.

Definition at line 124 of file AliAnalysisTaskSESignificance.h.

Referenced by UserExec().

TH1F* AliAnalysisTaskSESignificance::fSigHist[kMaxNHist]
private

!hist. for inv mass (sig from MC truth)

Definition at line 106 of file AliAnalysisTaskSESignificance.h.

Referenced by AliAnalysisTaskSESignificance(), FillD02p(), FillDplus(), FillDs(), FillDstar(), FillLambdac(), Terminate(), and UserCreateOutputObjects().

Float_t AliAnalysisTaskSESignificance::fUpmasslimit
private
Bool_t AliAnalysisTaskSESignificance::fUseSelBit
private

flag for access to MC

Definition at line 117 of file AliAnalysisTaskSESignificance.h.

Referenced by GetUseSelBit(), SetUseSelBit(), and UserExec().

Float_t AliAnalysisTaskSESignificance::fVars[kMaxCutVar]
private

number of selection variables

Definition at line 126 of file AliAnalysisTaskSESignificance.h.

Referenced by AliAnalysisTaskSESignificance(), and UserExec().


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