Skip to content

Commit 0026f18

Browse files
PWGCF: Updating centrality bins and fix pid selection (AliceO2Group#4344)
* Updating centrality bins and fix pid selection * remove parantheses * Adding Nch and Meanpt distribution to MeanptCode * Please consider the following formatting changes --------- Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
1 parent 76d6527 commit 0026f18

2 files changed

Lines changed: 19 additions & 4 deletions

File tree

PWGCF/EbyEFluctuations/Tasks/MeanptFluctuations.cxx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
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();

PWGCF/EbyEFluctuations/Tasks/NetProtonCumulants.cxx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ struct NetProtonCumulants_Table_QA {
7979
// Variable bin width axis
8080
std::vector<double> ptBinning = {0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.8, 2.0, 2.2, 2.4, 2.8, 3.2, 3.6, 4.};
8181
AxisSpec ptAxis = {ptBinning, "#it{p}_{T} (GeV/#it{c})"};
82-
std::vector<double> centBining = {0, 5, 10, 20, 30, 40, 50, 60, 70, 80, 90};
82+
std::vector<double> centBining = {0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90};
8383
AxisSpec centAxis = {centBining, "centrality (%)"};
8484
AxisSpec netProtonAxis = {2001, -1000.5, 1000.5, "net-proton number"};
8585

@@ -130,8 +130,16 @@ struct NetProtonCumulants_Table_QA {
130130
const float combNSigmaPr = std::sqrt(pow(track.tpcNSigmaPr(), 2.0) + pow(track.tofNSigmaPr(), 2.0));
131131
const float combNSigmaPi = std::sqrt(pow(track.tpcNSigmaPi(), 2.0) + pow(track.tofNSigmaPi(), 2.0));
132132
const float combNSigmaKa = std::sqrt(pow(track.tpcNSigmaKa(), 2.0) + pow(track.tofNSigmaKa(), 2.0));
133-
if (!(combNSigmaPr > combNSigmaPi) && !(combNSigmaPr > combNSigmaKa)) {
134-
if (track.tpcNSigmaPr() < cfgnSigmaCut) {
133+
134+
int flag2 = 0;
135+
if (combNSigmaPr < 3.0)
136+
flag2 += 1;
137+
if (combNSigmaPi < 3.0)
138+
flag2 += 1;
139+
if (combNSigmaKa < 3.0)
140+
flag2 += 1;
141+
if (!(flag2 > 1) && !(combNSigmaPr > combNSigmaPi) && !(combNSigmaPr > combNSigmaKa)) {
142+
if (combNSigmaPr < cfgnSigmaCut) {
135143
flag = 1;
136144
}
137145
}

0 commit comments

Comments
 (0)