AliPhysics  9b6b435 (9b6b435)
AverageDmesonRaa.C File Reference
#include "TFile.h"
#include "TH1.h"
#include "TH1D.h"
#include "TH2.h"
#include "TH2D.h"
#include "TH3.h"
#include "TH3D.h"
#include "TNtuple.h"
#include "TGraphAsymmErrors.h"
#include "TMath.h"
#include "TCanvas.h"
#include "TLegend.h"
#include "TROOT.h"
#include "TStyle.h"
#include "TLine.h"
#include "TLatex.h"
#include "AliHFSystErr.h"
#include <Riostream.h>
Include dependency graph for AverageDmesonRaa.C:

Go to the source code of this file.

Enumerations

enum  AverageOption {
  kRelativeStatUnc =0, kRelativeStatUncorrWoPidSyst, kRelativeStatUncorrWPidSyst, kRelativeStatRawYieldSyst,
  kRelativeStatGlobalSyst, kAbsoluteStatUnc
}
 
enum  centrality {
  kpp, k07half, kpPb0100, k010,
  k1020, k020, k2040, k2030,
  k3040, k4050, k3050, k5060,
  k4060, k6080, k4080, k5080,
  k80100, kpPb020, kpPb2040, kpPb4060,
  kpPb60100, kpp8, kpp7, kpp276,
  k010, k020, k2040, k4060,
  k6080, k4080, k80100, kpp8,
  kpp7, kpp5, kpp276, k07half,
  kpPb0100, k010, k1020, k020,
  k1030, k2040, k2030, k3040,
  k4050, k3050, k5060, k4060,
  k6080, k4080, k5080, k80100,
  kpPb010, kpPb020, kpPb1020, kpPb2040,
  kpPb4060, kpPb60100, kpp, k07half,
  kpPb0100, k010, k1020, k020,
  k1030, k2040, k2030, k3040,
  k4050, k3050, k5060, k4060,
  k6080, k4080, k5080, k80100,
  kpPb010, kpPb020, kpPb1020, kpPb2040,
  kpPb4060, kpPb60100
}
 
enum  centestimator {
  kV0M, kV0A, kZNA, kCL1,
  kV0M, kV0A, kZNA, kCL1,
  kV0M, kV0A, kZNA, kCL1
}
 

Functions

Int_t FindGraphBin (TGraphAsymmErrors *gr, Double_t pt)
 
void FindGraphRelativeUnc (TGraphAsymmErrors *gr, Double_t pt, Double_t &uncLow, Double_t &uncHigh)
 
Double_t GetWeight (Int_t averageoption, Double_t pt, TH1D *hRaa, Double_t raaSystLow, Double_t raaSystHigh, Double_t ppSystRawYield, Double_t ppSystRawYieldCutVar, Double_t ppSystRawYieldCutVarPid, Double_t ABSystRawYield, Double_t ABSystRawYieldCutVar, Double_t ABSystRawYieldCutVarPid)
 
void AverageDmesonRaa (const char *fD0Raa="", const char *fD0ppRef="", const char *fDplusRaa="", const char *fDplusppRef="", const char *fDstarRaa="", const char *fDstarppRef="", const char *outfile="", Int_t averageOption=kRelativeStatUnc, Int_t cc=kpPb0100, Int_t ccestimator=kV0M, Bool_t isReadAllPPUnc=false, Bool_t isPPRefExtrapD0=false, Bool_t isPPRefExtrapDplus=false, Bool_t isPPRefExtrapDstar=false)
 

Variables

const Int_t nbins =7
 
Double_t ptbinlimits [nbins+1] ={1.,2.,4.,6.,8.,12.,16.,24.}
 
Bool_t useExtrapPPref =kFALSE
 
Bool_t isDebug =true
 

Enumeration Type Documentation

Enumerator
kRelativeStatUnc 
kRelativeStatUncorrWoPidSyst 
kRelativeStatUncorrWPidSyst 
kRelativeStatRawYieldSyst 
kRelativeStatGlobalSyst 
kAbsoluteStatUnc 

Definition at line 70 of file AverageDmesonRaa.C.

Enumerator
kV0M 
kV0A 
kZNA 
kCL1 
kV0M 
kV0A 
kZNA 
kCL1 
kV0M 
kV0A 
kZNA 
kCL1 

Definition at line 73 of file AverageDmesonRaa.C.

