AliPhysics  vAN-20150827 (3e81cbb)
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
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 <TLatex.h>
#include <TPaveText.h>
#include <TLegend.h>
#include <TLegendEntry.h>
#include <TDatabasePDG.h>
#include "AliHFMassFitter.h"
#include "AliHFMassFitterVAR.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 (AliHFMassFitter *fitter, TH1D *histo)
 
TH1 * AdaptRangesAndBinning (const TH1 *hRef, TH1 *h1)
 
AliHFMassFitterConfigureFitter (TH1D *histo, Int_t iPtBin)
 
AliHFMassFitterVARConfigureFitterVAR (TH1D *histo, Int_t iPtBin, Int_t typeback=6, Bool_t saveReflModifPlot=kTRUE)
 
Double_t GetSignalBinCounting (TH1 *h, TF1 *fbackground, Double_t &err, Double_t nsigmaBC=4., Double_t sigmafit=0.010, Double_t minx=-999, Double_t maxx=-999)
 
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)
 
void ProjectCombinHFAndFit ()
 

Variables

TString fileName ="AnalysisResults_train543544.root"
 
TString fileNameMC ="AnalysisResultsMC_train471472.root"
 
TString suffix ="c3SigPID_Pt400_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]
 
Bool_t saveCanvasAsRoot =kTRUE
 
Int_t saveCanvasAsEps =2
 
Int_t rebin [nPtBins] ={5,5,5,5,5,5,5,5}
 
Bool_t fixSigma =kTRUE
 
Bool_t fixMean =kFALSE
 
Double_t minMass =1.74
 
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.
 
Double_t massD
 
Int_t smoothLS =0
 
TString reflopt ="2gaus"
 
Bool_t correctForRefl =kFALSE
 
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.0}
 
Int_t nDegreeBackPol [nPtBins] ={4,4,4,2,2,2,2,2}
 
TH1D * hMCReflPtBin
 
TH1D * hMCSigPtBin
 

Enumeration Type Documentation

enum Method
Enumerator
kME 
kRot 
kLS 
kSB 

Definition at line 21 of file ProjectCombinHFAndFit.C.

Function Documentation

TH1 * AdaptRangesAndBinning ( const TH1 *  hRef,
TH1 *  h1 
)

Definition at line 209 of file ProjectCombinHFAndFit.C.

Referenced by ConfigureFitterVAR().

AliHFMassFitter* ConfigureFitter ( TH1D *  histo,
Int_t  iPtBin 
)

Definition at line 72 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

AliHFMassFitterVAR* ConfigureFitterVAR ( TH1D *  histo,
Int_t  iPtBin,
Int_t  typeback = 6,
Bool_t  saveReflModifPlot = kTRUE 
)

Definition at line 84 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

void DivideCanvas ( TCanvas *  c,
Int_t  ndivisions 
)

Definition at line 335 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

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

Definition at line 373 of file ProjectCombinHFAndFit.C.

Double_t GetBackgroundNormalizationFactor ( TH1D *  hRatio)

Definition at line 388 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

Double_t GetSignalBinCounting ( TH1 *  h,
TF1 *  fbackground,
Double_t &  err,
Double_t  nsigmaBC = 4.,
Double_t  sigmafit = 0.010,
Double_t  minx = -999,
Double_t  maxx = -999 
)

Definition at line 140 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

void PrintGausParams ( TH1F *  hPulls)

Definition at line 198 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

void ProjectCombinHFAndFit ( )

Definition at line 413 of file ProjectCombinHFAndFit.C.

Bool_t QuadraticSmooth ( TH1 *  h,
Int_t  ntimes = 1 
)

Definition at line 266 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

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

Definition at line 293 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

void WriteFitInfo ( AliHFMassFitter fitter,
TH1D *  histo 
)

Definition at line 1266 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 29 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

Bool_t correctForRefl =kFALSE

Definition at line 55 of file ProjectCombinHFAndFit.C.

Referenced by ConfigureFitterVAR(), and ProjectCombinHFAndFit().

TString fileNameMC ="AnalysisResultsMC_train471472.root"

Definition at line 25 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

TString fitoption ="E"

Definition at line 45 of file ProjectCombinHFAndFit.C.

Referenced by ConfigureFitterVAR().

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

Definition at line 62 of file ProjectCombinHFAndFit.C.

Referenced by ConfigureFitterVAR(), and ProjectCombinHFAndFit().

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

Definition at line 63 of file ProjectCombinHFAndFit.C.

Referenced by ConfigureFitterVAR(), and ProjectCombinHFAndFit().

Bool_t fixMean =kFALSE

Definition at line 40 of file ProjectCombinHFAndFit.C.

Referenced by ConfigureFitter(), and ConfigureFitterVAR().

Bool_t fixSigma =kTRUE

Definition at line 39 of file ProjectCombinHFAndFit.C.

Referenced by ConfigureFitter(), and ConfigureFitterVAR().

TH1D* hMCReflPtBin

Definition at line 66 of file ProjectCombinHFAndFit.C.

Referenced by ConfigureFitterVAR(), and ProjectCombinHFAndFit().

TH1D* hMCSigPtBin

Definition at line 67 of file ProjectCombinHFAndFit.C.

Referenced by ConfigureFitterVAR(), and ProjectCombinHFAndFit().

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

Definition at line 64 of file ProjectCombinHFAndFit.C.

Referenced by ConfigureFitterVAR(), and ProjectCombinHFAndFit().

Int_t nparback =0

Definition at line 61 of file ProjectCombinHFAndFit.C.

const Int_t nPtBins =8

Definition at line 28 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

Double_t nsigmaBinCounting =4.

Definition at line 48 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

Int_t optForNorm =1

Definition at line 43 of file ProjectCombinHFAndFit.C.

Referenced by GetBackgroundNormalizationFactor().

Double_t rangeForNorm =0.05

Definition at line 44 of file ProjectCombinHFAndFit.C.

Referenced by GetBackgroundNormalizationFactor().

Int_t rebin[nPtBins] ={5,5,5,5,5,5,5,5}

Definition at line 38 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

TString reflopt ="2gaus"

Definition at line 54 of file ProjectCombinHFAndFit.C.

Referenced by ConfigureFitterVAR().

Double_t rOverSmodif =1

Definition at line 56 of file ProjectCombinHFAndFit.C.

Referenced by ConfigureFitterVAR().

Int_t saveCanvasAsEps =2

Definition at line 35 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

Bool_t saveCanvasAsRoot =kTRUE

Definition at line 34 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

Int_t smoothLS =0

Definition at line 51 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

TString suffix ="c3SigPID_Pt400_EM1"

Definition at line 26 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

Bool_t tryDirectFit =kTRUE

Definition at line 59 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().

Int_t typeb =2

Definition at line 47 of file ProjectCombinHFAndFit.C.

Referenced by ConfigureFitter(), and ProjectCombinHFAndFit().

Bool_t useEMwithLS =kTRUE

Definition at line 46 of file ProjectCombinHFAndFit.C.

Referenced by ProjectCombinHFAndFit().