AliPhysics  a6017e1 (a6017e1)
ComputeAcceptance.C File Reference
#include <TDatabasePDG.h>
#include <TRandom3.h>
#include <TMath.h>
#include <TLorentzVector.h>
#include <TParticle.h>
#include <TClonesArray.h>
#include <TH1D.h>
#include <TH2D.h>
#include <TF1.h>
#include <TFile.h>
#include <TCanvas.h>
#include <TLatex.h>
#include <TSystem.h>
#include <TStyle.h>
#include <TPythia6Decayer.h>
#include <TPaveStats.h>
Include dependency graph for ComputeAcceptance.C:

Go to the source code of this file.

Enumerations

enum  EDDecay {
  kD0Kpi, kDplusKpipi, kDstarD0pi, kDsKKpi,
  kLcpKpi, kLcK0Sp, kDplusKKpi
}
 
enum  EFidY { kFixedY, kPtDepY }
 
enum  EPtShape {
  kFlat, kFONLL8TeV, kFONLL8TeVfeeddown, kFONLL7TeV,
  kPythia7TeV, kFONLL5TeV, kFONLL13TeVprompt, kFONLL13TeVfeeddown,
  kPythia13TeVprompt, kPythia13TeVfeeddown
}
 

Functions

Bool_t CountKpi (TClonesArray *array, Int_t nentries, Int_t &nPions, Int_t &nKaons, Int_t &nPionsInAcc, Int_t &nKaonsInAcc)
 
Bool_t IsInFiducialAcceptance (Double_t pt, Double_t y)
 
Bool_t CountPKpi (TClonesArray *array, Int_t nentries, Int_t &nPions, Int_t &nKaons, Int_t &nProtons, Int_t &nPionsInAcc, Int_t &nKaonsInAcc, Int_t &nProtonsInAcc, Int_t &idLcResChan)
 
TH1DLoadFONLL13TeV_promptD0 ()
 
TH1DLoadFONLL13TeV_promptDplus ()
 
TH1DLoadFONLL13TeV_promptDstar ()
 
TH1DLoadFONLL13TeV_feeddownD ()
 
TH1DLoadFONLL13TeV_feeddownDstar ()
 
TH1DLoadPYTHIA13TeV_promptD0 ()
 
TH1DLoadPYTHIA13TeV_promptDplus ()
 
TH1DLoadPYTHIA13TeV_promptDstar ()
 
TH1DLoadPYTHIA13TeV_promptDs ()
 
TH1DLoadPYTHIA13TeV_feeddownD0 ()
 
TH1DLoadPYTHIA13TeV_feeddownDplus ()
 
TH1DLoadPYTHIA13TeV_feeddownDstar ()
 
TH1DLoadPYTHIA13TeV_feeddownDs ()
 
void ComputeAcceptance ()
 

Variables

Int_t fDDecay =kD0Kpi
 
Double_t fPtMinDau =0.1
 
Double_t fEtaMaxDau =0.9
 
Int_t fOptionYFiducial =kPtDepY
 
Double_t fYMaxFidAccCut =0.8
 
Int_t fPtShape =kFONLL7TeV
 
TString fDecayTableFileName ="$ALICE_PHYSICS/PWGHF/vertexingHF/macros/decaytable_acc.dat"
 
Int_t fDebugLevel =0
 
Int_t totTrials =1000000
 

Enumeration Type Documentation

enum EDDecay
Enumerator
kD0Kpi 
kDplusKpipi 
kDstarD0pi 
kDsKKpi 
kLcpKpi 
kLcK0Sp 
kDplusKKpi 

Definition at line 21 of file ComputeAcceptance.C.

enum EFidY
Enumerator
kFixedY 
kPtDepY 

Definition at line 22 of file ComputeAcceptance.C.

enum EPtShape
Enumerator
kFlat 
kFONLL8TeV 
kFONLL8TeVfeeddown 
kFONLL7TeV 
kPythia7TeV 
kFONLL5TeV 
kFONLL13TeVprompt 
kFONLL13TeVfeeddown 
kPythia13TeVprompt 
kPythia13TeVfeeddown 

Definition at line 23 of file ComputeAcceptance.C.

Function Documentation

void ComputeAcceptance ( )

Definition at line 59 of file ComputeAcceptance.C.