enum centrality
Enumerator
kpp 
k07half 
kpPb0100 
k010 
k1020 
k020 
k2040 
k2030 
k3040 
k4050 
k3050 
k5060 
k4060 
k6080 
k4080 
k5080 
k80100 
kpPb020 
kpPb2040 
kpPb4060 
kpPb60100 
kpp8 
kpp7 
kpp276 
k010 
k020 
k2040 
k4060 
k6080 
k4080 
k80100 
kpp8 
kpp7 
kpp5 
kpp276 
k07half 
kpPb0100 
k010 
k1020 
k020 
k1030 
k2040 
k2030 
k3040 
k4050 
k3050 
k5060 
k4060 
k6080 
k4080 
k5080 
k80100 
kpPb010 
kpPb020 
kpPb1020 
kpPb2040 
kpPb4060 
kpPb60100 
kpp 
k07half 
kpPb0100 
k010 
k1020 
k020 
k1030 
k2040 
k2030 
k3040 
k4050 
k3050 
k5060 
k4060 
k6080 
k4080 
k5080 
k80100 
kpPb010 
kpPb020 
kpPb1020 
kpPb2040 
kpPb4060 
kpPb60100 

Definition at line 72 of file AverageDmesonRaa.C.

Function Documentation

void AverageDmesonRaa ( const char *  fD0Raa = "",
const char *  fD0ppRef = "",
const char *  fDplusRaa = "",
const char *  fDplusppRef = "",
const char *  fDstarRaa = "",
const char *  fDstarppRef = "",
const char *  outfile = "",
Int_t  averageOption = kRelativeStatUnc,
Int_t  cc = kpPb0100,
Int_t  ccestimator = kV0M,
Bool_t  isReadAllPPUnc = false,
Bool_t  isPPRefExtrapD0 = false,
Bool_t  isPPRefExtrapDplus = false,
Bool_t  isPPRefExtrapDstar = false 
)

Definition at line 160 of file AverageDmesonRaa.C.

Int_t FindGraphBin ( TGraphAsymmErrors gr,
Double_t  pt 
)

Definition at line 76 of file AverageDmesonRaa.C.

void FindGraphRelativeUnc ( TGraphAsymmErrors gr,
Double_t  pt,
Double_t uncLow,
Double_t uncHigh 
)

Definition at line 91 of file AverageDmesonRaa.C.

Referenced by AverageDmesonRaa().

Double_t GetWeight ( Int_t  averageoption,
Double_t  pt,
TH1D hRaa,
Double_t  raaSystLow,
Double_t  raaSystHigh,
Double_t  ppSystRawYield,
Double_t  ppSystRawYieldCutVar,
Double_t  ppSystRawYieldCutVarPid,
Double_t  ABSystRawYield,
Double_t  ABSystRawYieldCutVar,
Double_t  ABSystRawYieldCutVarPid 
)

Variable Documentation

Bool_t isDebug =true

Definition at line 66 of file AverageDmesonRaa.C.

Referenced by AverageDmesonRaa().

const Int_t nbins =7

Definition at line 63 of file AverageDmesonRaa.C.

