Skip to content

Commit 1c51e33

Browse files
authored
[PWGLF] Apply a different event selection for PbPb in the feeddown part of hStrangenessCorrelation.cxx (#17951)
1 parent 755d059 commit 1c51e33

1 file changed

Lines changed: 21 additions & 12 deletions

File tree

PWGLF/Tasks/Strangeness/hStrangeCorrelation.cxx

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2882,8 +2882,8 @@ struct HStrangeCorrelation {
28822882
}
28832883
if (!masterConfigurations.doPPAnalysis) {
28842884
// event selections in Pb-Pb
2885-
histos.add("hEventSelection", "hEventSelection", kTH1F, {{10, 0, 10}});
2886-
std::array<TString, 10> eventSelLabel = {"all", "sel8", "kIsTriggerTVX", "PV_{z}", "kIsGoodITSLayersAll", "kIsGoodZvtxFT0vsPV", "OccupCut", "kNoTimeFrameBorder", "kNoITSROFrameBorder", "kNoSameBunchPileup "};
2885+
histos.add("hEventSelection", "hEventSelection", kTH1F, {{11, 0, 11}});
2886+
std::array<TString, 11> eventSelLabel = {"all", "sel8", "kIsTriggerTVX", "Centrality", "PV_{z}", "kIsGoodITSLayersAll", "kIsGoodZvtxFT0vsPV", "OccupCut", "kNoTimeFrameBorder", "kNoITSROFrameBorder", "kNoSameBunchPileup "};
28872887
for (int i = 1; i <= histos.get<TH1>(HIST("hEventSelection"))->GetNbinsX(); i++) {
28882888
histos.get<TH1>(HIST("hEventSelection"))->GetXaxis()->SetBinLabel(i, eventSelLabel[i - 1].Data());
28892889
}
@@ -3336,19 +3336,26 @@ struct HStrangeCorrelation {
33363336
histos.fill(HIST("hEventSelection"), 2.5 /* FT0 vertex (acceptable FT0C-FT0A time difference) collisions */);
33373337
}
33383338

3339+
if (collision.centFT0C() > axisRanges[5][1] || collision.centFT0C() < axisRanges[5][0]) {
3340+
return false;
3341+
}
3342+
if (fillHists) {
3343+
histos.fill(HIST("hEventSelection"), 3.5 /* collisions after sel centrality sel*/);
3344+
}
3345+
33393346
if (std::abs(collision.posZ()) > masterConfigurations.zVertexCut) {
33403347
return false;
33413348
}
33423349
if (fillHists) {
3343-
histos.fill(HIST("hEventSelection"), 3.5 /* collisions after sel pvz sel*/);
3350+
histos.fill(HIST("hEventSelection"), 4.5 /* collisions after sel pvz sel*/);
33443351
}
33453352

33463353
if (!collision.selection_bit(aod::evsel::kIsGoodITSLayersAll) && masterConfigurations.requireAllGoodITSLayers) {
33473354
// cut time intervals with dead ITS staves
33483355
return false;
33493356
}
33503357
if (fillHists) {
3351-
histos.fill(HIST("hEventSelection"), 4.5 /* collisions after cut time intervals with dead ITS staves*/);
3358+
histos.fill(HIST("hEventSelection"), 5.5 /* collisions after cut time intervals with dead ITS staves*/);
33523359
}
33533360

33543361
if (!collision.selection_bit(o2::aod::evsel::kIsGoodZvtxFT0vsPV) && masterConfigurations.requireGoodZvtxFT0vsPV) {
@@ -3357,15 +3364,15 @@ struct HStrangeCorrelation {
33573364
return false;
33583365
}
33593366
if (fillHists) {
3360-
histos.fill(HIST("hEventSelection"), 5.5 /* removes collisions with large differences between z of PV by tracks and z of PV from FT0 A-C time difference*/);
3367+
histos.fill(HIST("hEventSelection"), 6.5 /* removes collisions with large differences between z of PV by tracks and z of PV from FT0 A-C time difference*/);
33613368
}
33623369

33633370
auto occupancy = collision.trackOccupancyInTimeRange();
33643371
if (occupancy < cfgCutOccupancyLow || occupancy > cfgCutOccupancyHigh) {
33653372
return false;
33663373
}
33673374
if (fillHists) {
3368-
histos.fill(HIST("hEventSelection"), 6.5 /* Below min occupancy and Above max occupancy*/);
3375+
histos.fill(HIST("hEventSelection"), 7.5 /* Below min occupancy and Above max occupancy*/);
33693376
}
33703377

33713378
/*
@@ -3381,7 +3388,7 @@ struct HStrangeCorrelation {
33813388
return false;
33823389
}
33833390
if (fillHists) {
3384-
histos.fill(HIST("hEventSelection"), 7.5 /* reject collisions close to Time Frame borders*/);
3391+
histos.fill(HIST("hEventSelection"), 8.5 /* reject collisions close to Time Frame borders*/);
33853392
}
33863393

33873394
if (!collision.selection_bit(o2::aod::evsel::kNoITSROFrameBorder)) {
@@ -3390,7 +3397,7 @@ struct HStrangeCorrelation {
33903397
return false;
33913398
}
33923399
if (fillHists) {
3393-
histos.fill(HIST("hEventSelection"), 8.5 /* reject events affected by the ITS ROF border*/);
3400+
histos.fill(HIST("hEventSelection"), 9.5 /* reject events affected by the ITS ROF border*/);
33943401
}
33953402

33963403
if (!collision.selection_bit(o2::aod::evsel::kNoSameBunchPileup)) {
@@ -3399,7 +3406,7 @@ struct HStrangeCorrelation {
33993406
return false;
34003407
}
34013408
if (fillHists) {
3402-
histos.fill(HIST("hEventSelection"), 9.5 /* rejects collisions which are associated with the same "found-by-T0" bunch crossing*/);
3409+
histos.fill(HIST("hEventSelection"), 10.5 /* rejects collisions which are associated with the same "found-by-T0" bunch crossing*/);
34033410
}
34043411
return true;
34053412
}
@@ -6402,12 +6409,12 @@ struct HStrangeCorrelation {
64026409
}
64036410
}
64046411

6405-
void processFeedDown(soa::Join<aod::Collisions, aod::EvSels, aod::CentFT0Ms, aod::PVMults>::iterator const& collision, aod::AssocV0s const& associatedV0s, aod::McParticles const&, V0DatasWithoutTrackXMC const&, TracksComplete const&, aod::BCsWithTimestamps const&)
6412+
void processFeedDown(soa::Join<aod::Collisions, aod::EvSels, aod::CentFT0Ms, aod::CentFT0Cs, aod::PVMults>::iterator const& collision, aod::AssocV0s const& associatedV0s, aod::McParticles const&, V0DatasWithoutTrackXMC const&, TracksComplete const&, aod::BCsWithTimestamps const&)
64066413
{
64076414

64086415
// ________________________________________________
64096416
// Perform basic event selection
6410-
if (!isCollisionSelected(collision)) {
6417+
if (!(masterConfigurations.doPPAnalysis ? isCollisionSelected(collision) : isCollisionSelectedPbPb(collision, false))) {
64116418
return;
64126419
}
64136420

@@ -6420,7 +6427,9 @@ struct HStrangeCorrelation {
64206427
if (postrack.tpcNClsCrossedRows() < trackSelection.minTPCNCrossedRowsAssociated || negtrack.tpcNClsCrossedRows() < trackSelection.minTPCNCrossedRowsAssociated) {
64216428
continue;
64226429
}
6423-
6430+
if (trackSelection.requireClusterInITS && (postrack.itsNCls() < trackSelection.minITSClustersForDaughterTracks || negtrack.itsNCls() < trackSelection.minITSClustersForDaughterTracks)) {
6431+
continue;
6432+
}
64246433
//---] syst cuts [---
64256434
if (v0Data.v0radius() < v0Selection.v0RadiusMin || v0Data.v0radius() > v0Selection.v0RadiusMax ||
64266435
std::abs(v0Data.dcapostopv()) < v0Selection.dcapostopv || std::abs(v0Data.dcanegtopv()) < v0Selection.dcanegtopv ||

0 commit comments

Comments
 (0)