AliPhysics  d9e9949 (d9e9949)
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)
 
AliHFInvMassFitterConfigureFitter (TH1D *histo, Int_t iPtBin, Int_t backcase, Double_t minFit, Double_t maxFit)
 
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 fileName ="DataTrains/AnalysisResults_17pq_FAST_wSDD_train2210.root"
 
TString suffix ="3SigPID_Pt300_FidY_PilMV_EM1"
 
TString fileNameMC ="MCTrains/AnalysisResults_LHC17pq_FAST_CENTwSDD_G3_train1169-1168.root"
 
TString suffixMC ="_3SigPID_Pt300_FidY_PilMV_EM1"
 
TString meson ="Dzero"
 
const Int_t nPtBins =8
 
Double_t binLims [nPtBins+1] ={0.,1.,2.,3.,4.,5.,6.,8.,12.}
 
Double_t sigmas [nPtBins] ={0.006,0.008,0.009,0.010,0.011,0.012,0.013,0.013}
 
Bool_t saveCanvasAsRoot =kTRUE
 
Int_t saveCanvasAsEps =1
 
Int_t rebin [nPtBins] ={4,6,7,8,9,10,10,12}
 
Int_t fixSigmaConf =0
 
Bool_t fixSigma [nPtBins] ={kFALSE,kFALSE,kFALSE,kFALSE,kFALSE,kFALSE,kFALSE,kFALSE}
 
Double_t tuneSigmaOnData =-1.00
 
Int_t fixMeanConf =0
 
Bool_t fixMean [nPtBins] ={kFALSE,kFALSE,kFALSE,kFALSE,kFALSE,kFALSE,kFALSE,kFALSE}
 
Double_t minMass =1.72
 
Double_t maxMass =2.04
 
Int_t optForNorm =1
 
Double_t rangeForNorm =0.05
 
TString fitoption ="E"
 
Bool_t useEMwithLS =kTRUE
 
Int_t typeb =2
 
Double_t nsigmaBinCounting =4.
 
Int_t optBkgBinCount =1
 
Double_t massD
 
Int_t smoothLS =0
 
TString reflopt ="2gaus"
 
Bool_t correctForRefl =kTRUE
 
Double_t rOverSmodif =1
 
Bool_t tryDirectFit =kTRUE
 
Int_t nparback =0
 
Double_t fitrangelow [nPtBins] ={1.74,1.74,1.74,1.72,1.72,1.72,1.72,1.72}
 
Double_t fitrangeup [nPtBins] ={2.0,2.0,2.0,2.0,2.0,2.0,2.0,2.04}
 
Int_t nDegreeBackPol [nPtBins] ={4,4,4,2,2,2,2,2}
 
TH1DhMCReflPtBin
 
TH1DhMCSigPtBin
 

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 
)

Definition at line 87 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

void DivideCanvas ( TCanvas *  c,
Int_t  ndivisions 
)

Definition at line 210 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

TH1F * FitMCInvMassSpectra ( TList lMC)

Definition at line 1531 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

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

Definition at line 250 of file ProjectCombinHFAndFit.C.

Double_t GetBackgroundNormalizationFactor ( TH1D hRatio,
Int_t  reb = 1 
)

Definition at line 266 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

void PrintGausParams ( TH1F *  hPulls)

Definition at line 129 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

void ProjectCombinHFAndFit ( )

Definition at line 390 of file ProjectCombinHFAndFit.C.

Bool_t QuadraticSmooth ( TH1 h,
Int_t  ntimes = 1 
)

Definition at line 141 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

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

Definition at line 168 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

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

Definition at line 1473 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

void WriteFitInfo ( AliHFInvMassFitter fitter,
TH1D histo 
)

Definition at line 1500 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

Variable Documentation

Double_t binLims[nPtBins+1] ={0.,1.,2.,3.,4.,5.,6.,8.,12.}

Definition at line 39 of file ProjectCombinHFAndFit.C.

Referenced by FitMCInvMassSpectra(), and ProjectCombinHFAndFit().

Bool_t correctForRefl =kTRUE

Definition at line 69 of file ProjectCombinHFAndFit.C.

