AliPhysics  master (3d17d9d)
ProjectCombinHFAndFit.C File Reference
#include <TString.h>
#include <TMath.h>
#include <TFile.h>
#include <TCanvas.h>
#include <TH1F.h>
#include <TH2F.h>
#include <TH3F.h>
#include <TH1D.h>
#include <TF1.h>
#include <TStyle.h>
#include <TLatex.h>
#include <TPaveText.h>
#include <TLegend.h>
#include <TLegendEntry.h>
#include <TDatabasePDG.h>
#include "AliHFInvMassFitter.h"
#include "AliVertexingHFUtils.h"
#include "AliNormalizationCounter.h"
Include dependency graph for ProjectCombinHFAndFit.C:

Go to the source code of this file.

Enumerations

enum  Method { kME, kRot, kLS, kSB }
 

Functions

void WriteFitInfo (AliHFInvMassFitter *fitter, TH1D *histo)
 
void WriteFitFunctionsToFile (AliHFInvMassFitter *fitter, TString meth, Int_t iPtBin)
 
TH1F * FitMCInvMassSpectra (TList *lMC, TString var)
 
Bool_t ReadConfig (TString configName)
 
void PrintConfig ()
 
AliHFInvMassFitterConfigureFitter (TH1D *histo, Int_t iPtBin, Int_t backcase, Double_t minFit, Double_t maxFit, Bool_t isDirect=kFALSE)
 
void PrintGausParams (TH1F *hPulls)
 
Bool_t QuadraticSmooth (TH1 *h, Int_t ntimes=1)
 
void SetStyleHisto (TH1 *h, Int_t method, Int_t isXpt=-1)
 
void DivideCanvas (TCanvas *c, Int_t ndivisions)
 
TF1 * GausPlusLine (Double_t minRange=1.72, Double_t maxRange=2.05)
 
Double_t GetBackgroundNormalizationFactor (TH1D *hRatio, Int_t reb=1)
 
void ProjectCombinHFAndFit ()
 

Variables

TString configFileName ="configfile4lowptanalysis.txt"
 
TString fileName =""
 
TString suffix =""
 
TString fileNameMC =""
 
TString suffixMC =""
 
TString meson ="Dzero"
 
const Int_t maxPtBins =30
 
Int_t nPtBins =8
 
Double_t binLims [maxPtBins+1] ={0.,1.,2.,3.,4.,5.,6.,8.,12.}
 
Int_t rebin [maxPtBins] ={4,6,7,8,9,10,10,12}
 
Double_t minMass4Fit [maxPtBins] ={1.72,1.72,1.72,1.72,1.72,1.72,1.72,1.72}
 
Double_t maxMass4Fit [maxPtBins] ={2.04,2.04,2.04,2.04,2.04,2.04,2.04,2.04}
 
Int_t fixSigmaConf =1
 
Bool_t fixSigma [maxPtBins] ={kFALSE,kFALSE,kFALSE,kFALSE,kFALSE,kFALSE,kFALSE,kFALSE}
 
Double_t tuneSigmaOnData =-1.
 
Double_t sigmas [maxPtBins] ={0.006,0.008,0.009,0.010,0.011,0.012,0.013,0.013}
 
Int_t fixMeanConf =0
 
Bool_t fixMean [maxPtBins] ={kFALSE,kFALSE,kFALSE,kFALSE,kFALSE,kFALSE,kFALSE,kFALSE}
 
Double_t tuneMeanOnData =1.868
 
Bool_t tryDirectFit =kTRUE
 
Double_t fitSBrangelow [maxPtBins] ={1.74,1.74,1.74,1.72,1.72,1.72,1.72,1.72}
 
Double_t fitSBrangeup [maxPtBins] ={2.0,2.0,2.0,2.0,2.0,2.0,2.0,2.04}
 
Int_t nDegreeBackPolSB [maxPtBins] ={4,4,4,2,2,2,2,2}
 
Int_t optForNorm =1
 
Double_t rangeForNorm =0.05
 
Bool_t useEMwithLS =kTRUE
 
Bool_t useGeomMeanLS =kTRUE
 
Bool_t renormLS =kTRUE
 
