Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions PWGHF/D2H/TableProducer/dataCreatorCharmHadPiReduced.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ struct HfDataCreatorCharmHadPiReduced {
const PParticles& particlesMc,
const std::vector<TTrack>& vecDaughtersB,
int& indexHfCandCharm,
std::map<int64_t, int64_t> selectedTracksPion,
const std::map<int64_t, int64_t>& selectedTracksPion,
const int64_t indexCollisionMaxNumContrib)
{

Expand Down Expand Up @@ -619,7 +619,7 @@ struct HfDataCreatorCharmHadPiReduced {
}
tables.rowHfDPiMcCheckReduced(pdgCodeBeautyMother, pdgCodeCharmMother, pdgCodeProng0, pdgCodeProng1, pdgCodeProng2, pdgCodeProng3);
}
tables.rowHfDPiMcRecReduced(indexHfCandCharm, selectedTracksPion[vecDaughtersB.back().globalIndex()], flag, flagWrongCollision, debug, motherPt);
tables.rowHfDPiMcRecReduced(indexHfCandCharm, selectedTracksPion.at(vecDaughtersB.back().globalIndex()), flag, flagWrongCollision, debug, motherPt);
} else if constexpr (DecChannel == DecayChannel::BsToDsminusPi) {
// Bs → Ds- π+ → (K- K+ π-) π+
auto indexRec = RecoDecay::getMatchedMCRec<true, false, false, true, true>(particlesMc, std::array{vecDaughtersB[0], vecDaughtersB[1], vecDaughtersB[2], vecDaughtersB[3]}, Pdg::kBS, std::array{-kKPlus, +kKPlus, -kPiPlus, +kPiPlus}, true, &sign, 3);
Expand Down Expand Up @@ -774,7 +774,7 @@ struct HfDataCreatorCharmHadPiReduced {
}
tables.rowHfDsPiMcCheckReduced(pdgCodeBeautyMother, pdgCodeCharmMother, pdgCodeProng0, pdgCodeProng1, pdgCodeProng2, pdgCodeProng3);
}
tables.rowHfDsPiMcRecReduced(indexHfCandCharm, selectedTracksPion[vecDaughtersB.back().globalIndex()], flag, flagWrongCollision, debug, motherPt);
tables.rowHfDsPiMcRecReduced(indexHfCandCharm, selectedTracksPion.at(vecDaughtersB.back().globalIndex()), flag, flagWrongCollision, debug, motherPt);
} else if constexpr (DecChannel == DecayChannel::BplusToD0barPi) {
// B+ → D0(bar) π+ → (K+ π-) π+
auto indexRec = RecoDecay::getMatchedMCRec<false, false, false, true, true>(particlesMc, std::array{vecDaughtersB[0], vecDaughtersB[1], vecDaughtersB[2]}, Pdg::kBPlus, std::array{+kPiPlus, +kKPlus, -kPiPlus}, true, &sign, 2);
Expand Down Expand Up @@ -871,7 +871,7 @@ struct HfDataCreatorCharmHadPiReduced {
}
tables.rowHfD0PiMcCheckReduced(pdgCodeBeautyMother, pdgCodeCharmMother, pdgCodeProng0, pdgCodeProng1, pdgCodeProng2);
}
tables.rowHfD0PiMcRecReduced(indexHfCandCharm, selectedTracksPion[vecDaughtersB.back().globalIndex()], flag, flagWrongCollision, debug, motherPt);
tables.rowHfD0PiMcRecReduced(indexHfCandCharm, selectedTracksPion.at(vecDaughtersB.back().globalIndex()), flag, flagWrongCollision, debug, motherPt);
} else if constexpr (DecChannel == DecayChannel::LbToLcplusPi) {
// Lb → Lc+ π- → (p K- π+) π-
auto indexRec = RecoDecay::getMatchedMCRec<false, false, false, true, true>(particlesMc, std::array{vecDaughtersB[0], vecDaughtersB[1], vecDaughtersB[2], vecDaughtersB[3]}, Pdg::kLambdaB0, std::array{+kProton, -kKPlus, +kPiPlus, -kPiPlus}, true, &sign, 3);
Expand Down Expand Up @@ -975,7 +975,7 @@ struct HfDataCreatorCharmHadPiReduced {
}
tables.rowHfLcPiMcCheckReduced(pdgCodeBeautyMother, pdgCodeCharmMother, pdgCodeProng0, pdgCodeProng1, pdgCodeProng2, pdgCodeProng3);
}
tables.rowHfLcPiMcRecReduced(indexHfCandCharm, selectedTracksPion[vecDaughtersB.back().globalIndex()], flag, flagWrongCollision, debug, motherPt);
tables.rowHfLcPiMcRecReduced(indexHfCandCharm, selectedTracksPion.at(vecDaughtersB.back().globalIndex()), flag, flagWrongCollision, debug, motherPt);
} else if constexpr (DecChannel == DecayChannel::B0ToDstarPi) {
// B0 → D*+ π- → (D0 π+) π- → (K- π+ π+) π-
auto indexRec = RecoDecay::getMatchedMCRec<true, false, false, true, true>(particlesMc, std::array{vecDaughtersB[0], vecDaughtersB[1], vecDaughtersB[2], vecDaughtersB[3]}, Pdg::kB0, std::array{+kKPlus, -kPiPlus, -kPiPlus, +kPiPlus}, true, &sign, 4);
Expand Down Expand Up @@ -1012,7 +1012,7 @@ struct HfDataCreatorCharmHadPiReduced {
checkWrongCollision(particleMother, collision, indexCollisionMaxNumContrib, flagWrongCollision);
}
}
tables.rowHfDStarPiMcRecReduced(indexHfCandCharm, selectedTracksPion[vecDaughtersB.back().globalIndex()], flag, flagWrongCollision, debug, motherPt);
tables.rowHfDStarPiMcRecReduced(indexHfCandCharm, selectedTracksPion.at(vecDaughtersB.back().globalIndex()), flag, flagWrongCollision, debug, motherPt);
}
}