Referenced by ConfigureFitter(), ProjectCombinHFAndFit(), and WriteFitInfo().

TString fileNameMC ="MCTrains/AnalysisResults_LHC17pq_FAST_CENTwSDD_G3_train1169-1168.root"

Definition at line 27 of file ProjectCombinHFAndFit.C.

TString fitoption ="E"

Definition at line 58 of file ProjectCombinHFAndFit.C.

Double_t fitrangelow[nPtBins] ={1.74,1.74,1.74,1.72,1.72,1.72,1.72,1.72}

Definition at line 76 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

Double_t fitrangeup[nPtBins] ={2.0,2.0,2.0,2.0,2.0,2.0,2.0,2.04}

Definition at line 77 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

Bool_t fixMean[nPtBins] ={kFALSE,kFALSE,kFALSE,kFALSE,kFALSE,kFALSE,kFALSE,kFALSE}

Definition at line 53 of file ProjectCombinHFAndFit.C.

Referenced by ConfigureFitter(), and ProjectCombinHFAndFit().

Int_t fixMeanConf =0

Definition at line 52 of file ProjectCombinHFAndFit.C.

Referenced by ConfigureFitter(), and ProjectCombinHFAndFit().

Bool_t fixSigma[nPtBins] ={kFALSE,kFALSE,kFALSE,kFALSE,kFALSE,kFALSE,kFALSE,kFALSE}

Definition at line 50 of file ProjectCombinHFAndFit.C.

Referenced by ConfigureFitter(), and ProjectCombinHFAndFit().

Int_t fixSigmaConf =0

Definition at line 49 of file ProjectCombinHFAndFit.C.

Referenced by ConfigureFitter(), and ProjectCombinHFAndFit().

TH1D* hMCReflPtBin

Definition at line 80 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

TH1D* hMCSigPtBin

Definition at line 81 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

Int_t nDegreeBackPol[nPtBins] ={4,4,4,2,2,2,2,2}

Definition at line 78 of file ProjectCombinHFAndFit.C.

Referenced by ConfigureFitter(), and ProjectCombinHFAndFit().

Int_t nparback =0

Definition at line 75 of file ProjectCombinHFAndFit.C.

const Int_t nPtBins =8

Definition at line 38 of file ProjectCombinHFAndFit.C.

Referenced by FitMCInvMassSpectra(), and ProjectCombinHFAndFit().

Double_t nsigmaBinCounting =4.

Definition at line 61 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

Int_t optBkgBinCount =1

Definition at line 62 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

Int_t optForNorm =1

Definition at line 56 of file ProjectCombinHFAndFit.C.

Referenced by GetBackgroundNormalizationFactor().

Double_t rangeForNorm =0.05

Definition at line 57 of file ProjectCombinHFAndFit.C.

Referenced by GetBackgroundNormalizationFactor().

Int_t rebin[nPtBins] ={4,6,7,8,9,10,10,12}

Definition at line 48 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

TString reflopt ="2gaus"

Definition at line 68 of file ProjectCombinHFAndFit.C.

Double_t rOverSmodif =1

Definition at line 70 of file ProjectCombinHFAndFit.C.

Referenced by ConfigureFitter().

Int_t saveCanvasAsEps =1

Definition at line 45 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

Bool_t saveCanvasAsRoot =kTRUE

Definition at line 44 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

Int_t smoothLS =0

Definition at line 65 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

TString suffix ="3SigPID_Pt300_FidY_PilMV_EM1"

Definition at line 26 of file ProjectCombinHFAndFit.C.

TString suffixMC ="_3SigPID_Pt300_FidY_PilMV_EM1"

Definition at line 29 of file ProjectCombinHFAndFit.C.

Bool_t tryDirectFit =kTRUE

Definition at line 73 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

Double_t tuneSigmaOnData =-1.00

Definition at line 51 of file ProjectCombinHFAndFit.C.

Referenced by FitMCInvMassSpectra(), and ProjectCombinHFAndFit().

Int_t typeb =2

Definition at line 60 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

Bool_t useEMwithLS =kTRUE

Definition at line 59 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().