Int_t smoothLS =0
 
TString fitoption ="E"
 
Int_t typeb =2
 
Int_t nDegreeBackPol [maxPtBins] ={2,2,2,2,2,2,2,2}
 
Bool_t correctForRefl =kTRUE
 
TString reflopt ="2gaus"
 
Double_t rOverSmodif =1
 
Int_t optBkgBinCount =1
 
Double_t nsigmaBinCounting =4.
 
Double_t costhstcut =1.1
 
Bool_t saveCanvasAsRoot =kTRUE
 
Int_t saveCanvasAsEps =1
 
TH1DhMCReflPtBin
 
TH1DhMCSigPtBin
 
Double_t minMass =1.72
 
Double_t maxMass =2.04
 
Double_t massD
 

Enumeration Type Documentation

enum Method
Enumerator
kME 
kRot 
kLS 
kSB 

Definition at line 22 of file ProjectCombinHFAndFit.C.

Function Documentation

AliHFInvMassFitter* ConfigureFitter ( TH1D histo,
Int_t  iPtBin,
Int_t  backcase,
Double_t  minFit,
Double_t  maxFit,
Bool_t  isDirect = kFALSE 
)

Definition at line 90 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

void DivideCanvas ( TCanvas *  c,
Int_t  ndivisions 
)

Definition at line 225 of file ProjectCombinHFAndFit.C.

Referenced by FitMCInvMassSpectra(), and ProjectCombinHFAndFit().

TH1F * FitMCInvMassSpectra ( TList lMC,
TString  var 
)

Definition at line 1663 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

TF1* GausPlusLine ( Double_t  minRange = 1.72,
Double_t  maxRange = 2.05 
)

Definition at line 265 of file ProjectCombinHFAndFit.C.

Double_t GetBackgroundNormalizationFactor ( TH1D hRatio,
Int_t  reb = 1 
)

Definition at line 281 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

void PrintConfig ( )

Definition at line 1738 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

void PrintGausParams ( TH1F *  hPulls)

Definition at line 144 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

void ProjectCombinHFAndFit ( )

Definition at line 405 of file ProjectCombinHFAndFit.C.

Bool_t QuadraticSmooth ( TH1 h,
Int_t  ntimes = 1 
)

Definition at line 156 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

Bool_t ReadConfig ( TString  configName)

Definition at line 1774 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

void SetStyleHisto ( TH1 h,
Int_t  method,
Int_t  isXpt = -1 
)

Definition at line 183 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

void WriteFitFunctionsToFile ( AliHFInvMassFitter fitter,
TString  meth,
Int_t  iPtBin 
)

Definition at line 1597 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

void WriteFitInfo ( AliHFInvMassFitter fitter,
TH1D histo 
)

Definition at line 1632 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

Variable Documentation

Double_t binLims[maxPtBins+1] ={0.,1.,2.,3.,4.,5.,6.,8.,12.}
TString configFileName ="configfile4lowptanalysis.txt"

Definition at line 24 of file ProjectCombinHFAndFit.C.

Bool_t correctForRefl =kTRUE
Double_t costhstcut =1.1

Definition at line 71 of file ProjectCombinHFAndFit.C.

Referenced by FitMCInvMassSpectra(), ProjectCombinHFAndFit(), and ReadConfig().

TString fileNameMC =""

Definition at line 29 of file ProjectCombinHFAndFit.C.

TString fitoption ="E"

Definition at line 61 of file ProjectCombinHFAndFit.C.

Double_t fitSBrangelow[maxPtBins] ={1.74,1.74,1.74,1.72,1.72,1.72,1.72,1.72}

Definition at line 50 of file ProjectCombinHFAndFit.C.

Referenced by PrintConfig(), ProjectCombinHFAndFit(), and ReadConfig().

Double_t fitSBrangeup[maxPtBins] ={2.0,2.0,2.0,2.0,2.0,2.0,2.0,2.04}

Definition at line 51 of file ProjectCombinHFAndFit.C.

Referenced by PrintConfig(), ProjectCombinHFAndFit(), and ReadConfig().

