4646
4747namespace o2::aod
4848{
49- namespace ptQn
49+ namespace pt_qn
5050{
5151DECLARE_SOA_COLUMN(Q1, q1, float); //! sum of pT of tracks in an event
5252DECLARE_SOA_COLUMN(Q2, q2, float); //! sum of (pT)^2 of tracks in an event
5353DECLARE_SOA_COLUMN(Q3, q3, float); //! sum of (pT)^3 of tracks in an event
5454DECLARE_SOA_COLUMN(Q4, q4, float); //! sum of (pT)^4 of tracks in an event
55- DECLARE_SOA_COLUMN(N_ch, n_ch , float); //! no of charged particles/multiplicity in an event
55+ DECLARE_SOA_COLUMN(Nch, nch , float); //! no of charged particles/multiplicity in an event
5656DECLARE_SOA_COLUMN(Centrality, centrality, float); //! Centrality of event
57- } // namespace ptQn
58- DECLARE_SOA_TABLE(MultPtQn, "AOD", "PTQN", ptQn ::Q1, ptQn ::Q2, ptQn ::Q3, ptQn ::Q4, ptQn::N_ch, ptQn ::Centrality); //! table to store e-by-e sum of pT, (pT)^2, (pT)^3, (pT)^4 of tracks, multiplicity and centrality
57+ } // namespace pt_qn
58+ DECLARE_SOA_TABLE(MultPtQn, "AOD", "PTQN", pt_qn ::Q1, pt_qn ::Q2, pt_qn ::Q3, pt_qn ::Q4, pt_qn::Nch, pt_qn ::Centrality); //! table to store e-by-e sum of pT, (pT)^2, (pT)^3, (pT)^4 of tracks, multiplicity and centrality
5959} // namespace o2::aod
6060
6161using namespace o2;
@@ -64,9 +64,11 @@ using namespace o2::framework::expressions;
6464
6565#define O2_DEFINE_CONFIGURABLE(NAME, TYPE, DEFAULT, HELP) Configurable<TYPE> NAME{#NAME, DEFAULT, HELP};
6666
67- struct MeanptFluctuations_QA_QnTable {
67+ struct MeanptFluctuationsQAQnTable {
6868
6969 Configurable<float> cfgCutVertex{"cfgCutVertex", 10.0f, "Accepted z-vertex range"};
70+ Configurable<float> cfgCutPreSelEta{"cfgCutPreSelEta", 0.8f, "|eta|<x; choose x value"};
71+ Configurable<float> cfgCutPreSelPt{"cfgCutPreSelPt", 5.0f, "Maximum allowed pT"};
7072 Configurable<float> cfgCutPtLower{"cfgCutPtLower", 0.2f, "Lower pT cut"};
7173 Configurable<float> cfgCutPtUpper{"cfgCutPtUpper", 3.0f, "Higher pT cut"};
7274 Configurable<float> cfgCutTpcChi2NCl{"cfgCutTpcChi2NCl", 2.5f, "Maximum TPCchi2NCl"};
@@ -124,19 +126,19 @@ struct MeanptFluctuations_QA_QnTable {
124126
125127 // Filter command***********
126128 Filter collisionFilter = nabs(aod::collision::posZ) < cfgCutVertex;
127- Filter trackFilter = (nabs(aod::track::eta) < 0.8f ) && (aod::track::pt > cfgCutPtLower) && (aod::track::pt < 5.0f ) && (requireGlobalTrackInFilter()) && (aod::track::tpcChi2NCl < cfgCutTpcChi2NCl) && (aod::track::itsChi2NCl < cfgCutItsChi2NCl) && (nabs(aod::track::dcaZ) < cfgCutTrackDcaZ);
129+ Filter trackFilter = (nabs(aod::track::eta) < cfgCutPreSelEta ) && (aod::track::pt > cfgCutPtLower) && (aod::track::pt < cfgCutPreSelPt ) && (requireGlobalTrackInFilter()) && (aod::track::tpcChi2NCl < cfgCutTpcChi2NCl) && (aod::track::itsChi2NCl < cfgCutItsChi2NCl) && (nabs(aod::track::dcaZ) < cfgCutTrackDcaZ);
128130
129131 // Connect to ccdb
130132 Service<ccdb::BasicCCDBManager> ccdb;
131- Configurable<int64_t> nolaterthan{"ccdb-no-later-than ", std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now().time_since_epoch()).count(), "latest acceptable timestamp of creation for the object"};
132- Configurable<std::string> url{"ccdb-url ", "http://ccdb-test.cern.ch:8080", "url of the ccdb repository"};
133+ Configurable<int64_t> ccdbnolaterthan{"ccdbnolaterthan ", std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now().time_since_epoch()).count(), "latest acceptable timestamp of creation for the object"};
134+ Configurable<std::string> ccdburl{"ccdburl ", "http://ccdb-test.cern.ch:8080", "url of the ccdb repository"};
133135
134136 HistogramRegistry histos{"Histos", {}, OutputObjHandlingPolicy::AnalysisObject};
135137
136138 // filtering collisions and tracks***********
137- using aodCollisions = soa::Filtered<soa::Join<aod::Collisions, aod::EvSels, aod::CentFT0Cs, aod::CentFT0Ms, aod::CentFT0As, aod::CentFV0As, aod::Mults>>;
139+ using AodCollisions = soa::Filtered<soa::Join<aod::Collisions, aod::EvSels, aod::CentFT0Cs, aod::CentFT0Ms, aod::CentFT0As, aod::CentFV0As, aod::Mults>>;
138140 // using aodCollisions = soa::Filtered<soa::Join<aod::Collisions, aod::EvSels>>;
139- using aodTracks = soa::Filtered<soa::Join<aod::Tracks, aod::TrackSelection, aod::TracksExtra, aod::TracksDCA>>;
141+ using AodTracks = soa::Filtered<soa::Join<aod::Tracks, aod::TrackSelection, aod::TracksExtra, aod::TracksDCA>>;
140142
141143 // Event selection cuts - Alex
142144 TF1* fMultPVCutLow = nullptr;
@@ -169,6 +171,20 @@ struct MeanptFluctuations_QA_QnTable {
169171 histos.add("hMeanPt", "", kTProfile, {centAxis});
170172 histos.add("Hist2D_globalTracks_PVTracks", "", {HistType::kTH2D, {nchAxis, nchAxis}});
171173 histos.add("Hist2D_cent_nch", "", {HistType::kTH2D, {nchAxis, centAxis}});
174+ // before selection
175+ histos.add("His2D_globalTracks_PVTracks_beforeSel", "", {HistType::kTH2D, {nchAxis, nchAxis}});
176+ histos.add("His2D_globalTracks_centFT0C_beforeSel", "", {HistType::kTH2D, {centAxis, nchAxis}});
177+ histos.add("His2D_PVTracks_centFT0C_beforeSel", "", {HistType::kTH2D, {centAxis, nchAxis}});
178+ histos.add("His2D_globalTracks_V0ATracks_beforeSel", "", {HistType::kTH2D, {nchAxis, nchAxis}});
179+ histos.add("His2D_globalTracks_T0ATracks_beforeSel", "", {HistType::kTH2D, {nchAxis, nchAxis}});
180+ histos.add("His2D_V0ATracks_T0CTracks_beforeSel", "", {HistType::kTH2D, {nchAxis, nchAxis}});
181+ // after selection
182+ histos.add("His2D_globalTracks_PVTracks_afterSel", "", {HistType::kTH2D, {nchAxis, nchAxis}});
183+ histos.add("His2D_globalTracks_centFT0C_afterSel", "", {HistType::kTH2D, {centAxis, nchAxis}});
184+ histos.add("His2D_PVTracks_centFT0C_afterSel", "", {HistType::kTH2D, {centAxis, nchAxis}});
185+ histos.add("His2D_globalTracks_V0ATracks_afterSel", "", {HistType::kTH2D, {nchAxis, nchAxis}});
186+ histos.add("His2D_globalTracks_T0ATracks_afterSel", "", {HistType::kTH2D, {nchAxis, nchAxis}});
187+ histos.add("His2D_V0ATracks_T0CTracks_afterSel", "", {HistType::kTH2D, {nchAxis, nchAxis}});
172188
173189 // Event selection - Alex
174190 if (cfgUse22sEventCut) {
@@ -225,7 +241,9 @@ struct MeanptFluctuations_QA_QnTable {
225241 if (collision.numContrib() > 1) {
226242 vtxz = collision.posZ();
227243 float zRes = std::sqrt(collision.covZZ());
228- if (zRes > 0.25 && collision.numContrib() < 20)
244+ float zResMax = 0.25;
245+ float numContribMin = 20;
246+ if (zRes > zResMax && collision.numContrib() < numContribMin)
229247 vtxz = -999;
230248 }
231249 auto multNTracksPV = collision.multNTracksPV();
@@ -247,7 +265,7 @@ struct MeanptFluctuations_QA_QnTable {
247265 }
248266
249267 template <typename TCollision>
250- bool eventSelected_smallion (TCollision collision, const int multTrk, const float centrality)
268+ bool eventSelectedSmallion (TCollision collision, const int multTrk, const float centrality)
251269 {
252270 auto multNTracksPV = collision.multNTracksPV();
253271
@@ -288,10 +306,10 @@ struct MeanptFluctuations_QA_QnTable {
288306 return 1;
289307 }
290308
291- Produces<aod::MultPtQn> mult_ptQn ;
309+ Produces<aod::MultPtQn> multPtQn ;
292310
293311 // void process(aod::Collision const& coll, aod::Tracks const& inputTracks)
294- void process(aodCollisions ::iterator const& coll, aod::BCsWithTimestamps const&, aodTracks const& inputTracks)
312+ void process(AodCollisions ::iterator const& coll, aod::BCsWithTimestamps const&, AodTracks const& inputTracks)
295313 {
296314 if (!coll.sel8()) {
297315 return;
@@ -309,38 +327,56 @@ struct MeanptFluctuations_QA_QnTable {
309327 return;
310328 }
311329
312- const auto CentralityFT0C = coll.centFT0C();
313- if (cfgUse22sEventCut && !eventSelected(coll, inputTracks.size(), CentralityFT0C))
330+ histos.fill(HIST("His2D_globalTracks_PVTracks_beforeSel"), coll.multNTracksPV(), inputTracks.size());
331+ histos.fill(HIST("His2D_globalTracks_centFT0C_beforeSel"), coll.centFT0C(), inputTracks.size());
332+ histos.fill(HIST("His2D_PVTracks_centFT0C_beforeSel"), coll.centFT0C(), coll.multNTracksPV());
333+ histos.fill(HIST("His2D_globalTracks_V0ATracks_beforeSel"), coll.multFV0A(), inputTracks.size());
334+ histos.fill(HIST("His2D_globalTracks_T0ATracks_beforeSel"), coll.multFT0A(), inputTracks.size());
335+ histos.fill(HIST("His2D_V0ATracks_T0CTracks_beforeSel"), coll.multFT0C(), coll.multFV0A());
336+
337+ const auto centralityFT0C = coll.centFT0C();
338+ if (cfgUse22sEventCut && !eventSelected(coll, inputTracks.size(), centralityFT0C))
314339 return;
315- if (cfgUseSmallIonAdditionalEventCut && !eventSelected_smallion (coll, inputTracks.size(), CentralityFT0C ))
340+ if (cfgUseSmallIonAdditionalEventCut && !eventSelectedSmallion (coll, inputTracks.size(), centralityFT0C ))
316341 return;
317342
343+ histos.fill(HIST("His2D_globalTracks_PVTracks_afterSel"), coll.multNTracksPV(), inputTracks.size());
344+ histos.fill(HIST("His2D_globalTracks_centFT0C_afterSel"), coll.centFT0C(), inputTracks.size());
345+ histos.fill(HIST("His2D_PVTracks_centFT0C_afterSel"), coll.centFT0C(), coll.multNTracksPV());
346+ histos.fill(HIST("His2D_globalTracks_V0ATracks_afterSel"), coll.multFV0A(), inputTracks.size());
347+ histos.fill(HIST("His2D_globalTracks_T0ATracks_afterSel"), coll.multFT0A(), inputTracks.size());
348+ histos.fill(HIST("His2D_V0ATracks_T0CTracks_afterSel"), coll.multFT0C(), coll.multFV0A());
349+
318350 histos.fill(HIST("hZvtx_after_sel"), coll.posZ());
319351
320352 double cent = 0.0;
321- if (cfgCentralityEstimator == 1)
353+ int centChoiceFT0C = 1;
354+ int centChoiceFT0A = 2;
355+ int centChoiceFT0M = 3;
356+ int centChoiceFV0A = 4;
357+ if (cfgCentralityEstimator == centChoiceFT0C)
322358 cent = coll.centFT0C();
323- else if (cfgCentralityEstimator == 2 )
359+ else if (cfgCentralityEstimator == centChoiceFT0A )
324360 cent = coll.centFT0A();
325- else if (cfgCentralityEstimator == 3 )
361+ else if (cfgCentralityEstimator == centChoiceFT0M )
326362 cent = coll.centFT0M();
327- else if (cfgCentralityEstimator == 4 )
363+ else if (cfgCentralityEstimator == centChoiceFV0A )
328364 cent = coll.centFV0A();
329365
330366 histos.fill(HIST("hCentrality"), cent);
331367
332368 histos.fill(HIST("Hist2D_globalTracks_PVTracks"), coll.multNTracksPV(), inputTracks.size());
333- histos.fill(HIST("Hist2D_cent_nch"), inputTracks.size(), CentralityFT0C );
369+ histos.fill(HIST("Hist2D_cent_nch"), inputTracks.size(), centralityFT0C );
334370
335371 // variables
336- double pT_sum = 0.0;
337- double N = 0.0;
372+ double pTsum = 0.0;
373+ double nN = 0.0;
338374
339375 float q1 = 0.0;
340376 float q2 = 0.0;
341377 float q3 = 0.0;
342378 float q4 = 0.0;
343- float n_ch = 0.0;
379+ float nCh = 0.0;
344380
345381 for (const auto& track : inputTracks) { // Loop over tracks
346382
@@ -363,44 +399,45 @@ struct MeanptFluctuations_QA_QnTable {
363399 histos.fill(HIST("hDcaXY"), track.dcaXY());
364400 histos.fill(HIST("hDcaZ"), track.dcaZ());
365401
366- pT_sum += track.pt();
367- N += 1.0;
402+ pTsum += track.pt();
403+ nN += 1.0;
368404
369405 float pT = track.pt();
370- // calculating Q1, Q2, Q3, Q4. N_ch
406+ // calculating Q1, Q2, Q3, Q4. Nch
371407 if (track.pt() > cfgCutPtLower && track.pt() < cfgCutPtUpper && track.sign() != 0) {
372408 q1 = q1 + std::pow(pT, 1.0);
373409 q2 = q2 + std::pow(pT, 2.0);
374410 q3 = q3 + std::pow(pT, 3.0);
375411 q4 = q4 + std::pow(pT, 4.0);
376- n_ch = n_ch + 1;
412+ nCh = nCh + 1;
377413 }
378414 }
379- mult_ptQn (q1, q2, q3, q4, n_ch , cent);
415+ multPtQn (q1, q2, q3, q4, nCh , cent);
380416 // MeanPt
381- if (N > 0.0f)
382- histos.fill(HIST("hMeanPt"), cent, pT_sum / N );
417+ if (nN > 0.0f)
418+ histos.fill(HIST("hMeanPt"), cent, pTsum / nN );
383419 }
384420};
385421
386- struct MeanptFluctuations_analysis {
422+ struct MeanptFluctuationsAnalysis {
387423
388- Configurable<int> cfgNSubsample{"cfgNSubsample ", 10, "Number of subsamples"};
424+ Configurable<int> cfgNsubSample{"cfgNsubSample ", 10, "Number of subsamples"};
389425 ConfigurableAxis centAxis{"centAxis", {90, 0, 90}, ""};
390426 ConfigurableAxis multAxis{"multAxis", {5000, 0.5, 5000.5}, ""};
391427 ConfigurableAxis meanpTAxis{"meanpTAxis", {500, 0, 5.0}, ""};
392428
393- expressions::Filter Nch_filter = aod::ptQn::n_ch > 3.0f;
429+ float minNch = 3.0f;
430+ expressions::Filter nchFilter = aod::pt_qn::nch > minNch;
394431 using FilteredMultPtQn = soa::Filtered<aod::MultPtQn>;
395432
396433 // Connect to ccdb
397434 Service<ccdb::BasicCCDBManager> ccdb;
398- Configurable<int64_t> nolaterthan{"ccdb-no-later-than ", std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now().time_since_epoch()).count(), "latest acceptable timestamp of creation for the object"};
399- Configurable<std::string> url{"ccdb-url ", "http://ccdb-test.cern.ch:8080", "url of the ccdb repository"};
435+ Configurable<int64_t> ccdbnolaterthan{"ccdbnolaterthan ", std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now().time_since_epoch()).count(), "latest acceptable timestamp of creation for the object"};
436+ Configurable<std::string> ccdburl{"ccdburl ", "http://ccdb-test.cern.ch:8080", "url of the ccdb repository"};
400437
401438 // Define output
402439 HistogramRegistry registry{"registry", {}, OutputObjHandlingPolicy::AnalysisObject};
403- std::vector<std::vector<std::shared_ptr<TProfile2D>>> Subsample ;
440+ std::vector<std::vector<std::shared_ptr<TProfile2D>>> subSample ;
404441 TRandom3* fRndm = new TRandom3(0);
405442
406443 void init(o2::framework::InitContext&)
@@ -416,57 +453,57 @@ struct MeanptFluctuations_analysis {
416453 registry.add("Hist2D_meanpt_centrality", "", {HistType::kTH2D, {centAxis, meanpTAxis}});
417454
418455 // initial array
419- Subsample .resize(cfgNSubsample );
420- for (int i = 0; i < cfgNSubsample ; i++) {
421- Subsample [i].resize(4);
456+ subSample .resize(cfgNsubSample );
457+ for (int i = 0; i < cfgNsubSample ; i++) {
458+ subSample [i].resize(4);
422459 }
423- for (int i = 0; i < cfgNSubsample ; i++) {
424- Subsample [i][0] = std::get<std::shared_ptr<TProfile2D>>(registry.add(Form("Subsample_ %d/Prof_mean_t1", i), "", {HistType::kTProfile2D, {centAxis, multAxis}}));
425- Subsample [i][1] = std::get<std::shared_ptr<TProfile2D>>(registry.add(Form("Subsample_ %d/Prof_var_t1", i), "", {HistType::kTProfile2D, {centAxis, multAxis}}));
426- Subsample [i][2] = std::get<std::shared_ptr<TProfile2D>>(registry.add(Form("Subsample_ %d/Prof_skew_t1", i), "", {HistType::kTProfile2D, {centAxis, multAxis}}));
427- Subsample [i][3] = std::get<std::shared_ptr<TProfile2D>>(registry.add(Form("Subsample_ %d/Prof_kurt_t1", i), "", {HistType::kTProfile2D, {centAxis, multAxis}}));
460+ for (int i = 0; i < cfgNsubSample ; i++) {
461+ subSample [i][0] = std::get<std::shared_ptr<TProfile2D>>(registry.add(Form("subSample_ %d/Prof_mean_t1", i), "", {HistType::kTProfile2D, {centAxis, multAxis}}));
462+ subSample [i][1] = std::get<std::shared_ptr<TProfile2D>>(registry.add(Form("subSample_ %d/Prof_var_t1", i), "", {HistType::kTProfile2D, {centAxis, multAxis}}));
463+ subSample [i][2] = std::get<std::shared_ptr<TProfile2D>>(registry.add(Form("subSample_ %d/Prof_skew_t1", i), "", {HistType::kTProfile2D, {centAxis, multAxis}}));
464+ subSample [i][3] = std::get<std::shared_ptr<TProfile2D>>(registry.add(Form("subSample_ %d/Prof_kurt_t1", i), "", {HistType::kTProfile2D, {centAxis, multAxis}}));
428465 }
429466 }
430467
431- float mean_term1 ;
432- float variance_term1 ;
433- float skewness_term1 ;
434- float kurtosis_term1 ;
468+ float meanTerm1 ;
469+ float varianceTerm1 ;
470+ float skewnessTerm1 ;
471+ float kurtosisTerm1 ;
435472
436473 // void process(aod::MultPtQn::iterator const& event_ptqn)
437474 void process(FilteredMultPtQn::iterator const& event_ptqn)
438475 {
439- // LOGF(info, "Centrality= %f Nch= %f Q1= %f Q2= %f", event_ptqn.centrality(), event_ptqn.n_ch (), event_ptqn.q1(), event_ptqn.q2());
476+ // LOGF(info, "Centrality= %f Nch= %f Q1= %f Q2= %f", event_ptqn.centrality(), event_ptqn.nch (), event_ptqn.q1(), event_ptqn.q2());
440477
441478 // calculating observables
442- mean_term1 = event_ptqn.q1() / event_ptqn.n_ch ();
443- variance_term1 = (std::pow(event_ptqn.q1(), 2.0f) - event_ptqn.q2()) / (event_ptqn.n_ch () * (event_ptqn.n_ch () - 1.0f));
444- skewness_term1 = (std::pow(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));
445- kurtosis_term1 = (std::pow(event_ptqn.q1(), 4.0f) - (6.0f * event_ptqn.q4()) + (8.0f * event_ptqn.q1() * event_ptqn.q3()) - (6.0f * std::pow(event_ptqn.q1(), 2.0f) * event_ptqn.q2()) + (3.0f * std::pow(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));
479+ meanTerm1 = event_ptqn.q1() / event_ptqn.nch ();
480+ varianceTerm1 = (std::pow(event_ptqn.q1(), 2.0f) - event_ptqn.q2()) / (event_ptqn.nch () * (event_ptqn.nch () - 1.0f));
481+ skewnessTerm1 = (std::pow(event_ptqn.q1(), 3.0f) - 3.0f * event_ptqn.q2() * event_ptqn.q1() + 2.0f * event_ptqn.q3()) / (event_ptqn.nch () * (event_ptqn.nch () - 1.0f) * (event_ptqn.nch () - 2.0f));
482+ kurtosisTerm1 = (std::pow(event_ptqn.q1(), 4.0f) - (6.0f * event_ptqn.q4()) + (8.0f * event_ptqn.q1() * event_ptqn.q3()) - (6.0f * std::pow(event_ptqn.q1(), 2.0f) * event_ptqn.q2()) + (3.0f * std::pow(event_ptqn.q2(), 2.0f))) / (event_ptqn.nch () * (event_ptqn.nch () - 1.0f) * (event_ptqn.nch () - 2.0f) * (event_ptqn.nch () - 3.0f));
446483
447484 // filling profiles and histograms for central values
448- registry.get<TProfile2D>(HIST("Prof_mean_t1"))->Fill(event_ptqn.centrality(), event_ptqn.n_ch (), mean_term1 );
449- registry.get<TProfile2D>(HIST("Prof_var_t1"))->Fill(event_ptqn.centrality(), event_ptqn.n_ch (), variance_term1 );
450- registry.get<TProfile2D>(HIST("Prof_skew_t1"))->Fill(event_ptqn.centrality(), event_ptqn.n_ch (), skewness_term1 );
451- registry.get<TProfile2D>(HIST("Prof_kurt_t1"))->Fill(event_ptqn.centrality(), event_ptqn.n_ch (), kurtosis_term1 );
452- registry.fill(HIST("Hist2D_Nch_centrality"), event_ptqn.centrality(), event_ptqn.n_ch ());
453- registry.fill(HIST("Hist2D_meanpt_centrality"), event_ptqn.centrality(), mean_term1 );
485+ registry.get<TProfile2D>(HIST("Prof_mean_t1"))->Fill(event_ptqn.centrality(), event_ptqn.nch (), meanTerm1 );
486+ registry.get<TProfile2D>(HIST("Prof_var_t1"))->Fill(event_ptqn.centrality(), event_ptqn.nch (), varianceTerm1 );
487+ registry.get<TProfile2D>(HIST("Prof_skew_t1"))->Fill(event_ptqn.centrality(), event_ptqn.nch (), skewnessTerm1 );
488+ registry.get<TProfile2D>(HIST("Prof_kurt_t1"))->Fill(event_ptqn.centrality(), event_ptqn.nch (), kurtosisTerm1 );
489+ registry.fill(HIST("Hist2D_Nch_centrality"), event_ptqn.centrality(), event_ptqn.nch ());
490+ registry.fill(HIST("Hist2D_meanpt_centrality"), event_ptqn.centrality(), meanTerm1 );
454491
455492 // selecting subsample and filling profiles
456- float l_Random = fRndm->Rndm();
457- int SampleIndex = static_cast<int>(cfgNSubsample * l_Random );
458- Subsample[SampleIndex ][0]->Fill(event_ptqn.centrality(), event_ptqn.n_ch (), mean_term1 );
459- Subsample[SampleIndex ][1]->Fill(event_ptqn.centrality(), event_ptqn.n_ch (), variance_term1 );
460- Subsample[SampleIndex ][2]->Fill(event_ptqn.centrality(), event_ptqn.n_ch (), skewness_term1 );
461- Subsample[SampleIndex ][3]->Fill(event_ptqn.centrality(), event_ptqn.n_ch (), kurtosis_term1 );
493+ float lRandom = fRndm->Rndm();
494+ int sampleIndex = static_cast<int>(cfgNsubSample * lRandom );
495+ subSample[sampleIndex ][0]->Fill(event_ptqn.centrality(), event_ptqn.nch (), meanTerm1 );
496+ subSample[sampleIndex ][1]->Fill(event_ptqn.centrality(), event_ptqn.nch (), varianceTerm1 );
497+ subSample[sampleIndex ][2]->Fill(event_ptqn.centrality(), event_ptqn.nch (), skewnessTerm1 );
498+ subSample[sampleIndex ][3]->Fill(event_ptqn.centrality(), event_ptqn.nch (), kurtosisTerm1 );
462499 }
463500};
464501
465502WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
466503{
467504 // Equivalent to the AddTask in AliPhysics
468505 return WorkflowSpec{
469- adaptAnalysisTask<MeanptFluctuations_QA_QnTable >(cfgc),
470- adaptAnalysisTask<MeanptFluctuations_analysis >(cfgc),
506+ adaptAnalysisTask<MeanptFluctuationsQAQnTable >(cfgc),
507+ adaptAnalysisTask<MeanptFluctuationsAnalysis >(cfgc),
471508 };
472509}
0 commit comments