Skip to content

Commit 53bc0fd

Browse files
jikim1290junleekim
andauthored
adding event selections in PbPb (AliceO2Group#7979)
Co-authored-by: junleekim <[email protected]>
1 parent 6e75b72 commit 53bc0fd

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

PWGLF/Tasks/Resonances/f0980pbpbanalysis.cxx

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ struct f0980pbpbanalysis {
7676
Configurable<std::string> cfgURL{"cfgURL", "http://alice-ccdb.cern.ch", "Address of the CCDB to browse"};
7777
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"};
7878

79+
Configurable<bool> cfgQvecSel{"cfgQvecSel", true, "Reject events when no QVector"};
80+
Configurable<bool> cfgOccupancySel{"cfgOccupancySe", false, "Occupancy selection"};
81+
Configurable<int> cfgMaxOccupancy{"cfgMaxOccupancy", 999999, "maximum occupancy of tracks in neighbouring collisions in a given time range"};
82+
Configurable<int> cfgMinOccupancy{"cfgMinOccupancy", -100, "maximum occupancy of tracks in neighbouring collisions in a given time range"};
83+
Configurable<bool> cfgNCollinTR{"cfgNCollinTR", false, "Additional selection for the number of coll in time range"};
84+
7985
Configurable<float> cfgCentSel{"cfgCentSel", 80., "Centrality selection"};
8086
Configurable<int> cfgCentEst{"cfgCentEst", 1, "Centrality estimator, 1: FT0C, 2: FT0M"};
8187

@@ -172,7 +178,13 @@ struct f0980pbpbanalysis {
172178
if (!collision.selection_bit(aod::evsel::kNoSameBunchPileup)) {
173179
return 0;
174180
}
175-
if (collision.qvecAmp()[DetId] < 1e-4 || collision.qvecAmp()[RefAId] < 1e-4 || collision.qvecAmp()[RefAId] < 1e-4) {
181+
if (cfgQvecSel && (collision.qvecAmp()[DetId] < 1e-4 || collision.qvecAmp()[RefAId] < 1e-4 || collision.qvecAmp()[RefAId] < 1e-4)) {
182+
return 0;
183+
}
184+
if (cfgOccupancySel && (collision.trackOccupancyInTimeRange() > cfgMaxOccupancy || collision.trackOccupancyInTimeRange() < cfgMinOccupancy)) {
185+
return 0;
186+
}
187+
if (cfgNCollinTR && !collision.selection_bit(o2::aod::evsel::kNoCollInTimeRangeStandard)) {
176188
return 0;
177189
}
178190

@@ -247,9 +259,9 @@ struct f0980pbpbanalysis {
247259
double eventPlaneRefB = TMath::ATan2(collision.qvecIm()[QvecRefBInd], collision.qvecRe()[QvecRefBInd]) / static_cast<float>(nmode);
248260

249261
histos.fill(HIST("QA/EPhist"), centrality, eventPlaneDet);
250-
histos.fill(HIST("QA/QA/EPResAB"), centrality, TMath::Cos(static_cast<float>(nmode) * (eventPlaneDet - eventPlaneRefA)));
251-
histos.fill(HIST("QA/QA/EPResAC"), centrality, TMath::Cos(static_cast<float>(nmode) * (eventPlaneDet - eventPlaneRefB)));
252-
histos.fill(HIST("QA/QA/EPResBC"), centrality, TMath::Cos(static_cast<float>(nmode) * (eventPlaneRefA - eventPlaneRefB)));
262+
histos.fill(HIST("QA/EPResAB"), centrality, TMath::Cos(static_cast<float>(nmode) * (eventPlaneDet - eventPlaneRefA)));
263+
histos.fill(HIST("QA/EPResAC"), centrality, TMath::Cos(static_cast<float>(nmode) * (eventPlaneDet - eventPlaneRefB)));
264+
histos.fill(HIST("QA/EPResBC"), centrality, TMath::Cos(static_cast<float>(nmode) * (eventPlaneRefA - eventPlaneRefB)));
253265

254266
TLorentzVector Pion1, Pion2, Reco;
255267
for (auto& [trk1, trk2] :

0 commit comments

Comments
 (0)