Skip to content

Commit 706f0f0

Browse files
prottayCMTProttay Das
andauthored
[PWGLF] added different centrality estimators (#12584)
Co-authored-by: Prottay Das <prottay@alipap1.cern.ch>
1 parent 26a3419 commit 706f0f0

File tree

1 file changed

+26
-3
lines changed

1 file changed

+26
-3
lines changed

PWGLF/Tasks/Strangeness/lambdapolsp.cxx

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ struct lambdapolsp {
9999
Configurable<int> cfgMaxOccupancy{"cfgMaxOccupancy", 1000, "maximum occupancy of tracks in neighbouring collisions in a given time range"};
100100
Configurable<int> cfgMinOccupancy{"cfgMinOccupancy", 0, "maximum occupancy of tracks in neighbouring collisions in a given time range"};
101101
Configurable<int> sys{"sys", 1, "flag to select systematic source"};
102+
Configurable<int> centestim{"centestim", 0, "flag to select centrality estimator"};
102103
Configurable<bool> dosystematic{"dosystematic", false, "flag to perform systematic study"};
103104
Configurable<bool> needetaaxis{"needetaaxis", false, "flag to use last axis"};
104105
struct : ConfigurableGroup {
@@ -483,6 +484,7 @@ struct lambdapolsp {
483484
/*if (TMath::Abs(eta) > ConfDaughEta) {
484485
return false;
485486
}*/
487+
486488
if (tpcNClsF < ConfDaughTPCnclsMin) {
487489
return false;
488490
}
@@ -541,6 +543,7 @@ struct lambdapolsp {
541543
if (posTrackExtra.tpcNClsCrossedRows() < cfgTPCcluster || negTrackExtra.tpcNClsCrossedRows() < cfgTPCcluster) {
542544
return false;
543545
}
546+
544547
if (posTrackExtra.tpcNClsFound() < ConfDaughTPCnclsMin || negTrackExtra.tpcNClsFound() < ConfDaughTPCnclsMin) {
545548
return false;
546549
}
@@ -587,12 +590,14 @@ struct lambdapolsp {
587590
if (posTrackExtra.tpcNClsCrossedRows() < cfgTPCcluster || negTrackExtra.tpcNClsCrossedRows() < cfgTPCcluster) {
588591
return false;
589592
}
593+
590594
if (posTrackExtra.tpcNClsFound() < ConfDaughTPCnclsMin || negTrackExtra.tpcNClsFound() < ConfDaughTPCnclsMin) {
591595
return false;
592596
}
593597
if (posTrackExtra.tpcCrossedRowsOverFindableCls() < rcrfc || negTrackExtra.tpcCrossedRowsOverFindableCls() < rcrfc) {
594598
return false;
595599
}
600+
596601
// check TPC PID
597602
if (((std::abs(posTrackExtra.tpcNSigmaPi()) > ConfDaughPIDCuts) || (std::abs(negTrackExtra.tpcNSigmaPi()) > ConfDaughPIDCuts))) {
598603
return false;
@@ -798,7 +803,16 @@ struct lambdapolsp {
798803
if (!collision.sel8()) {
799804
return;
800805
}
801-
auto centrality = collision.centFT0C();
806+
double centrality = -999.;
807+
if (centestim == 0)
808+
centrality = collision.centFT0C();
809+
else if (centestim == 1)
810+
centrality = collision.centFT0M();
811+
else if (centestim == 2)
812+
centrality = collision.centFT0A();
813+
else if (centestim == 3)
814+
centrality = collision.centFV0A();
815+
802816
// histos.fill(HIST("hCentrality0"), centrality);
803817
if (!collision.triggereventsp()) {
804818
return;
@@ -1199,7 +1213,17 @@ struct lambdapolsp {
11991213
if (!collision.sel8()) {
12001214
return;
12011215
}
1202-
auto centrality = collision.centFT0C();
1216+
double centrality = -999.;
1217+
if (centestim == 0)
1218+
centrality = collision.centFT0C();
1219+
else if (centestim == 1)
1220+
centrality = collision.centFT0M();
1221+
else if (centestim == 2)
1222+
centrality = collision.centFT0A();
1223+
else if (centestim == 3)
1224+
centrality = collision.centFV0A();
1225+
1226+
// auto centrality = collision.centFT0C();
12031227
if (!collision.triggereventsp()) { // provided by StraZDCSP
12041228
return;
12051229
}
@@ -1617,7 +1641,6 @@ struct lambdapolsp {
16171641
if (additionalEvSel4 && !collision2.selection_bit(o2::aod::evsel::kIsGoodITSLayersAll)) {
16181642
continue;
16191643
}
1620-
16211644
auto centrality = collision1.centFT0C();
16221645
auto qxZDCA = collision1.qxZDCA();
16231646
auto qxZDCC = collision1.qxZDCC();

0 commit comments

Comments
 (0)