Skip to content

Commit 8ad53e5

Browse files
NucleiTask - Add INELgt0 and INELgt1 checks on data model
1 parent 9151dd5 commit 8ad53e5

3 files changed

Lines changed: 41 additions & 8 deletions

File tree

PWGLF/DataModel/LFNucleiTables.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ DECLARE_SOA_COLUMN(IsEventReject, isEventReject, int);
3333
DECLARE_SOA_COLUMN(RunNumber, runNumber, int);
3434
DECLARE_SOA_COLUMN(CentFV0M, centFV0M, float);
3535
DECLARE_SOA_COLUMN(CentFT0M, centFT0M, float);
36+
DECLARE_SOA_COLUMN(MultNTracksPVeta1, multNTracksPVeta1, int);
37+
DECLARE_SOA_DYNAMIC_COLUMN(IsInelGt0, isInelGt0, // is INEL > 0
38+
[](int multPveta1) -> bool { return multPveta1 > 0; });
39+
DECLARE_SOA_DYNAMIC_COLUMN(IsInelGt1, isInelGt1, // is INEL > 1
40+
[](int multPveta1) -> bool { return multPveta1 > 1; });
3641
DECLARE_SOA_DYNAMIC_COLUMN(Selection_Bit, selection_bit, //! Dummy
3742
[](o2::aod::evsel::EventSelectionFlags /*v*/) -> bool { return true; });
3843
} // namespace fullEvent
@@ -44,6 +49,9 @@ DECLARE_SOA_TABLE(LfNuclEvents, "AOD", "LFNUCLEvent",
4449
collision::PosZ,
4550
fullEvent::CentFV0M,
4651
fullEvent::CentFT0M,
52+
fullEvent::MultNTracksPVeta1,
53+
fullEvent::IsInelGt0<fullEvent::MultNTracksPVeta1>,
54+
fullEvent::IsInelGt1<fullEvent::MultNTracksPVeta1>,
4755
fullEvent::IsEventReject,
4856
fullEvent::RunNumber,
4957
fullEvent::Selection_Bit<>);

PWGLF/TableProducer/Nuspex/LFTreeCreatorNuclei.cxx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@
2020

2121
#include "PWGLF/DataModel/LFNucleiTables.h"
2222
#include "PWGLF/DataModel/LFParticleIdentification.h"
23+
#include "PWGLF/Utils/inelGt.h"
2324

2425
#include "Common/CCDB/EventSelectionParams.h"
2526
#include "Common/Core/TrackSelection.h"
2627
#include "Common/Core/TrackSelectionDefaults.h"
2728
#include "Common/DataModel/Centrality.h"
2829
#include "Common/DataModel/EventSelection.h"
30+
#include "Common/DataModel/Multiplicity.h"
2931
#include "Common/DataModel/PIDResponseTOF.h"
3032
#include "Common/DataModel/TrackSelectionTables.h"
3133

@@ -118,7 +120,7 @@ struct LfTreeCreatorNuclei {
118120
(trackSelType.value == 2) ||
119121
(trackSelType.value == 3);
120122
Filter DCAcutFilter = (nabs(aod::track::dcaXY) < cfgCutDCAxy) && (nabs(aod::track::dcaZ) < cfgCutDCAz);
121-
using EventCandidates = soa::Join<aod::Collisions, aod::EvSels, aod::CentFT0Ms, aod::CentFV0As>;
123+
using EventCandidates = soa::Join<aod::Collisions, aod::EvSels, aod::Mults, aod::CentFT0Ms, aod::CentFV0As>;
122124
using TrackCandidates = soa::Join<aod::Tracks, aod::TracksExtra, aod::TracksDCA, aod::TrackSelection, aod::TrackSelectionExtension,
123125
aod::pidTOFbeta, aod::TOFSignal, aod::pidEvTimeFlags,
124126
aod::pidTPCLfFullPi, aod::pidTOFFullPi,
@@ -202,6 +204,7 @@ struct LfTreeCreatorNuclei {
202204
collision.posZ(),
203205
collision.centFV0A(),
204206
collision.centFT0M(),
207+
collision.multNTracksPVeta1(),
205208
collision.sel8(),
206209
collision.bc().runNumber());
207210

@@ -250,15 +253,15 @@ struct LfTreeCreatorNuclei {
250253
track.tpcSignal(),
251254
track.pt(), track.eta(), track.phi(),
252255
track.sign(),
253-
track.itsClusterSizes(),
254256
track.itsNCls(),
255257
track.tpcNClsFindable(),
256258
track.tpcNClsFindableMinusFound(),
257259
track.tpcNClsFindableMinusCrossedRows(),
258260
track.tpcChi2NCl(),
259261
track.itsChi2NCl(),
260262
track.itsClusterMap(),
261-
track.isPVContributor());
263+
track.isPVContributor(),
264+
track.itsClusterSizes());
262265

