2626#include " TList.h"
2727#include " TProfile.h"
2828#include " TProfile2D.h"
29+ #include " TH2D.h"
30+ #include " TH1D.h"
2931#include " TRandom3.h"
3032#include " TMath.h"
3133
@@ -150,6 +152,7 @@ struct MeanptFluctuations_analysis {
150152 Configurable<int > cfgNSubsample{" cfgNSubsample" , 10 , " Number of subsamples" };
151153 ConfigurableAxis centAxis{" centAxis" , {90 , 0 , 90 }, " " };
152154 ConfigurableAxis multAxis{" multAxis" , {5000 , 0.5 , 5000.5 }, " " };
155+ ConfigurableAxis meanpTAxis{" meanpTAxis" , {500 , 0 , 5.0 }, " " };
153156
154157 expressions::Filter Nch_filter = aod::ptQn::n_ch > 3 .0f ;
155158 using FilteredMultPtQn = soa::Filtered<aod::MultPtQn>;
@@ -173,6 +176,8 @@ struct MeanptFluctuations_analysis {
173176 registry.add (" Prof_var_t1" , " " , {HistType::kTProfile2D , {centAxis, multAxis}});
174177 registry.add (" Prof_skew_t1" , " " , {HistType::kTProfile2D , {centAxis, multAxis}});
175178 registry.add (" Prof_kurt_t1" , " " , {HistType::kTProfile2D , {centAxis, multAxis}});
179+ registry.add (" Hist2D_Nch_centrality" , " " , {HistType::kTH2D , {centAxis, multAxis}});
180+ registry.add (" Hist2D_meanpt_centrality" , " " , {HistType::kTH2D , {centAxis, meanpTAxis}});
176181
177182 // initial array
178183 Subsample.resize (cfgNSubsample);
@@ -203,11 +208,13 @@ struct MeanptFluctuations_analysis {
203208 skewness_term1 = (TMath::Power (event_ptqn.q1 (), 3 .0f ) - 3 .0f * event_ptqn.q2 () * event_ptqn.q1 () + 2 .0f * event_ptqn.q3 ()) / (event_ptqn.n_ch () * (event_ptqn.n_ch () - 1 .0f ) * (event_ptqn.n_ch () - 2 .0f ));
204209 kurtosis_term1 = (TMath::Power (event_ptqn.q1 (), 4 .0f ) - (6 .0f * event_ptqn.q4 ()) + (8 .0f * event_ptqn.q1 () * event_ptqn.q3 ()) - (6 .0f * TMath::Power (event_ptqn.q1 (), 2 .0f ) * event_ptqn.q2 ()) + (3 .0f * TMath::Power (event_ptqn.q2 (), 2 .0f ))) / (event_ptqn.n_ch () * (event_ptqn.n_ch () - 1 .0f ) * (event_ptqn.n_ch () - 2 .0f ) * (event_ptqn.n_ch () - 3 .0f ));
205210
206- // filling profiles for central values
211+ // filling profiles and histograms for central values
207212 registry.get <TProfile2D>(HIST (" Prof_mean_t1" ))->Fill (event_ptqn.centrality (), event_ptqn.n_ch (), mean_term1);
208213 registry.get <TProfile2D>(HIST (" Prof_var_t1" ))->Fill (event_ptqn.centrality (), event_ptqn.n_ch (), variance_term1);
209214 registry.get <TProfile2D>(HIST (" Prof_skew_t1" ))->Fill (event_ptqn.centrality (), event_ptqn.n_ch (), skewness_term1);
210215 registry.get <TProfile2D>(HIST (" Prof_kurt_t1" ))->Fill (event_ptqn.centrality (), event_ptqn.n_ch (), kurtosis_term1);
216+ registry.fill (HIST (" Hist2D_Nch_centrality" ), event_ptqn.centrality (), event_ptqn.n_ch ());
217+ registry.fill (HIST (" Hist2D_meanpt_centrality" ), event_ptqn.centrality (), mean_term1);
211218
212219 // selecting subsample and filling profiles
213220 float l_Random = fRndm ->Rndm ();
0 commit comments