AliPhysics  5dd2c10 (5dd2c10)
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
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)
 
TH1F * RebinHisto (TH1F *hOrig, Int_t reb, Int_t firstUse=-1)
 
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
 
TH2F * hPtMass =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 748 of file FitMassSpectra.C.

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

Definition at line 88 of file FitMassSpectra.C.

Bool_t LoadD0toKpiHistos ( TObjArray *  listFiles,
TH1F **  hMass 
)

Definition at line 585 of file FitMassSpectra.C.

Referenced by FitMassSpectra().

Bool_t LoadDplusHistos ( TObjArray *  listFiles,
TH1F **  hMass 
)

Definition at line 399 of file FitMassSpectra.C.

Referenced by FitMassSpectra().

Bool_t LoadDsHistos ( TObjArray *  listFiles,
TH1F **  hMass 
)

Definition at line 490 of file FitMassSpectra.C.

Referenced by FitMassSpectra().

Bool_t LoadDstarD0piHistos ( TObjArray *  listFiles,
TH1F **  hMass 
)

Definition at line 672 of file FitMassSpectra.C.

Referenced by FitMassSpectra().

TH1F * RebinHisto ( TH1F *  hOrig,
Int_t  reb,
Int_t  firstUse = -1 
)

Definition at line 921 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.

Referenced by FitMassSpectra(), LoadDplusHistos(), and LoadDsHistos().

Float_t massRangeForCounting =0.05

Definition at line 63 of file FitMassSpectra.C.

Referenced by FitMassSpectra().

Double_t maxMassForFit =2.1

Definition at line 62 of file FitMassSpectra.C.

Referenced by AliHFMultiTrials::DoMultiTrials(), and FitMassSpectra().

Double_t minMassForFit =1.7

Definition at line 61 of file FitMassSpectra.C.

Referenced by AliHFMultiTrials::DoMultiTrials(), and 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.

Referenced by LoadDplusHistos().

Int_t typeb =kExpo

Definition at line 57 of file FitMassSpectra.C.

Referenced by AliHFMultiTrials::DoMultiTrials(), and FitMassSpectra().

Int_t types =kGaus

Definition at line 58 of file FitMassSpectra.C.

Referenced by AliHFMultiTrials::DoMultiTrials(), and FitMassSpectra().