1818
1919#include " PWGEM/PhotonMeson/Utils/MCUtilities.h"
2020
21- #include < CommonConstants/PhysicsConstants.h>
2221#include < CommonConstants/MathConstants.h>
22+ #include < CommonConstants/PhysicsConstants.h>
2323#include < Framework/Concepts.h>
2424#include < Framework/HistogramRegistry.h>
2525#include < Framework/HistogramSpec.h>
3434namespace o2 ::aod::pwgem::photonmeson::utils::nmhistogram
3535{
3636using namespace o2 ::constants::math;
37- inline void addNMHistograms (o2::framework::HistogramRegistry* fRegistry , bool isMC,
38- bool sparseFullAxes = false ,
39- std::vector<double > const & occBins = {0 , 500 , 1000 , 2000 , 3000 , 5000 , 10000 },
40- std::vector<double > const & epBins = {-PIHalf, -PIQuarter, 0 , PIQuarter, PIHalf},
41- std::vector<double > const & vtxBins = {-10 , -8 , -6 , -4 , -2 , 0 , 2 , 4 , 6 , 8 , 10 },
42- const char * pairname = " #gamma#gamma" )
37+ inline void addNMHistograms (o2::framework::HistogramRegistry* fRegistry , bool isMC,
38+ bool sparseFullAxes = false ,
39+ std::vector<double > const & occBins = {0 , 500 , 1000 , 2000 , 3000 , 5000 , 10000 },
40+ std::vector<double > const & epBins = {-PIHalf, -PIQuarter, 0 , PIQuarter, PIHalf},
41+ std::vector<double > const & vtxBins = {-10 , -8 , -6 , -4 , -2 , 0 , 2 , 4 , 6 , 8 , 10 },
42+ const char * pairname = " #gamma#gamma" )
4343{
4444 // !!Don't change pt,eta,y binning. These binnings have to be consistent with binned data at skimming.!!
4545 std::vector<double > ptbins;
@@ -59,7 +59,7 @@ inline void addNMHistograms(o2::framework::HistogramRegistry* fRegistry, bool is
5959 const o2::framework::AxisSpec axis_pt{ptbins, Form (" p_{T,%s} (GeV/c)" , pairname)};
6060 const o2::framework::AxisSpec axis_mass{400 , 0 , 0.8 , Form (" m_{%s} (GeV/c^{2})" , pairname)};
6161 const o2::framework::AxisSpec axis_occ{occBins, " occupancy" };
62- const o2::framework::AxisSpec axis_ep {epBins, " #Psi_{2} (rad)" };
62+ const o2::framework::AxisSpec axis_ep{epBins, " #Psi_{2} (rad)" };
6363 const o2::framework::AxisSpec axis_vtx{vtxBins, " Z_{vtx} (cm)" };
6464
6565 if (isMC) {
@@ -86,17 +86,15 @@ inline void addNMHistograms(o2::framework::HistogramRegistry* fRegistry, bool is
8686 } else {
8787 if (sparseFullAxes) {
8888 fRegistry ->add (" Pair/same/hs" , " diphoton" ,
89- o2::framework::HistType::kTHnSparseD ,
90- {axis_mass, axis_pt, axis_ep, axis_occ, axis_vtx}, true );
89+ o2::framework::HistType::kTHnSparseD ,
90+ {axis_mass, axis_pt, axis_ep, axis_occ, axis_vtx}, true );
9191 } else {
9292 fRegistry ->add (" Pair/same/hs" , " diphoton" ,
93- o2::framework::HistType::kTHnSparseD ,
94- {axis_mass, axis_pt}, true );
93+ o2::framework::HistType::kTHnSparseD ,
94+ {axis_mass, axis_pt}, true );
9595 }
9696 fRegistry ->addClone (" Pair/same/" , " Pair/mix/" );
9797 }
98-
99-
10098}
10199
102100template <typename TDiphoton, o2::soa::is_iterator TMCParitlce, o2::soa::is_table TMCParticles, o2::soa::is_table TMCCollisions>
0 commit comments