Bool_t CountKpi ( TClonesArray *  array,
Int_t  nentries,
Int_t nPions,
Int_t nKaons,
Int_t nPionsInAcc,
Int_t nKaonsInAcc 
)

Definition at line 400 of file ComputeAcceptance.C.

Bool_t CountPKpi ( TClonesArray *  array,
Int_t  nentries,
Int_t nPions,
Int_t nKaons,
Int_t nProtons,
Int_t nPionsInAcc,
Int_t nKaonsInAcc,
Int_t nProtonsInAcc,
Int_t idLcResChan 
)

Definition at line 446 of file ComputeAcceptance.C.

Referenced by ComputeAcceptance().

Bool_t IsInFiducialAcceptance ( Double_t  pt,
Double_t  y 
)

Definition at line 381 of file ComputeAcceptance.C.

Referenced by ComputeAcceptance().

TH1D * LoadFONLL13TeV_feeddownD ( )

Definition at line 567 of file ComputeAcceptance.C.

Referenced by ComputeAcceptance().

TH1D * LoadFONLL13TeV_feeddownDstar ( )

Definition at line 588 of file ComputeAcceptance.C.

Referenced by ComputeAcceptance().

TH1D * LoadFONLL13TeV_promptD0 ( )

Definition at line 504 of file ComputeAcceptance.C.

Referenced by ComputeAcceptance().

TH1D * LoadFONLL13TeV_promptDplus ( )

Definition at line 525 of file ComputeAcceptance.C.

Referenced by ComputeAcceptance().

TH1D * LoadFONLL13TeV_promptDstar ( )

Definition at line 546 of file ComputeAcceptance.C.

Referenced by ComputeAcceptance().

TH1D * LoadPYTHIA13TeV_feeddownD0 ( )

Definition at line 677 of file ComputeAcceptance.C.

Referenced by ComputeAcceptance().

TH1D * LoadPYTHIA13TeV_feeddownDplus ( )

Definition at line 694 of file ComputeAcceptance.C.

Referenced by ComputeAcceptance().

TH1D * LoadPYTHIA13TeV_feeddownDs ( )

Definition at line 728 of file ComputeAcceptance.C.

Referenced by ComputeAcceptance().

TH1D * LoadPYTHIA13TeV_feeddownDstar ( )

Definition at line 711 of file ComputeAcceptance.C.

Referenced by ComputeAcceptance().

TH1D * LoadPYTHIA13TeV_promptD0 ( )

Definition at line 609 of file ComputeAcceptance.C.

Referenced by ComputeAcceptance().

TH1D * LoadPYTHIA13TeV_promptDplus ( )

Definition at line 626 of file ComputeAcceptance.C.

Referenced by ComputeAcceptance().

TH1D * LoadPYTHIA13TeV_promptDs ( )

Definition at line 660 of file ComputeAcceptance.C.

Referenced by ComputeAcceptance().

TH1D * LoadPYTHIA13TeV_promptDstar ( )

Definition at line 643 of file ComputeAcceptance.C.

Referenced by ComputeAcceptance().

Variable Documentation

Int_t fDDecay =kD0Kpi

Definition at line 26 of file ComputeAcceptance.C.

Referenced by ComputeAcceptance().

TString fDecayTableFileName ="$ALICE_PHYSICS/PWGHF/vertexingHF/macros/decaytable_acc.dat"

Definition at line 32 of file ComputeAcceptance.C.

Double_t fEtaMaxDau =0.9

Definition at line 28 of file ComputeAcceptance.C.

Referenced by ComputeAcceptance(), CountKpi(), and CountPKpi().

Int_t fOptionYFiducial =kPtDepY

Definition at line 29 of file ComputeAcceptance.C.

Referenced by ComputeAcceptance(), and IsInFiducialAcceptance().

Double_t fPtMinDau =0.1

Definition at line 27 of file ComputeAcceptance.C.

Referenced by ComputeAcceptance(), CountKpi(), and CountPKpi().

Int_t fPtShape =kFONLL7TeV

Definition at line 31 of file ComputeAcceptance.C.

Referenced by ComputeAcceptance().

Double_t fYMaxFidAccCut =0.8

Definition at line 30 of file ComputeAcceptance.C.

Referenced by ComputeAcceptance(), and IsInFiducialAcceptance().