AliPhysics  5403132 (5403132)
FitMassSpectra.C File Reference
#include <TInterpreter.h>
#include <TString.h>
#include <TObjString.h>
#include <TObjArray.h>
#include <TMath.h>
#include <TFile.h>
#include <TCanvas.h>
#include <TH1F.h>
#include <TH2F.h>
#include <TH1D.h>
#include <TF1.h>
#include <TStyle.h>
#include <TLegend.h>
#include <TLegendEntry.h>
#include <TDatabasePDG.h>
#include <TGraph.h>
#include "AliAODRecoDecayHF.h"
#include "AliRDHFCuts.h"
#include "AliRDHFCutsDplustoKpipi.h"
#include "AliRDHFCutsDStartoKpipi.h"
#include "AliRDHFCutsDstoKKpi.h"
#include "AliRDHFCutsD0toKpi.h"
#include "AliHFMassFitter.h"
#include "AliNormalizationCounter.h"
Include dependency graph for FitMassSpectra.C:

Go to the source code of this file.

Enumerations

enum  { kD0toKpi, kDplusKpipi, kDStarD0pi, kDsKKpi }
 
enum  { kBoth, kParticleOnly, kAntiParticleOnly }
 
enum  { kExpo =0, kLinear, kPol2, kThrExpo =5 }
 
enum  { kGaus =0, kDoubleGaus }
 

Functions

Bool_t LoadDplusHistos (TObjArray *listFiles, TH1F **hMass)
 
Bool_t LoadDsHistos (TObjArray *listFiles, TH1F **hMass)
 
Bool_t LoadD0toKpiHistos (TObjArray *listFiles, TH1F **hMass)
 
Bool_t LoadDstarD0piHistos (TObjArray *listFiles, TH1F **hMass)
 
void FitMassSpectra (Int_t analysisType=kDplusKpipi, TString fileNameb="", TString fileNamec="", TString fileNamed="", TString fileNamee="")
 
void CompareFitTypes (TString *paths, TString *legtext, Int_t ncmp=3, TString *filenameYield=0x0)
 

Variables

const Int_t nPtBins =6
 
Double_t ptlims [nPtBins+1] ={2.,3.,4.,5.,6.,8.,12.}
 
Int_t rebin [nPtBins] ={2,4,4,4,4,4}
 
Int_t firstUsedBin [nPtBins] ={-1,-1,-1,-1,-1,-1}
 
TString suffix ="Loose_SecondSet1236_ForCF08"
 
Int_t typeb =kExpo
 
Int_t types =kGaus
 
Int_t optPartAntiPart =kBoth
 
Int_t factor4refl =0
 
Double_t minMassForFit =1.7
 
Double_t maxMassForFit =2.1
 
Float_t massRangeForCounting =0.05
 
TH2FhPtMass =0x0
 
Double_t nEventsForNorm =0.
 
Bool_t cutsappliedondistr =kTRUE
 
const Int_t nsamples =2
 
Int_t nevents [nsamples] ={1.18860695e+08 ,9.0374946e+07 }
 

Enumeration Type Documentation

anonymous enum
Enumerator
kD0toKpi 
kDplusKpipi 
kDStarD0pi 
kDsKKpi 

Definition at line 38 of file FitMassSpectra.C.

anonymous enum
Enumerator
kBoth 
kParticleOnly 
kAntiParticleOnly 

Definition at line 39 of file FitMassSpectra.C.

anonymous enum
Enumerator
kExpo 
kLinear 
kPol2 
kThrExpo 

Definition at line 40 of file FitMassSpectra.C.

anonymous enum
Enumerator
kGaus 
kDoubleGaus 

Definition at line 41 of file FitMassSpectra.C.

Function Documentation

void CompareFitTypes ( TString paths,
TString legtext,
Int_t  ncmp = 3,
TString filenameYield = 0x0 
)

Definition at line 751 of file FitMassSpectra.C.

void FitMassSpectra ( Int_t  analysisType = kDplusKpipi,
TString  fileNameb = "",
TString  fileNamec = "",
TString  fileNamed = "",
TString  fileNamee = "" 
)

Definition at line 86 of file FitMassSpectra.C.

Bool_t LoadD0toKpiHistos ( TObjArray listFiles,
TH1F **  hMass 
)

Definition at line 588 of file FitMassSpectra.C.

Referenced by FitMassSpectra().

Bool_t LoadDplusHistos ( TObjArray listFiles,
TH1F **  hMass 
)

Definition at line 402 of file FitMassSpectra.C.

Referenced by FitMassSpectra().

Bool_t LoadDsHistos ( TObjArray listFiles,
TH1F **  hMass 
)

Definition at line 493 of file FitMassSpectra.C.

Referenced by FitMassSpectra().

Bool_t LoadDstarD0piHistos ( TObjArray listFiles,
TH1F **  hMass 
)

Definition at line 675 of file FitMassSpectra.C.

Referenced by FitMassSpectra().

Variable Documentation

Bool_t cutsappliedondistr =kTRUE

Definition at line 68 of file FitMassSpectra.C.

Referenced by LoadD0toKpiHistos().

Int_t factor4refl =0

Definition at line 60 of file FitMassSpectra.C.

Referenced by FitMassSpectra().

Int_t firstUsedBin[nPtBins] ={-1,-1,-1,-1,-1,-1}

Definition at line 48 of file FitMassSpectra.C.

Referenced by FitMassSpectra().

TH2F* hPtMass =0x0

Definition at line 64 of file FitMassSpectra.C.

Float_t massRangeForCounting =0.05

Definition at line 63 of file FitMassSpectra.C.

Referenced by FitMassSpectra().

Double_t nEventsForNorm =0.

Definition at line 65 of file FitMassSpectra.C.

Referenced by FitMassSpectra(), and LoadDplusHistos().

const Int_t nPtBins =6
const Int_t nsamples =2

Definition at line 69 of file FitMassSpectra.C.

Referenced by CompareFitTypes().

Int_t optPartAntiPart =kBoth
Int_t rebin[nPtBins] ={2,4,4,4,4,4}

Definition at line 47 of file FitMassSpectra.C.

Referenced by FitMassSpectra().

TString suffix ="Loose_SecondSet1236_ForCF08"

Definition at line 50 of file FitMassSpectra.C.