263266
tableCandidateExtra(
264267
track.tpcNSigmaPi(), track.tpcNSigmaKa(), track.tpcNSigmaPr(),

PWGLF/Tasks/Nuspex/LFNucleiBATask.cxx

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ struct LFNucleiBATask {
497497
hSkim->GetXaxis()->SetBinLabel(2, "Skimmed events");
498498

499499
if (enableCentrality) {
500-
histos.add<TH2>("event/eventSelection", "eventSelection", HistType::kTH2D, {{8, -0.5, 7.5}, {binsPercentile, "Centrality FT0M"}});
500+
histos.add<TH2>("event/eventSelection", "eventSelection", HistType::kTH2D, {{11, -0.5, 10.5}, {binsPercentile, "Centrality FT0M"}});
501501
auto h2d = histos.get<TH2>(HIST("event/eventSelection"));
502502
if (skimmingOptions.applySkimming)
503503
h2d->GetXaxis()->SetBinLabel(1, "Skimmed events");
@@ -511,8 +511,11 @@ struct LFNucleiBATask {
511511
h2d->GetXaxis()->SetBinLabel(6, "Sel8 cut");
512512
h2d->GetXaxis()->SetBinLabel(7, "Z-vert Cut");
513513
h2d->GetXaxis()->SetBinLabel(8, "Multiplicity cut");
514+
h2d->GetXaxis()->SetBinLabel(9, "INEL");
515+
h2d->GetXaxis()->SetBinLabel(10, "INEL > 0");
516+
h2d->GetXaxis()->SetBinLabel(11, "INEL > 1");
514517
} else {
515-
histos.add<TH1>("event/eventSelection", "eventSelection", HistType::kTH1D, {{8, -0.5, 7.5}});
518+
histos.add<TH1>("event/eventSelection", "eventSelection", HistType::kTH1D, {{11, -0.5, 10.5}});
516519
auto h1d = histos.get<TH1>(HIST("event/eventSelection"));
517520
if (skimmingOptions.applySkimming)
518521
h1d->GetXaxis()->SetBinLabel(1, "Skimmed events");
@@ -526,6 +529,9 @@ struct LFNucleiBATask {
526529
h1d->GetXaxis()->SetBinLabel(6, "Sel8 cut");
527530
h1d->GetXaxis()->SetBinLabel(7, "Z-vert Cut");
528531
h1d->GetXaxis()->SetBinLabel(8, "Multiplicity cut");
532+
h1d->GetXaxis()->SetBinLabel(9, "INEL");
533+
h1d->GetXaxis()->SetBinLabel(10, "INEL > 0");
534+
h1d->GetXaxis()->SetBinLabel(11, "INEL > 1");
529535
}
530536

531537
if (enableCentrality)
@@ -2405,10 +2411,26 @@ struct LFNucleiBATask {
24052411
if (enableCentrality && (centFT0M <= cfgMultCutLow || centFT0M > cfgMultCutHigh)) {
24062412
return;
24072413
}
2408-
if (enableCentrality)
2414+
if (enableCentrality) {
24092415
histos.fill(HIST("event/eventSelection"), 7, centFT0M);
2410-
else
2416+
histos.fill(HIST("event/eventSelection"), 8, centFT0M);
2417+
} else {
24112418
histos.fill(HIST("event/eventSelection"), 7);
2419+
histos.fill(HIST("event/eventSelection"), 8);
2420+
}
2421+
2422+
if (event.isInelGt0()) {
2423+
if (enableCentrality)
2424+
histos.fill(HIST("event/eventSelection"), 9, centFT0M);
2425+
else
2426+
histos.fill(HIST("event/eventSelection"), 9);
2427+
}
2428+
if (event.isInelGt1()) {
2429+
if (enableCentrality)
2430+
histos.fill(HIST("event/eventSelection"), 10, centFT0M);
2431+
else
2432+
histos.fill(HIST("event/eventSelection"), 10);
2433+
}
24122434

24132435
float gamma = 0., massTOF = 0., massTOFhe = 0., massTOFantihe = 0., heTPCmomentum = 0.f, antiheTPCmomentum = 0.f, heP = 0.f, antiheP = 0.f, hePt = 0.f, antihePt = 0.f, antiDPt = 0.f, DPt = 0.f;
24142436
bool isTritonTPCpid = false;
@@ -6090,7 +6112,7 @@ struct LFNucleiBATask {
60906112
}
60916113
}
60926114

6093-
using EventCandidates = soa::Join<aod::Collisions, aod::EvSels, aod::CentFT0Ms, aod::CentFV0As, aod::CentFT0Cs>;
6115+
using EventCandidates = soa::Join<aod::Collisions, aod::EvSels, aod::Mults, aod::CentFT0Ms, aod::CentFV0As, aod::CentFT0Cs>;
60946116
using EventCandidatesMC = soa::Join<EventCandidates, aod::McCollisionLabels>;
60956117

60966118
using TrackCandidates0 = soa::Join<aod::Tracks, aod::TracksIU, aod::TracksExtra, aod::TracksDCA, aod::TrackSelection, aod::TrackSelectionExtension,

0 commit comments

Comments
 (0)