AliPhysics  5dd2c10 (5dd2c10)
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
AliHFMultiTrials Class Reference

#include <AliHFMultiTrials.h>

Inheritance diagram for AliHFMultiTrials:

Public Types

enum  EBkgFuncCases {
  kExpoBkg, kLinBkg, kPol2Bkg, kPol3Bkg,
  kPol4Bkg, kPol5Bkg, kNBkgFuncCases
}
 
enum  EFitParamCases {
  kFixSigFreeMean, kFixSigUpFreeMean, kFixSigDownFreeMean, kFreeSigFreeMean,
  kFixSigFixMean, kFreeSigFixMean, kNFitConfCases
}
 

Public Member Functions

 AliHFMultiTrials ()
 
virtual ~AliHFMultiTrials ()
 
void ConfigureRebinSteps (Int_t nSteps, Int_t *values)
 
void ConfigureLowLimFitSteps (Int_t nSteps, Double_t *values)
 
void ConfigureUpLimFitSteps (Int_t nSteps, Double_t *values)
 
void ConfigurenSigmaBinCSteps (Int_t nSteps, Double_t *values)
 
void SetMass (Double_t mass)
 
void SetSigmaGaussMC (Double_t sig)
 
void SetSigmaMCVariation (Double_t var=0.15)
 
void SetSuffixForHistoNames (const Char_t *name)
 
void SetUseChi2Fit ()
 
void SetUseLogLikelihoodFit ()
 
void SetUseExpoBackground (Bool_t opt=kTRUE)
 
void SetUseLinBackground (Bool_t opt=kTRUE)
 
void SetUsePol2Background (Bool_t opt=kTRUE)
 
void SetUsePol3Background (Bool_t opt=kTRUE)
 
void SetUsePol4Background (Bool_t opt=kTRUE)
 
void SetUsePol5Background (Bool_t opt=kTRUE)
 
void SetDrawIndividualFits (Bool_t opt=kTRUE)
 
Bool_t DoMultiTrials (TH1D *hInvMassHisto, TPad *thePad=0x0)
 
void SaveToRoot (TString fileName, TString option="recreate") const
 
void DrawHistos (TCanvas *cry) const
 

Private Member Functions

Bool_t CreateHistos ()
 
TH1F * RebinHisto (TH1D *hOrig, Int_t reb, Int_t firstUse) const
 
void BinCount (TH1F *h, TF1 *fB, Int_t rebin, Double_t minMass, Double_t maxMass, Double_t &count, Double_t &ecount) const
 
Bool_t DoFitWithPol3Bkg (TH1F *histoToFit, Double_t hmin, Double_t hmax, Int_t theCase)
 
 AliHFMultiTrials (const AliHFMultiTrials &source)
 
AliHFMultiTrialsoperator= (const AliHFMultiTrials &source)
 

Private Attributes

Int_t fNumOfRebinSteps
 
Int_t * fRebinSteps
 number of rebin steps More...
 
Int_t fNumOfLowLimFitSteps
 
Double_t * fLowLimFitSteps
 number of steps on the min. mass for fit More...
 
Int_t fNumOfUpLimFitSteps
 
Double_t * fUpLimFitSteps
 number of steps on the max. mass for fit More...
 
Int_t fNumOfnSigmaBinCSteps
 
Double_t * fnSigmaBinCSteps
 number of steps on the bin counting More...
 
Double_t fSigmaGausMC
 
Double_t fSigmaMCVariation
 sigma of D meson peak from MC More...
 
Double_t fMassD
 relative variation of the sigma More...
 
TString fSuffix
 mass of D meson More...
 
Int_t fFitOption
 name to characterize analysis case More...
 
Bool_t fUseExpoBkg
 LL or chi2 fit. More...
 
Bool_t fUseLinBkg
 switch for exponential background More...
 
Bool_t fUsePol2Bkg
 switch for linear background More...
 
Bool_t fUsePol3Bkg
 switch for pol2 background More...
 
Bool_t fUsePol4Bkg
 switch for pol3 background More...
 
Bool_t fUsePol5Bkg
 switch for pol4 background More...
 