Bool_t fixMean[maxPtBins] ={kFALSE,kFALSE,kFALSE,kFALSE,kFALSE,kFALSE,kFALSE,kFALSE}
Int_t fixMeanConf =0
Bool_t fixSigma[maxPtBins] ={kFALSE,kFALSE,kFALSE,kFALSE,kFALSE,kFALSE,kFALSE,kFALSE}
Int_t fixSigmaConf =1
TH1D* hMCReflPtBin

Definition at line 78 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

TH1D* hMCSigPtBin

Definition at line 79 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

Double_t maxMass4Fit[maxPtBins] ={2.04,2.04,2.04,2.04,2.04,2.04,2.04,2.04}

Definition at line 40 of file ProjectCombinHFAndFit.C.

Referenced by PrintConfig(), ProjectCombinHFAndFit(), and ReadConfig().

const Int_t maxPtBins =30

Definition at line 33 of file ProjectCombinHFAndFit.C.

Double_t minMass4Fit[maxPtBins] ={1.72,1.72,1.72,1.72,1.72,1.72,1.72,1.72}

Definition at line 39 of file ProjectCombinHFAndFit.C.

Referenced by PrintConfig(), ProjectCombinHFAndFit(), and ReadConfig().

Int_t nDegreeBackPol[maxPtBins] ={2,2,2,2,2,2,2,2}
Int_t nDegreeBackPolSB[maxPtBins] ={4,4,4,2,2,2,2,2}

Definition at line 52 of file ProjectCombinHFAndFit.C.

Referenced by ConfigureFitter(), and ReadConfig().

Int_t nPtBins =8
Double_t nsigmaBinCounting =4.

Definition at line 70 of file ProjectCombinHFAndFit.C.

Referenced by PrintConfig(), ProjectCombinHFAndFit(), and ReadConfig().

Int_t optBkgBinCount =1

Definition at line 69 of file ProjectCombinHFAndFit.C.

Referenced by PrintConfig(), ProjectCombinHFAndFit(), and ReadConfig().

Int_t optForNorm =1
Double_t rangeForNorm =0.05
Int_t rebin[maxPtBins] ={4,6,7,8,9,10,10,12}

Definition at line 38 of file ProjectCombinHFAndFit.C.

Referenced by PrintConfig(), ProjectCombinHFAndFit(), and ReadConfig().

TString reflopt ="2gaus"

Definition at line 66 of file ProjectCombinHFAndFit.C.

Bool_t renormLS =kTRUE

Definition at line 58 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit(), and ReadConfig().

Double_t rOverSmodif =1

Definition at line 67 of file ProjectCombinHFAndFit.C.

Referenced by ConfigureFitter(), PrintConfig(), and ReadConfig().

Int_t saveCanvasAsEps =1

Definition at line 75 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

Bool_t saveCanvasAsRoot =kTRUE

Definition at line 74 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

Int_t smoothLS =0

Definition at line 59 of file ProjectCombinHFAndFit.C.

Referenced by PrintConfig(), ProjectCombinHFAndFit(), and ReadConfig().

TString suffix =""

Definition at line 28 of file ProjectCombinHFAndFit.C.

TString suffixMC =""

Definition at line 30 of file ProjectCombinHFAndFit.C.

Bool_t tryDirectFit =kTRUE

Definition at line 49 of file ProjectCombinHFAndFit.C.

Referenced by PrintConfig(), ProjectCombinHFAndFit(), and ReadConfig().

Double_t tuneMeanOnData =1.868

Definition at line 47 of file ProjectCombinHFAndFit.C.

Referenced by PrintConfig(), ProjectCombinHFAndFit(), and ReadConfig().

Double_t tuneSigmaOnData =-1.
Int_t typeb =2

Definition at line 62 of file ProjectCombinHFAndFit.C.

Referenced by PrintConfig(), ProjectCombinHFAndFit(), and ReadConfig().

Bool_t useEMwithLS =kTRUE

Definition at line 56 of file ProjectCombinHFAndFit.C.

Referenced by PrintConfig(), ProjectCombinHFAndFit(), and ReadConfig().

Bool_t useGeomMeanLS =kTRUE

Definition at line 57 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit(), and ReadConfig().