AliPhysics  vAN-20151012 (2287573)
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
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
}
 
enum  EFidY { kFixedY, kPtDepY }
 
enum  EPtShape { kFlat, kFONLL7TeV, kPythia7TeV, kFONLL5TeV }
 

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)
 
void ComputeAcceptance ()
 

Variables

Int_t fDDecay =kD0Kpi
 
Double_t fPtMinDau =0.1
 
Double_t fEtaMaxDau =0.9
 
Int_t fOptionYFiducial =kFixedY
 
Double_t fYMaxFidAccCut =0.8
 
Int_t fPtShape =kFONLL7TeV
 
TString fDecayTableFileName ="$ALICE_PHYSICS/../src/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 

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 
kFONLL7TeV 
kPythia7TeV 
kFONLL5TeV 

Definition at line 23 of file ComputeAcceptance.C.

Function Documentation

void ComputeAcceptance ( )

Definition at line 41 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 251 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 
)

Definition at line 293 of file ComputeAcceptance.C.

Referenced by ComputeAcceptance().

Bool_t IsInFiducialAcceptance ( Double_t  pt,
Double_t  y 
)

Definition at line 232 of file ComputeAcceptance.C.

Referenced by ComputeAcceptance().

Variable Documentation

Int_t fDDecay =kD0Kpi

Definition at line 26 of file ComputeAcceptance.C.

Referenced by ComputeAcceptance().

Int_t fDebugLevel =0

Definition at line 33 of file ComputeAcceptance.C.

Referenced by CountKpi(), and CountPKpi().

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

Definition at line 32 of file ComputeAcceptance.C.

Referenced by ComputeAcceptance().

Double_t fEtaMaxDau =0.9

Definition at line 28 of file ComputeAcceptance.C.

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

Int_t fOptionYFiducial =kFixedY

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().

Int_t totTrials =1000000