Bool_t fDrawIndividualFits
 switch for pol5 background More...
 
TH1F * fHistoRawYieldDistAll
 flag for drawing fits More...
 
TH1F * fHistoRawYieldTrialAll
 histo with yield from all trials More...
 
TH1F * fHistoSigmaTrialAll
 histo with yield from all trials More...
 
TH1F * fHistoMeanTrialAll
 histo with gauss sigma from all trials More...
 
TH1F * fHistoChi2TrialAll
 histo with gauss mean from all trials More...
 
TH1F * fHistoRawYieldDistBinCAll
 histo with chi2 from all trials More...
 
TH2F * fHistoRawYieldTrialBinCAll
 histo with bin counts from all trials More...
 
TH1F ** fHistoRawYieldDist
 histo with bin counts from all trials More...
 
TH1F ** fHistoRawYieldTrial
 histo with yield from subsamples of trials More...
 
TH1F ** fHistoSigmaTrial
 histo with yield from subsamples of trials More...
 
TH1F ** fHistoMeanTrial
 histo with gauss sigma from subsamples of trials More...
 
TH1F ** fHistoChi2Trial
 histo with gauss mean from subsamples of trials More...
 
TH1F ** fHistoRawYieldDistBinC
 histo with chi2 from subsamples of trials More...
 
TH2F ** fHistoRawYieldTrialBinC
 histo with bin counts from subsamples of trials More...
 
TNtuple * fNtupleMultiTrials
 histo with bin counts from subsamples of trials More...
 
Double_t fMinYieldGlob
 tree More...
 
Double_t fMaxYieldGlob
 minimum yield More...
 

Detailed Description

Definition at line 12 of file AliHFMultiTrials.h.

Member Enumeration Documentation

Enumerator
kExpoBkg 
kLinBkg 
kPol2Bkg 
kPol3Bkg 
kPol4Bkg 
kPol5Bkg 
kNBkgFuncCases 

Definition at line 68 of file AliHFMultiTrials.h.

Enumerator
kFixSigFreeMean 
kFixSigUpFreeMean 
kFixSigDownFreeMean 
kFreeSigFreeMean 
kFixSigFixMean 
kFreeSigFixMean 
kNFitConfCases 

Definition at line 69 of file AliHFMultiTrials.h.

Constructor & Destructor Documentation

AliHFMultiTrials::AliHFMultiTrials ( )

Definition at line 35 of file AliHFMultiTrials.cxx.

AliHFMultiTrials::~AliHFMultiTrials ( )
virtual

Definition at line 87 of file AliHFMultiTrials.cxx.

AliHFMultiTrials::AliHFMultiTrials ( const AliHFMultiTrials source)
private

Member Function Documentation

void AliHFMultiTrials::BinCount ( TH1F *  h,
TF1 *  fB,
Int_t  rebin,
Double_t  minMass,
Double_t  maxMass,
Double_t &  count,
Double_t &  ecount 
) const
private

Definition at line 429 of file AliHFMultiTrials.cxx.

Referenced by DoMultiTrials().

void AliHFMultiTrials::ConfigureLowLimFitSteps ( Int_t  nSteps,
Double_t *  values 
)
inline

Definition at line 25 of file AliHFMultiTrials.h.

Referenced by AliHFMultiTrials().

void AliHFMultiTrials::ConfigurenSigmaBinCSteps ( Int_t  nSteps,
Double_t *  values 
)
inline

Definition at line 39 of file AliHFMultiTrials.h.

Referenced by AliHFMultiTrials().

void AliHFMultiTrials::ConfigureRebinSteps ( Int_t  nSteps,
Int_t *  values 
)
inline

Definition at line 18 of file AliHFMultiTrials.h.

Referenced by AliHFMultiTrials().

void AliHFMultiTrials::ConfigureUpLimFitSteps ( Int_t  nSteps,
Double_t *  values 
)
inline

Definition at line 32 of file AliHFMultiTrials.h.

Referenced by AliHFMultiTrials().

Bool_t AliHFMultiTrials::CreateHistos ( )
private

Definition at line 95 of file AliHFMultiTrials.cxx.

Referenced by DoMultiTrials().

