diff --git a/PWGEM/PhotonMeson/Utils/NMHistograms.h b/PWGEM/PhotonMeson/Utils/NMHistograms.h index 81a5d712669..798fb7d2ec8 100644 --- a/PWGEM/PhotonMeson/Utils/NMHistograms.h +++ b/PWGEM/PhotonMeson/Utils/NMHistograms.h @@ -32,12 +32,12 @@ namespace o2::aod::pwgem::photonmeson::utils::nmhistogram { -inline void addNMHistograms(o2::framework::HistogramRegistry* fRegistry, bool isMC, - bool sparseFullAxes = false, - std::vector const& occBins = {0, 500, 1000, 2000, 3000, 5000, 10000}, - std::vector const& epBins = {-M_PI/2, -M_PI/4, 0, M_PI/4, M_PI/2}, - std::vector const& vtxBins = {-10, -8, -6, -4, -2, 0, 2, 4, 6, 8, 10}, - const char* pairname = "#gamma#gamma") +inline void addNMHistograms(o2::framework::HistogramRegistry* fRegistry, bool isMC, + bool sparseFullAxes = false, + std::vector const& occBins = {0, 500, 1000, 2000, 3000, 5000, 10000}, + std::vector const& epBins = {-M_PI / 2, -M_PI / 4, 0, M_PI / 4, M_PI / 2}, + std::vector const& vtxBins = {-10, -8, -6, -4, -2, 0, 2, 4, 6, 8, 10}, + const char* pairname = "#gamma#gamma") { // !!Don't change pt,eta,y binning. These binnings have to be consistent with binned data at skimming.!! std::vector ptbins; @@ -57,7 +57,7 @@ inline void addNMHistograms(o2::framework::HistogramRegistry* fRegistry, bool is const o2::framework::AxisSpec axis_pt{ptbins, Form("p_{T,%s} (GeV/c)", pairname)}; const o2::framework::AxisSpec axis_mass{400, 0, 0.8, Form("m_{%s} (GeV/c^{2})", pairname)}; const o2::framework::AxisSpec axis_occ{occBins, "occupancy"}; - const o2::framework::AxisSpec axis_ep {epBins, "#Psi_{2} (rad)"}; + const o2::framework::AxisSpec axis_ep{epBins, "#Psi_{2} (rad)"}; const o2::framework::AxisSpec axis_vtx{vtxBins, "Z_{vtx} (cm)"}; if (isMC) { @@ -84,17 +84,15 @@ inline void addNMHistograms(o2::framework::HistogramRegistry* fRegistry, bool is } else { if (sparseFullAxes) { fRegistry->add("Pair/same/hs", "diphoton", - o2::framework::HistType::kTHnSparseD, - {axis_mass, axis_pt, axis_ep, axis_occ, axis_vtx}, true); + o2::framework::HistType::kTHnSparseD, + {axis_mass, axis_pt, axis_ep, axis_occ, axis_vtx}, true); } else { fRegistry->add("Pair/same/hs", "diphoton", - o2::framework::HistType::kTHnSparseD, - {axis_mass, axis_pt}, true); + o2::framework::HistType::kTHnSparseD, + {axis_mass, axis_pt}, true); } fRegistry->addClone("Pair/same/", "Pair/mix/"); } - - } template