2020#ifndef PWGCF_FEMTOUNIVERSE_CORE_FEMTOUNIVERSEANGULARCONTAINER_H_
2121#define PWGCF_FEMTOUNIVERSE_CORE_FEMTOUNIVERSEANGULARCONTAINER_H_
2222
23- #include < fairlogger/Logger.h>
24- #include < vector>
25- #include < string>
23+ #include " PWGCF/FemtoUniverse/Core/FemtoUniverseMath.h"
2624
27- #include " Framework/HistogramRegistry.h"
2825#include " Common/Core/RecoDecay.h"
29- #include " PWGCF/FemtoUniverse/Core/FemtoUniverseMath.h"
26+
27+ #include " Framework/HistogramRegistry.h"
3028
3129#include " Math/Vector4D.h"
32- #include " TMath.h"
3330#include " TDatabasePDG.h"
31+ #include " TMath.h"
32+
33+ #include < fairlogger/Logger.h>
34+
35+ #include < string>
36+ #include < vector>
3437
3538using namespace o2 ::framework;
3639
@@ -78,6 +81,9 @@ class FemtoUniverseAngularContainer
7881 if (use3dplots) {
7982 // use 3d plots
8083 }
84+ if (DoContainer) {
85+ mHistogramRegistry ->add ((folderName + " /CorrelationContainer" ).c_str (), " ; #Delta#varphi (rad); #Delta#eta; Inv Mass; #p_{1T}; #p_{2T}" , kTHnF , {phiAxis, etaAxis, minvAxis, pT1Axis, pT2Axis});
86+ }
8187 }
8288
8389 // / Initializes specialized Monte Carlo truth histograms for the task
@@ -103,8 +109,9 @@ class FemtoUniverseAngularContainer
103109 // / \param phiBins phi binning for the histograms
104110 // / \param isMC add Monte Carlo truth histograms to the output file
105111 template <typename T, typename P>
106- void init (HistogramRegistry* registry, T& kstarBins, T& multBins, T& kTBins , T& mTBins , T& multBins3D, T& mTBins3D , P& etaBins, P& phiBins, bool isMC, bool use3dplots)
112+ void init (HistogramRegistry* registry, T& kstarBins, T& multBins, T& kTBins , T& mTBins , T& multBins3D, T& mTBins3D , P& etaBins, P& phiBins, bool isMC, bool use3dplots, bool doContainer = false )
107113 {
114+ DoContainer = doContainer;
108115 mHistogramRegistry = registry;
109116 std::string femtoObs;
110117 if constexpr (FemtoObs == femto_universe_angular_container::Observable::kstar) {
@@ -125,6 +132,7 @@ class FemtoUniverseAngularContainer
125132 mPhiHigh = o2::constants::math::TwoPI + (-static_cast <int >(phiBins / 4 ) + 0.5 ) * o2::constants::math::TwoPI / phiBins;
126133 framework::AxisSpec phiAxis = {phiBins, mPhiLow , mPhiHigh };
127134 framework::AxisSpec etaAxis = {etaBins, -2.0 , 2.0 };
135+ // for the container
128136
129137 std::string folderName = static_cast <std::string>(FolderSuffix[EventType]) + static_cast <std::string>(o2::aod::femtouniverse_mc_particle::MCTypeName[o2::aod::femtouniverse_mc_particle::MCType::kRecon ]);
130138
@@ -241,6 +249,10 @@ class FemtoUniverseAngularContainer
241249 double mPhiHigh ;
242250 double deltaEta;
243251 double deltaPhi;
252+ framework::AxisSpec minvAxis = {100 , 0.9 , 1.05 }; // /< Axis for invariant mass
253+ framework::AxisSpec pT1Axis = {100 , 0.0 , 5.0 }; // /< Axis for pT of particle 1
254+ framework::AxisSpec pT2Axis = {100 , 0.0 , 5.0 }; // /< Axis for pT of particle 2
255+ bool DoContainer = false ; // /< Flag to indicate if the container is used
244256};
245257
246258} // namespace o2::analysis::femto_universe
0 commit comments