Bool_t AliHFMultiTrials::DoFitWithPol3Bkg ( TH1F *  histoToFit,
Double_t  hmin,
Double_t  hmax,
Int_t  theCase 
)
private

Definition at line 444 of file AliHFMultiTrials.cxx.

Bool_t AliHFMultiTrials::DoMultiTrials ( TH1D *  hInvMassHisto,
TPad *  thePad = 0x0 
)

Definition at line 146 of file AliHFMultiTrials.cxx.

void AliHFMultiTrials::DrawHistos ( TCanvas *  cry) const

Definition at line 357 of file AliHFMultiTrials.cxx.

AliHFMultiTrials& AliHFMultiTrials::operator= ( const AliHFMultiTrials source)
private
TH1F * AliHFMultiTrials::RebinHisto ( TH1D *  hOrig,
Int_t  reb,
Int_t  firstUse 
) const
private

Definition at line 386 of file AliHFMultiTrials.cxx.

Referenced by DoMultiTrials().

void AliHFMultiTrials::SaveToRoot ( TString  fileName,
TString  option = "recreate" 
) const

Definition at line 333 of file AliHFMultiTrials.cxx.

void AliHFMultiTrials::SetDrawIndividualFits ( Bool_t  opt = kTRUE)
inline

Definition at line 62 of file AliHFMultiTrials.h.

void AliHFMultiTrials::SetMass ( Double_t  mass)
inline

Definition at line 46 of file AliHFMultiTrials.h.

void AliHFMultiTrials::SetSigmaGaussMC ( Double_t  sig)
inline

Definition at line 47 of file AliHFMultiTrials.h.

void AliHFMultiTrials::SetSigmaMCVariation ( Double_t  var = 0.15)
inline

Definition at line 48 of file AliHFMultiTrials.h.

void AliHFMultiTrials::SetSuffixForHistoNames ( const Char_t *  name)
inline

Definition at line 50 of file AliHFMultiTrials.h.

void AliHFMultiTrials::SetUseChi2Fit ( )
inline

Definition at line 53 of file AliHFMultiTrials.h.

void AliHFMultiTrials::SetUseExpoBackground ( Bool_t  opt = kTRUE)
inline

Definition at line 55 of file AliHFMultiTrials.h.

void AliHFMultiTrials::SetUseLinBackground ( Bool_t  opt = kTRUE)
inline

Definition at line 56 of file AliHFMultiTrials.h.

void AliHFMultiTrials::SetUseLogLikelihoodFit ( )
inline

Definition at line 54 of file AliHFMultiTrials.h.

void AliHFMultiTrials::SetUsePol2Background ( Bool_t  opt = kTRUE)
inline

Definition at line 57 of file AliHFMultiTrials.h.

void AliHFMultiTrials::SetUsePol3Background ( Bool_t  opt = kTRUE)
inline

Definition at line 58 of file AliHFMultiTrials.h.

void AliHFMultiTrials::SetUsePol4Background ( Bool_t  opt = kTRUE)
inline

Definition at line 59 of file AliHFMultiTrials.h.

void AliHFMultiTrials::SetUsePol5Background ( Bool_t  opt = kTRUE)
inline

Definition at line 60 of file AliHFMultiTrials.h.

Member Data Documentation

Bool_t AliHFMultiTrials::fDrawIndividualFits
private

switch for pol5 background

Definition at line 103 of file AliHFMultiTrials.h.

Referenced by DoMultiTrials(), and SetDrawIndividualFits().

Int_t AliHFMultiTrials::fFitOption
private

name to characterize analysis case

Definition at line 95 of file AliHFMultiTrials.h.

Referenced by DoMultiTrials(), SetUseChi2Fit(), and SetUseLogLikelihoodFit().

TH1F** AliHFMultiTrials::fHistoChi2Trial
private

histo with gauss mean from subsamples of trials

Definition at line 118 of file AliHFMultiTrials.h.

Referenced by CreateHistos(), DoMultiTrials(), and SaveToRoot().

TH1F* AliHFMultiTrials::fHistoChi2TrialAll
private

histo with gauss mean from all trials

