@@ -98,6 +98,7 @@ struct Pi0EtaToGammaGamma {
9898 o2::framework::ConfigurableAxis ConfCentBins{" ConfCentBins" , {o2::framework::VARIABLE_WIDTH , 0 .0f , 5 .0f , 10 .0f , 20 .0f , 30 .0f , 40 .0f , 50 .0f , 60 .0f , 70 .0f , 80 .0f , 90 .0f , 100 .f , 999 .f }, " Mixing bins - centrality" };
9999 o2::framework::ConfigurableAxis ConfEPBins{" ConfEPBins" , {o2::framework::VARIABLE_WIDTH , -o2::constants::math::PIHalf, -o2::constants::math::PIQuarter, 0 .0f , +o2::constants::math::PIQuarter, +o2::constants::math::PIHalf}, " Mixing bins - event plane angle" };
100100 o2::framework::ConfigurableAxis ConfOccupancyBins{" ConfOccupancyBins" , {o2::framework::VARIABLE_WIDTH , -1 , 1e+10 }, " Mixing bins - occupancy" };
101+ o2::framework::Configurable<bool > cfgSparseFullAxes{" cfgSparseFullAxes" , false , " add event plane, occupancy and z-vertex axes to Pair/same/hs and Pair/mix/hs" };
101102
102103 o2::framework::Configurable<int > cfgAlphaMesonCut{" cfgAlphaMesonCut" , 0 , " flag for photon energy asymmetry distribution cut: 0: no cut, 1: cut specific value, 2: cut depending on pT" };
103104 o2::framework::Configurable<float > cfgAlphaMeson{" cfgAlphaMeson" , 0.65 , " photon energy asymmetry distribution parameter for specific value cut" };
@@ -423,10 +424,13 @@ struct Pi0EtaToGammaGamma {
423424 emh2 = new o2::aod::pwgem::dilepton::utils::EventMixingHandler<std::tuple<int , int , int , int >, std::pair<int , int >, o2::aod::pwgem::photonmeson::utils::EMPhoton>(ndepth);
424425
425426 o2::aod::pwgem::photonmeson::utils::eventhistogram::addEventHistograms (&fRegistry );
427+ std::vector<double > occBinsForHs (occ_bin_edges.begin (), occ_bin_edges.end ());
428+ std::vector<double > epBinsForHs (ep_bin_edges.begin (), ep_bin_edges.end ());
429+ std::vector<double > vtxBinsForHs (zvtx_bin_edges.begin (), zvtx_bin_edges.end ());
426430 if constexpr (pairtype == o2::aod::pwgem::photonmeson::photonpair::PairType::kPCMDalitzEE ) {
427- o2::aod::pwgem::photonmeson::utils::nmhistogram::addNMHistograms (&fRegistry , false , " ee#gamma" );
431+ o2::aod::pwgem::photonmeson::utils::nmhistogram::addNMHistograms (&fRegistry , false , cfgSparseFullAxes. value , occBinsForHs, epBinsForHs, vtxBinsForHs, " ee#gamma" );
428432 } else {
429- o2::aod::pwgem::photonmeson::utils::nmhistogram::addNMHistograms (&fRegistry , false , " #gamma#gamma" );
433+ o2::aod::pwgem::photonmeson::utils::nmhistogram::addNMHistograms (&fRegistry , false , cfgSparseFullAxes. value , occBinsForHs, epBinsForHs, vtxBinsForHs, " #gamma#gamma" );
430434 }
431435 DefineEMEventCut ();
432436 DefinePCMCut ();
@@ -800,6 +804,8 @@ struct Pi0EtaToGammaGamma {
800804 occbin = static_cast <int >(occ_bin_edges.size ()) - 2 ;
801805 }
802806
807+ float occupancy = (cfgOccupancyEstimator == 1 ) ? static_cast <float >(collision.trackOccupancyInTimeRange ()) : collision.ft0cOccupancyInTimeRange ();
808+
803809 // LOGF(info, "collision.globalIndex() = %d, collision.posZ() = %f, centrality = %f, ep2 = %f, collision.trackOccupancyInTimeRange() = %d, zbin = %d, centbin = %d, epbin = %d, occbin = %d", collision.globalIndex(), collision.posZ(), centrality, ep2, collision.trackOccupancyInTimeRange(), zbin, centbin, epbin, occbin);
804810
805811 std::tuple<int , int , int , int > key_bin = std::make_tuple (zbin, centbin, epbin, occbin);
@@ -859,7 +865,11 @@ struct Pi0EtaToGammaGamma {
859865 continue ;
860866 }
861867
862- fRegistry .fill (HIST (" Pair/same/hs" ), veeg.M (), veeg.Pt (), weight);
868+ if (cfgSparseFullAxes.value ) {
869+ fRegistry .fill (HIST (" Pair/same/hs" ), veeg.M (), veeg.Pt (), ep2, occupancy, collision.posZ (), weight);
870+ } else {
871+ fRegistry .fill (HIST (" Pair/same/hs" ), veeg.M (), veeg.Pt (), weight);
872+ }
863873
864874 std::pair<int , int > tuple_tmp_id2 = std::make_pair (pos2.trackId (), ele2.trackId ());
865875 if (std::find (used_photonIds_per_col.begin (), used_photonIds_per_col.end (), g1.globalIndex ()) == used_photonIds_per_col.end ()) {
@@ -953,7 +963,11 @@ struct Pi0EtaToGammaGamma {
953963 wpair *= g2.omegaMBWeight ();
954964 }
955965
956- fRegistry .fill (HIST (" Pair/same/hs" ), v12.M (), v12.Pt (), wpair);
966+ if (cfgSparseFullAxes.value ) {
967+ fRegistry .fill (HIST (" Pair/same/hs" ), v12.M (), v12.Pt (), ep2, occupancy, collision.posZ (), wpair);
968+ } else {
969+ fRegistry .fill (HIST (" Pair/same/hs" ), v12.M (), v12.Pt (), wpair);
970+ }
957971
958972 if (std::find (used_photonIds_per_col.begin (), used_photonIds_per_col.end (), g1.globalIndex ()) == used_photonIds_per_col.end ()) {
959973 auto emphoton1 = o2::aod::pwgem::photonmeson::utils::EMPhoton (g1.pt (), g1.eta (), g1.phi (), 0 );
@@ -1047,7 +1061,11 @@ struct Pi0EtaToGammaGamma {
10471061 continue ;
10481062 }
10491063
1050- fRegistry .fill (HIST (" Pair/mix/hs" ), v12.M (), v12.Pt (), weight);
1064+ if (cfgSparseFullAxes.value ) {
1065+ fRegistry .fill (HIST (" Pair/mix/hs" ), v12.M (), v12.Pt (), ep2, occupancy, collision.posZ (), weight);
1066+ } else {
1067+ fRegistry .fill (HIST (" Pair/mix/hs" ), v12.M (), v12.Pt (), weight);
1068+ }
10511069 }
10521070 }
10531071 } // end of loop over mixed event pool
@@ -1082,7 +1100,11 @@ struct Pi0EtaToGammaGamma {
10821100 if (std::fabs (v12.Rapidity ()) > maxY) {
10831101 continue ;
10841102 }
1085- fRegistry .fill (HIST (" Pair/mix/hs" ), v12.M (), v12.Pt (), weight);
1103+ if (cfgSparseFullAxes.value ) {
1104+ fRegistry .fill (HIST (" Pair/mix/hs" ), v12.M (), v12.Pt (), ep2, occupancy, collision.posZ (), weight);
1105+ } else {
1106+ fRegistry .fill (HIST (" Pair/mix/hs" ), v12.M (), v12.Pt (), weight);
1107+ }
10861108 }
10871109 }
10881110 } // end of loop over mixed event pool
@@ -1115,7 +1137,11 @@ struct Pi0EtaToGammaGamma {
11151137 if (std::fabs (v12.Rapidity ()) > maxY) {
11161138 continue ;
11171139 }
1118- fRegistry .fill (HIST (" Pair/mix/hs" ), v12.M (), v12.Pt (), weight);
1140+ if (cfgSparseFullAxes.value ) {
1141+ fRegistry .fill (HIST (" Pair/mix/hs" ), v12.M (), v12.Pt (), ep2, occupancy, collision.posZ (), weight);
1142+ } else {
1143+ fRegistry .fill (HIST (" Pair/mix/hs" ), v12.M (), v12.Pt (), weight);
1144+ }
11191145 }
11201146 }
11211147 } // end of loop over mixed event pool
0 commit comments