Expand Down Expand Up @@ -1444,7 +1444,7 @@ struct HfDataCreatorCharmHadPiReduced {
tables.hfCandPidProng1(candC.nSigTpcPi1(), candC.nSigTofPi1(), candC.nSigTpcKa1(), candC.nSigTofKa1(), nSigmaTpcPr1, nSigmaTofPr1, charmHadDauTracks[1].hasTOF(), charmHadDauTracks[1].hasTPC());

// Soft pion tables
auto trackSoftPion = charmHadDauTracks.back();
const auto& trackSoftPion = charmHadDauTracks.back();
auto trackParCovSoftPion = getTrackParCov(trackSoftPion);
std::array<float, 2> dcaSoftPion{trackSoftPion.dcaXY(), trackSoftPion.dcaZ()};
std::array<float, 3> pVecSoftPion = trackSoftPion.pVector();
Expand Down
2 changes: 1 addition & 1 deletion PWGHF/D2H/Tasks/taskDstarToD0Pi.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ struct HfTaskDstarToD0Pi {
/// @param selectedCands selected candidates with selection flag
/// @param preslice preslice to slice
template <bool ApplyMl, typename T1, typename T2>
void runTaskDstar(CollisionsWCent const& cols, T1 selectedCands, T2 preslice)
void runTaskDstar(CollisionsWCent const& cols, const T1& selectedCands, const T2& preslice)
{
for (const auto& col : cols) {
auto nPVContributors = col.numContrib();
Expand Down
6 changes: 3 additions & 3 deletions PWGHF/HFC/Macros/DhCorrelationExtraction.cxx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.

Check failure on line 1 in PWGHF/HFC/Macros/DhCorrelationExtraction.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/workflow-file]

Name of a workflow file must match the name of the main struct in it (without the PWG prefix). (Class implementation files should be in "Core" directories.)
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
//
Expand Down Expand Up @@ -34,7 +34,7 @@

#include <cstdio>
#include <cstdlib>
#include <iostream>

Check failure on line 37 in PWGHF/HFC/Macros/DhCorrelationExtraction.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[include-iostream]

Do not include iostream. Use O2 logging instead.
#include <stdexcept>

DhCorrelationExtraction::DhCorrelationExtraction() : // default constructor
Expand Down Expand Up @@ -184,7 +184,7 @@
Bool_t DhCorrelationExtraction::setDmesonSpecie(DmesonSpecie k)
{

if (k < 0 || k > 3) {

Check failure on line 187 in PWGHF/HFC/Macros/DhCorrelationExtraction.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
printf("[ERROR] D meson specie not correctly set!\n");
return kFALSE;
}
Expand All @@ -192,7 +192,7 @@
fDmesonLabel = "Dzero";
} else if (k == 1) {
fDmesonLabel = "Dplus";
} else if (k == 2) {

Check failure on line 195 in PWGHF/HFC/Macros/DhCorrelationExtraction.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
fDmesonLabel = "Ds";
} else {
fDmesonLabel = "Dstar";
Expand All @@ -201,7 +201,7 @@
return kTRUE;
}

Bool_t DhCorrelationExtraction::extractCorrelations(Double_t ptCandMin, Double_t ptCandMax, Double_t ptHadMin, Double_t ptHadMax, TString codeName)
Bool_t DhCorrelationExtraction::extractCorrelations(Double_t ptCandMin, Double_t ptCandMax, Double_t ptHadMin, Double_t ptHadMax, const TString& codeName)
{

if (fSubtractSoftPiME) {
Expand Down Expand Up @@ -995,7 +995,7 @@
Double_t modul[12] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};

for (int iBin = 0; iBin < hRatioNonPrompt->GetNbinsX(); iBin++) {
if (iBin > 1 && iBin < 13) {

Check failure on line 998 in PWGHF/HFC/Macros/DhCorrelationExtraction.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
recoKineVal[iBin - 2] = hRatioNonPrompt->GetBinContent(iBin + 1) - (fitVal - 1);
relAmplC[iBin - 2] = hRecPrompt->GetBinContent(iBin + 1) / (hRecPrompt->GetBinContent(iBin + 1) * fPrompt + hRecNonPrompt->GetBinContent(iBin + 1) * (1 - fPrompt));
relAmplB[iBin - 2] = hRecNonPrompt->GetBinContent(iBin + 1) / (hRecPrompt->GetBinContent(iBin + 1) * fPrompt + hRecNonPrompt->GetBinContent(iBin + 1) * (1 - fPrompt));
Expand Down Expand Up @@ -1390,7 +1390,7 @@

if (totalRange) {
// baseline evaluated considering: the two first points, the last two points and four points in the middle (corresponding to the outer points)
if (nBinsPhi >= 32) {

Check failure on line 1393 in PWGHF/HFC/Macros/DhCorrelationExtraction.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
baseline =
((histo->GetBinContent(1)) * (1. / TMath::Power(histo->GetBinError(1), 2)) +
(histo->GetBinContent(2)) * (1. / TMath::Power(histo->GetBinError(2), 2)) +
Expand Down Expand Up @@ -1432,7 +1432,7 @@
(1. / TMath::Power(histo->GetBinError(binPhiHalfPlus2), 2)));
} else {
// baseline evaluated using the 4 middle points in the transverese region
if (nBinsPhi >= 32) {

Check failure on line 1435 in PWGHF/HFC/Macros/DhCorrelationExtraction.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
baseline =
((histo->GetBinContent(binPhiHalfMinus1)) * (1. / TMath::Power(histo->GetBinError(binPhiHalfMinus1), 2)) +
(histo->GetBinContent(binPhiHalf)) * (1. / TMath::Power(histo->GetBinError(binPhiHalf), 2)) +
Expand Down Expand Up @@ -1470,7 +1470,7 @@

if (totalRange) {
// baseline evaluated considering: the two first points, the last two points and four points in the middle (corresponding to the outer points)
if (nBinsPhi >= 32) {

Check failure on line 1473 in PWGHF/HFC/Macros/DhCorrelationExtraction.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
errBaseline = 1. /
TMath::Sqrt((1. / TMath::Power(histo->GetBinError(1), 2)) +
(1. / TMath::Power(histo->GetBinError(2), 2)) +
Expand All @@ -1496,7 +1496,7 @@
(1. / TMath::Power(histo->GetBinError(binPhiHalfPlus1), 2)) +
(1. / TMath::Power(histo->GetBinError(binPhiHalfPlus2), 2)));
} else {
if (nBinsPhi >= 32) {

Check failure on line 1499 in PWGHF/HFC/Macros/DhCorrelationExtraction.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
errBaseline = 1. /
TMath::Sqrt((1. / TMath::Power(histo->GetBinError(binPhiHalfMinus1), 2)) +
(1. / TMath::Power(histo->GetBinError(binPhiHalf), 2)) +
Expand All @@ -1513,7 +1513,7 @@
return errBaseline;
}

void DhCorrelationExtraction::setTH1HistoStyle(TH1D*& histo, TString hTitle, TString hXaxisTitle, TString hYaxisTitle,
void DhCorrelationExtraction::setTH1HistoStyle(TH1D*& histo, const TString& hTitle, const TString& hXaxisTitle, const TString& hYaxisTitle,
Style_t markerStyle, Color_t markerColor, Double_t markerSize,
Color_t lineColor, Int_t lineWidth, Float_t hTitleXaxisOffset, Float_t hTitleYaxisOffset,
Float_t hTitleXaxisSize, Float_t hTitleYaxisSize, Float_t hLabelXaxisSize, Float_t hLabelYaxisSize,
Expand All @@ -1538,7 +1538,7 @@
histo->GetYaxis()->CenterTitle(centerYaxisTitle);
}

void DhCorrelationExtraction::setTH2HistoStyle(TH2D*& histo, TString hTitle, TString hXaxisTitle, TString hYaxisTitle, TString hZaxisTitle,
void DhCorrelationExtraction::setTH2HistoStyle(TH2D*& histo, const TString& hTitle, const TString& hXaxisTitle, const TString& hYaxisTitle, const TString& hZaxisTitle,
Float_t hTitleXaxisOffset, Float_t hTitleYaxisOffset, Float_t hTitleZaxisOffset,
Float_t hTitleXaxisSize, Float_t hTitleYaxisSize, Float_t hTitleZaxisSize,
Float_t hLabelXaxisSize, Float_t hLabelYaxisSize, Float_t hLabelZaxisSize,
Expand Down
62 changes: 32 additions & 30 deletions PWGHF/HFC/Macros/DhCorrelationExtraction.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
#include <Rtypes.h>
#include <RtypesCore.h>

#include <utility>

class DhCorrelationExtraction : public TObject
{

Expand All @@ -53,39 +55,39 @@ class DhCorrelationExtraction : public TObject
/// Methods to set the input configuration
// Input files, directories and histograms
Bool_t setDmesonSpecie(DmesonSpecie k);
void setInputFilenameMass(TString filenameMass) { fFileNameMass = filenameMass; }
void setInputFilenameSe(TString filenameSE) { fFileNameSE = filenameSE; }
void setInputFilenameMe(TString filenameME) { fFileNameME = filenameME; }
void setInputFilenameSecPart(TString filenameSecPart) { fFileSecPartName = filenameSecPart; }
void setInputFilenameMass(TString filenameMass) { fFileNameMass = std::move(filenameMass); }
void setInputFilenameSe(TString filenameSE) { fFileNameSE = std::move(filenameSE); }
void setInputFilenameMe(TString filenameME) { fFileNameME = std::move(filenameME); }
void setInputFilenameSecPart(TString filenameSecPart) { fFileSecPartName = std::move(filenameSecPart); }
void setInputFilenameBiasBtoD(TString filenamePromptMcRec, TString filenameNonPromptMcRec)
{
fFilePromptMcRecName = filenamePromptMcRec;
fFileNonPromptMcRecName = filenameNonPromptMcRec;
fFilePromptMcRecName = std::move(filenamePromptMcRec);
fFileNonPromptMcRecName = std::move(filenameNonPromptMcRec);
}
void setDirNameSe(TString dirNameSE) { fDirNameSE = dirNameSE; }
void setDirNameMe(TString dirNameME) { fDirNameME = dirNameME; }
void setDirNameSecPart(TString dirNameSecPart) { fDirSecPartName = dirNameSecPart; }
void setMassHistoNameSgn(TString massHistoNameSgn) { fMassHistoNameSgn = massHistoNameSgn; }
void setMassHistoNameBkg(TString massHistoNameBkg) { fMassHistoNameBkg = massHistoNameBkg; }
void setMassHistoNameSBs(TString massHistoNameSBs) { fMassHistoNameSBs = massHistoNameSBs; }
void setSeCorrelHistoSignalName(TString correlNameSigSE) { fSECorrelSignalRegionName = correlNameSigSE; }
void setSeCorrelHistoSidebandName(TString correlNameSbSE) { fSECorrelSidebandsName = correlNameSbSE; }
void setSeCorrelHistoSidebandLeftName(TString correlNameSbSE) { fSECorrelSidebandLeftName = correlNameSbSE; }
void setSeCorrelHistoSidebandRightName(TString correlNameSbSE) { fSECorrelSidebandRightName = correlNameSbSE; }
void setMeCorrelHistoSignalName(TString correlNameSigME) { fMECorrelSignalRegionName = correlNameSigME; }
void setMeCorrelHistoSidebandName(TString correlNameSbME) { fMECorrelSidebandsName = correlNameSbME; }
void setMeCorrelHistoSidebandLeftName(TString correlNameSbME) { fMECorrelSidebandLeftName = correlNameSbME; }
void setMeCorrelHistoSidebandRightName(TString correlNameSbME) { fMECorrelSidebandRightName = correlNameSbME; }
void setDirNameSe(TString dirNameSE) { fDirNameSE = std::move(dirNameSE); }
void setDirNameMe(TString dirNameME) { fDirNameME = std::move(dirNameME); }
void setDirNameSecPart(TString dirNameSecPart) { fDirSecPartName = std::move(dirNameSecPart); }
void setMassHistoNameSgn(TString massHistoNameSgn) { fMassHistoNameSgn = std::move(massHistoNameSgn); }
void setMassHistoNameBkg(TString massHistoNameBkg) { fMassHistoNameBkg = std::move(massHistoNameBkg); }
void setMassHistoNameSBs(TString massHistoNameSBs) { fMassHistoNameSBs = std::move(massHistoNameSBs); }
void setSeCorrelHistoSignalName(TString correlNameSigSE) { fSECorrelSignalRegionName = std::move(correlNameSigSE); }
void setSeCorrelHistoSidebandName(TString correlNameSbSE) { fSECorrelSidebandsName = std::move(correlNameSbSE); }
void setSeCorrelHistoSidebandLeftName(TString correlNameSbSE) { fSECorrelSidebandLeftName = std::move(correlNameSbSE); }
void setSeCorrelHistoSidebandRightName(TString correlNameSbSE) { fSECorrelSidebandRightName = std::move(correlNameSbSE); }
void setMeCorrelHistoSignalName(TString correlNameSigME) { fMECorrelSignalRegionName = std::move(correlNameSigME); }
void setMeCorrelHistoSidebandName(TString correlNameSbME) { fMECorrelSidebandsName = std::move(correlNameSbME); }
void setMeCorrelHistoSidebandLeftName(TString correlNameSbME) { fMECorrelSidebandLeftName = std::move(correlNameSbME); }
void setMeCorrelHistoSidebandRightName(TString correlNameSbME) { fMECorrelSidebandRightName = std::move(correlNameSbME); }
void setHistoSecPartName(TString histoPrimaryPartName, TString histoAllPartName)
{
fHistoPrimaryPartName = histoPrimaryPartName;
fHistoAllPartName = histoAllPartName;
fHistoPrimaryPartName = std::move(histoPrimaryPartName);
fHistoAllPartName = std::move(histoAllPartName);
}
void setInputFilenameFdTemplate(TString filenameFDTemplate) { fFileFDTemplateName = filenameFDTemplate; }
void setInputFilenameFdPromptFrac(TString filenameFDPromptFrac) { fFileFDPromptFracName = filenameFDPromptFrac; }
void setInputHistoNameFdTemplatePrompt(TString hNameFDTemplatePrompt) { fHistoFDTemplatePromptName = hNameFDTemplatePrompt; }
void setInputHistoNameFdTemplateNonPrompt(TString hNameFDTemplateNonPrompt) { fHistoFDTemplateNonPromptName = hNameFDTemplateNonPrompt; }
void setInputHistoNameFdPromptFrac(TString hNameFDPromptFrac) { fHistoFDPromptFracName = hNameFDPromptFrac; }
void setInputFilenameFdTemplate(TString filenameFDTemplate) { fFileFDTemplateName = std::move(filenameFDTemplate); }
void setInputFilenameFdPromptFrac(TString filenameFDPromptFrac) { fFileFDPromptFracName = std::move(filenameFDPromptFrac); }
void setInputHistoNameFdTemplatePrompt(TString hNameFDTemplatePrompt) { fHistoFDTemplatePromptName = std::move(hNameFDTemplatePrompt); }
void setInputHistoNameFdTemplateNonPrompt(TString hNameFDTemplateNonPrompt) { fHistoFDTemplateNonPromptName = std::move(hNameFDTemplateNonPrompt); }
void setInputHistoNameFdPromptFrac(TString hNameFDPromptFrac) { fHistoFDPromptFracName = std::move(hNameFDPromptFrac); }

// Input conditions: PtCand, PtHad, PoolBins
void setNpools(Int_t npools) { fNpools = npools; }
Expand Down Expand Up @@ -143,15 +145,15 @@ class DhCorrelationExtraction : public TObject
Bool_t readInputInvMass();
Bool_t readInputFdSubtr();
Bool_t readInputSecondaryPartContamination();
Bool_t extractCorrelations(Double_t ptCandMin, Double_t ptCandMax, Double_t ptHadMin, Double_t ptHadMax, TString codeName);
Bool_t extractCorrelations(Double_t ptCandMin, Double_t ptCandMax, Double_t ptHadMin, Double_t ptHadMax, const TString& codeName);
TH1D* getCorrectedCorrHisto() { return fCorrectedCorrHisto; }
TH1D* getCorrectedCorrHistoBaselineSubtr() { return fCorrectedCorrHistoBaselineSubtr; }
TH1D* getCorrectedCorrHistoReflected() { return fCorrectedCorrHistoReflected; }
TH1D* getCorrectedCorrHistoReflectedBaselineSubtr() { return fCorrectedCorrHistoReflectedBaselineSubtr; }

/// Histogram style
void setTH1HistoStyle(TH1D*& histo, TString hTitle, TString hXaxisTitle, TString hYaxisTitle, Style_t markerStyle = kFullCircle, Color_t markerColor = kRed + 1, Double_t markerSize = 1.4, Color_t lineColor = kRed + 1, Int_t lineWidth = 3, Float_t hTitleXaxisOffset = 1.0, Float_t hTitleYaxisOffset = 1.0, Float_t hTitleXaxisSize = 0.060, Float_t hTitleYaxisSize = 0.060, Float_t hLabelXaxisSize = 0.060, Float_t hLabelYaxisSize = 0.060, Bool_t centerXaxisTitle = false, Bool_t centerYaxisTitle = false);
void setTH2HistoStyle(TH2D*& histo, TString hTitle, TString hXaxisTitle, TString hYaxisTitle, TString hZaxisTitle, Float_t hTitleXaxisOffset = 1.8, Float_t hTitleYaxisOffset = 1.8, Float_t hTitleZaxisOffset = 1.2, Float_t hTitleXaxisSize = 0.060, Float_t hTitleYaxisSize = 0.060, Float_t hTitleZaxisSize = 0.060, Float_t hLabelXaxisSize = 0.060, Float_t hLabelYaxisSize = 0.060, Float_t hLabelZaxisSize = 0.060, Bool_t centerXaxisTitle = true, Bool_t centerYaxisTitle = true);
void setTH1HistoStyle(TH1D*& histo, const TString& hTitle, const TString& hXaxisTitle, const TString& hYaxisTitle, Style_t markerStyle = kFullCircle, Color_t markerColor = kRed + 1, Double_t markerSize = 1.4, Color_t lineColor = kRed + 1, Int_t lineWidth = 3, Float_t hTitleXaxisOffset = 1.0, Float_t hTitleYaxisOffset = 1.0, Float_t hTitleXaxisSize = 0.060, Float_t hTitleYaxisSize = 0.060, Float_t hLabelXaxisSize = 0.060, Float_t hLabelYaxisSize = 0.060, Bool_t centerXaxisTitle = false, Bool_t centerYaxisTitle = false);
void setTH2HistoStyle(TH2D*& histo, const TString& hTitle, const TString& hXaxisTitle, const TString& hYaxisTitle, const TString& hZaxisTitle, Float_t hTitleXaxisOffset = 1.8, Float_t hTitleYaxisOffset = 1.8, Float_t hTitleZaxisOffset = 1.2, Float_t hTitleXaxisSize = 0.060, Float_t hTitleYaxisSize = 0.060, Float_t hTitleZaxisSize = 0.060, Float_t hLabelXaxisSize = 0.060, Float_t hLabelYaxisSize = 0.060, Float_t hLabelZaxisSize = 0.060, Bool_t centerXaxisTitle = true, Bool_t centerYaxisTitle = true);

private:
TFile* fFileMass; // File containing the mass histograms
Expand Down
Loading
Loading