Definition at line 109 of file AliHFMultiTrials.h.

Referenced by CreateHistos(), DoMultiTrials(), DrawHistos(), and SaveToRoot().

TH1F** AliHFMultiTrials::fHistoMeanTrial
private

histo with gauss sigma from subsamples of trials

Definition at line 117 of file AliHFMultiTrials.h.

Referenced by CreateHistos(), DoMultiTrials(), and SaveToRoot().

TH1F* AliHFMultiTrials::fHistoMeanTrialAll
private

histo with gauss sigma from all trials

Definition at line 108 of file AliHFMultiTrials.h.

Referenced by CreateHistos(), DoMultiTrials(), and SaveToRoot().

TH1F** AliHFMultiTrials::fHistoRawYieldDist
private

histo with bin counts from all trials

Definition at line 114 of file AliHFMultiTrials.h.

Referenced by CreateHistos(), and DoMultiTrials().

TH1F* AliHFMultiTrials::fHistoRawYieldDistAll
private

flag for drawing fits

Definition at line 105 of file AliHFMultiTrials.h.

Referenced by CreateHistos(), DoMultiTrials(), and DrawHistos().

TH1F** AliHFMultiTrials::fHistoRawYieldDistBinC
private

histo with chi2 from subsamples of trials

Definition at line 120 of file AliHFMultiTrials.h.

Referenced by CreateHistos(), DoMultiTrials(), and SaveToRoot().

TH1F* AliHFMultiTrials::fHistoRawYieldDistBinCAll
private

histo with chi2 from all trials

Definition at line 111 of file AliHFMultiTrials.h.

Referenced by CreateHistos(), DoMultiTrials(), and SaveToRoot().

TH1F** AliHFMultiTrials::fHistoRawYieldTrial
private

histo with yield from subsamples of trials

Definition at line 115 of file AliHFMultiTrials.h.

Referenced by CreateHistos(), DoMultiTrials(), and SaveToRoot().

TH1F* AliHFMultiTrials::fHistoRawYieldTrialAll
private

histo with yield from all trials

Definition at line 106 of file AliHFMultiTrials.h.

Referenced by CreateHistos(), DoMultiTrials(), DrawHistos(), and SaveToRoot().

TH2F** AliHFMultiTrials::fHistoRawYieldTrialBinC
private

histo with bin counts from subsamples of trials

Definition at line 121 of file AliHFMultiTrials.h.

Referenced by CreateHistos(), DoMultiTrials(), and SaveToRoot().

TH2F* AliHFMultiTrials::fHistoRawYieldTrialBinCAll
private

histo with bin counts from all trials

Definition at line 112 of file AliHFMultiTrials.h.

Referenced by CreateHistos(), DoMultiTrials(), and SaveToRoot().

TH1F** AliHFMultiTrials::fHistoSigmaTrial
private

histo with yield from subsamples of trials

Definition at line 116 of file AliHFMultiTrials.h.

Referenced by CreateHistos(), DoMultiTrials(), and SaveToRoot().

TH1F* AliHFMultiTrials::fHistoSigmaTrialAll
private

histo with yield from all trials

Definition at line 107 of file AliHFMultiTrials.h.

Referenced by CreateHistos(), DoMultiTrials(), DrawHistos(), and SaveToRoot().

Double_t* AliHFMultiTrials::fLowLimFitSteps
private

number of steps on the min. mass for fit

Definition at line 85 of file AliHFMultiTrials.h.

Referenced by ConfigureLowLimFitSteps(), DoMultiTrials(), and ~AliHFMultiTrials().

Double_t AliHFMultiTrials::fMassD
private

relative variation of the sigma

Definition at line 93 of file AliHFMultiTrials.h.

Referenced by DoFitWithPol3Bkg(), DoMultiTrials(), and SetMass().

Double_t AliHFMultiTrials::fMaxYieldGlob
private

minimum yield

Definition at line 126 of file AliHFMultiTrials.h.

Referenced by DoMultiTrials(), and DrawHistos().

Double_t AliHFMultiTrials::fMinYieldGlob
private

tree

Definition at line 125 of file AliHFMultiTrials.h.