Referenced by AliEmcalJetByJetCorrection::AliEmcalJetByJetCorrection(), AliAnalysisTaskEmcalDijetImbalance::AllocateBackgroundHistograms(), AliAnalysisTaskEmcalVsPhos::AllocateClusterHistograms(), AliAnalysisTaskPWGJEQA::AllocateClusterHistograms(), AliAnalysisTaskEmcalVsPhos::AllocateClustersInJetsHistograms(), AliAnalysisTaskPWGJEQA::AllocateDetectorLevelTHnSparse(), AliAnalysisTaskEmcalDijetImbalance::AllocateDijetCandHistograms(), AliAnalysisTaskEmcalDijetImbalance::AllocateDijetImbalanceHistograms(), AliAnalysisTaskEmcalVsPhos::AllocateEventHistograms(), AliAnalysisTaskPWGJEQA::AllocateEventQAHistograms(), AliAnalysisTaskPWGJEQA::AllocateGeneratorLevelTHnSparse(), AliAnalysisTaskEmcalDijetImbalance::AllocateGeometricalMatchingHistograms(), AliAnalysisTaskPWGJEQA::AllocateJetHistograms(), AliAnalysisTaskPWGJEQA::AllocateMatchedParticlesTHnSparse(), AliAnalysisTaskEmcalDijetImbalance::AllocateMomentumBalanceHistograms(), AliAnalysisTaskEmcalJetPerformance::AllocateParticleCompositionHistograms(), AliAnalysisTaskSoftDropResponse::AllocateTHnSparse(), AliAnalysisTaskEmcalJetSpectraQA::AllocateTHnSparse(), AliJetResponseMaker::AllocateTHnSparse(), AverageDmesonRaa(), AliFlowAnalysisCRC::BookEverythingForEbEFlow(), AliFlowAnalysisCRC::BookEverythingForQVec(), AliAnalysisTaskDmesonJets::OutputHandlerTHnSparse::BuildOutputObject(), AliAnalysisTaskDmesonJetsSub::OutputHandlerTHnSparse::BuildOutputObject(), AliHFMassFitter::CheckRangeFit(), AliHFMassFitterVAR::CheckRangeFit(), CombineFeedDownMCSubtractionMethodsUncertainties(), CombineRaaFeedDownUncertainties(), AliAnalysisTaskSEDplus::CreateCutVarsSparses(), AliAnalysisTaskSEDStarSpectra::CreateImpactParameterHistos(), AliAnalysisTaskSEDplus::CreateImpactParameterHistos(), AliAnalysisTaskSED0MassCutVarFDSub::CreateImpactParameterHistos(), AliAnalysisTaskSED0MassNonPromptFraction::CreateImpactParameterHistos(), AliAnalysisTaskSED0Mass::CreateImpactParameterHistos(), AliAnalysisTaskSEDvsEventShapes::CreateImpactParameterHistos(), AliAnalysisTaskSEDvsMultiplicity::CreateImpactParameterHistos(), AliAnalysisTaskSEDs::CreateImpactParameterSparses(), AliAnalysisTaskSEDplus::CreateLikeSignHistos(), EMCalTriggerPtAnalysis::AliAnalysisTaskTrackDCA::CreateLinearBinning(), AliAnalysisTaskParticleInJet::CreateLinearBinning(), THistManager::CreateTHnSparse(), AliAnalysisTaskSEDplus::CreateTrackVarHistos(), CumulativeHist(), AliAnalysisTaskFlavourJetCorrelations::DefineHistoForAnalysis(), AliAnalysisTaskSEB0toDminuspi::DefineHistograms(), AliHFSystErr::DrawErrors(), DrawFpromptVsRaaElossHypo(), DrawFpromptVsRaaElossHypoCombined(), AliBasedNdetaTask::Event(), AliAnaConvCorrBase::FillCounters(), AliHFPtSpectrum::FindTH2YBin(), AliEmcalTrackingQATask::GenerateTHnSparse(), AliAnaPi0EbE::GetCreateOutputObjects(), AliAnaElectron::GetCreateOutputObjects(), AliAnaPhoton::GetCreateOutputObjects(), AliPWGHistoTools::GetdNdmtFromdNdpt(), AliPWGHistoTools::GetdNdptFromdNdmt(), AliDJetVReader::GetMassRebin(), AliAnalysisTaskSECharmFraction::GetNMaxTrForVtx(), HFPtSpectrumRaa(), AliAnalysisTaskSEDplus::LSAnalysis(), AliAnalysisTaskEmcalJetTriggerMatcher::NewTHnSparseDJetTrigger(), AliAnalysisTaskEmcalJetPatchTriggerQA::NewTHnSparseF(), AliAnalysisTaskEmcalJetHadEPpid::NewTHnSparseF(), AliAnalysisTaskEmcalJetSpectra8TeVTriggerQA::NewTHnSparseF(), PWGJE::EMCALJetTasks::AliAnalysisTaskEmcalJetHCorrelations::NewTHnSparseF(), AliAnalysisTaskEmcalJetHadEPpid::NewTHnSparseFCorr(), AliAnalysisTaskEmcalJetHadEPpid::NewTHnSparseFPID(), AliBasedNdetaTask::ProjectX(), Rebin(), dNdetaDrawer::Rebin(), AliAnalysisTaskFlowStrange::RebinDecayVn(), AliAnalysisTaskFlowStrangee::RebinDecayVn(), THistManager::ReleaseOwner(), EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::SelectAllTracks(), TLinearBinning::Set(), AliAnalysisTaskForStudents::SetBinning(), AliAnalysisTaskStudentsCM::SetBinning(), AliAnalysisTaskStudentsML::SetBinning(), AliAnalysisTaskSEDplus::SetBinWidth(), AliAnalysisTaskSEB0toDminuspi::SetBinWidth(), AliTrackletTaskMulti::SetCentPercentiles(), AliAnalysisTaskForStudents::SetCentralityBinning(), AliAnalysisTaskPi0v2::SetCentralityBins(), AliAnalysisTaskEMCALTriggerQA::SetClusterEHistogramsRange(), AliAnalysisTaskEMCALTriggerQA::SetClusterEtaHistogramsRange(), AliAnalysisTaskEMCALTriggerQA::SetClusterPhiHistogramsRange(), AliAnalysisTaskFlowStrange::SetDauITSrefit(), AliAnaWeights::SetDebug(), AliDJetVReader::SetDmesonPtBins(), AliAnalysisTaskEMCALTimeCalib::SetEnergyHistoHG(), AliAnalysisTaskEMCALTimeCalib::SetEnergyHistoLG(), AliAnalysisTaskEMCALTimeCalib::SetFineT0Histo(), AliAnalysisTaskEmcal::SetHistoBins(), AliAnalysisTaskSEDplus::SetImpactParameterBinning(), AliAnalysisTaskSEDvsMultiplicity::SetImpactParameterBinning(), AliAnalysisTaskSEDvsEventShapes::SetImpactParameterBinning(), AliAnalysisTaskParticleInJet::SetJetContainerNameMC(), AliDJetVReader::SetJetPtBins(), AliDJetVReader::SetJetzBins(), AliAnalysisTaskEmcalJetTriggerMatcher::SetMainTriggerTypeCat(), AliAnalysisTaskFlowStrangee::SetMaxChi2perITSCluster(), AliAnalysisTaskSESignificance::SetNBins(), AliAnalysisTaskPi0v2::SetNBinsPhi(), AliAnalysisTaskSEDvsEventShapes::SetNMassBins(), AliAnalysisTaskSEDvsMultiplicity::SetNMassBins(), AliAnalysisTaskEmcal::SetNumberOfPtHardBins(), AliAnalysisTaskDmesonJetsSub::SetOutputTypeInternal(), AliAnalysisTaskDmesonJets::SetOutputTypeInternal(), AliAnalysisTaskEMCALTimeCalib::SetPassTimeHisto(), AliAnalysisTaskDmesonMCPerform::SetPtBinning(), AliAnalysisTaskSECharmFraction::SetPtBins(), AliFlowAnalysisCRC::SetPtDiffNBins(), AliAnalysisTaskEMCALTimeCalib::SetRawTimeHisto(), AliAnalysisTaskEMCALTriggerQA::SetSTUFEERatioHistogramsRange(), AliAnalysisTaskEMCALTriggerQA::SetSTUTotalSignalHistogramsRange(), AliAnalysisTaskEMCALTriggerQA::SetSTUTRURatioHistogramsRange(), EMCalTriggerPtAnalysis::AliAnalysisTaskTrackDCA::SetTrackCuts(), AliTrackletTaskMulti::SetTriggerSelection(), AliAnalysisTaskEMCALTriggerQA::SetTRUTotalSignalHistogramsRange(), AliAnalysisTaskEMCALTriggerQA::SetV0TotalSignalHistogramsRange(), showMultiDimVector(), SmearEffHisto(), SubtractBkg(), TestTHistManager::THistManagerTestSuite::TestBuildSimpleHistograms(), TestTHistManager::THistManagerTestSuite::TestFillSimpleHistograms(), AliAnalysisTaskPi0Hadron::UserCreateOutputObjects(), AliAnalysisTaskDcalDijetPerf::UserCreateOutputObjects(), AliAnalysisTaskTrackingSysPropagation::UserCreateOutputObjects(), AliJetEmbeddingTask::UserCreateOutputObjects(), AliAnalysisTaskEmcalJetMassStructure::UserCreateOutputObjects(), AliAnalysisTaskEmcalTriggerPatchJetMatch::UserCreateOutputObjects(), AliAnalysisTaskEmcalTriggerPatchClusterMatch::UserCreateOutputObjects(), AliAnalysisTaskFullppJet::UserCreateOutputObjects(), AliAnalysisTaskMuonPerformance::UserCreateOutputObjects(), AliAnalysisTaskEmcalJetQA::UserCreateOutputObjects(), AliAnalysisTaskEmcalRun2QA::UserCreateOutputObjects(), AliAnalysisTaskHJetSpectra::UserCreateOutputObjects(), AliAnalysisTaskSEDplus::UserCreateOutputObjects(), AliAnalysisTaskdPhi::UserExec(), VertexResolutionsFromCmpHF(), TLinearBinning::LimitsNotSetException::what(), TVariableBinning::LimitsNotSetException::what(), and EMCalTriggerPtAnalysis::AliEMCalTriggerEventCounterAnalysisComponent::~AliEMCalTriggerEventCounterAnalysisComponent().

Double_t ptbinlimits[nbins+1] ={1.,2.,4.,6.,8.,12.,16.,24.}

Definition at line 64 of file AverageDmesonRaa.C.

Referenced by AverageDmesonRaa().

Bool_t useExtrapPPref =kFALSE

Definition at line 65 of file AverageDmesonRaa.C.

Referenced by AverageDmesonRaa().