Referenced by DoMultiTrials(), and DrawHistos().

Double_t* AliHFMultiTrials::fnSigmaBinCSteps
private

number of steps on the bin counting

Definition at line 89 of file AliHFMultiTrials.h.

Referenced by ConfigurenSigmaBinCSteps(), and DoMultiTrials().

TNtuple* AliHFMultiTrials::fNtupleMultiTrials
private

histo with bin counts from subsamples of trials

Definition at line 123 of file AliHFMultiTrials.h.

Referenced by CreateHistos(), DoMultiTrials(), and SaveToRoot().

Int_t AliHFMultiTrials::fNumOfLowLimFitSteps
private

Definition at line 84 of file AliHFMultiTrials.h.

Referenced by ConfigureLowLimFitSteps(), CreateHistos(), and DoMultiTrials().

Int_t AliHFMultiTrials::fNumOfnSigmaBinCSteps
private

Definition at line 88 of file AliHFMultiTrials.h.

Referenced by ConfigurenSigmaBinCSteps(), CreateHistos(), and DoMultiTrials().

Int_t AliHFMultiTrials::fNumOfRebinSteps
private

Definition at line 82 of file AliHFMultiTrials.h.

Referenced by ConfigureRebinSteps(), CreateHistos(), and DoMultiTrials().

Int_t AliHFMultiTrials::fNumOfUpLimFitSteps
private

Definition at line 86 of file AliHFMultiTrials.h.

Referenced by ConfigureUpLimFitSteps(), CreateHistos(), and DoMultiTrials().

Int_t* AliHFMultiTrials::fRebinSteps
private

number of rebin steps

Definition at line 83 of file AliHFMultiTrials.h.

Referenced by ConfigureRebinSteps(), DoMultiTrials(), and ~AliHFMultiTrials().

Double_t AliHFMultiTrials::fSigmaGausMC
private

Definition at line 91 of file AliHFMultiTrials.h.

Referenced by DoFitWithPol3Bkg(), DoMultiTrials(), and SetSigmaGaussMC().

Double_t AliHFMultiTrials::fSigmaMCVariation
private

sigma of D meson peak from MC

Definition at line 92 of file AliHFMultiTrials.h.

Referenced by DoFitWithPol3Bkg(), DoMultiTrials(), and SetSigmaMCVariation().

TString AliHFMultiTrials::fSuffix
private

mass of D meson

Definition at line 94 of file AliHFMultiTrials.h.

Referenced by CreateHistos(), and SetSuffixForHistoNames().

Double_t* AliHFMultiTrials::fUpLimFitSteps
private

number of steps on the max. mass for fit

Definition at line 87 of file AliHFMultiTrials.h.

Referenced by ConfigureUpLimFitSteps(), DoMultiTrials(), and ~AliHFMultiTrials().

Bool_t AliHFMultiTrials::fUseExpoBkg
private

LL or chi2 fit.

Definition at line 96 of file AliHFMultiTrials.h.

Referenced by DoMultiTrials(), and SetUseExpoBackground().

Bool_t AliHFMultiTrials::fUseLinBkg
private

switch for exponential background

Definition at line 97 of file AliHFMultiTrials.h.

Referenced by DoMultiTrials(), and SetUseLinBackground().

Bool_t AliHFMultiTrials::fUsePol2Bkg
private

switch for linear background

Definition at line 98 of file AliHFMultiTrials.h.

Referenced by DoMultiTrials(), and SetUsePol2Background().

Bool_t AliHFMultiTrials::fUsePol3Bkg
private

switch for pol2 background

Definition at line 99 of file AliHFMultiTrials.h.

Referenced by DoMultiTrials(), and SetUsePol3Background().

Bool_t AliHFMultiTrials::fUsePol4Bkg
private

switch for pol3 background

Definition at line 100 of file AliHFMultiTrials.h.

Referenced by DoMultiTrials(), and SetUsePol4Background().

Bool_t AliHFMultiTrials::fUsePol5Bkg
private

switch for pol4 background

Definition at line 101 of file AliHFMultiTrials.h.

Referenced by DoMultiTrials(), and SetUsePol5Background().


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