Skip to content

Commit 5b32e44

Browse files
committed
Feat: fix naming
1 parent 89c75df commit 5b32e44

1 file changed

Lines changed: 19 additions & 19 deletions

File tree

‎PWGCF/Femto/Core/dndetaBuilder.h‎

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
/// so the same builder is used by all dN/deta tasks independent of the trigger type.
1919
///
2020
/// Tracks are selected with the femto track bitmask via two partitions:
21-
/// - global tracks (with TPC): ITS + TPC quality bits (trackbuilder::ConfTrackSelectionDndetaWithTpc)
22-
/// - ITS-only tracks (no TPC): ITS quality bits only (trackbuilder::ConfTrackSelectionDndetaWithoutTpc)
21+
/// - global tracks (with TPC): ITS + TPC quality bits (trackbuilder::ConfTrackSelectionDndetaGlobal)
22+
/// - ITS-only tracks (no TPC): ITS quality bits only (trackbuilder::ConfTrackSelectionDndetaItsOnly)
2323
/// The QA of the selected tracks is done with one track histogram manager per track class.
2424
/// This reproduces the global track selection, where the TPC cuts are only applied if the track has TPC.
2525
/// A track is taken from the first partition only if it has TPC and from the second only if it has no TPC,
@@ -175,7 +175,7 @@ class DndetaBuilder
175175

176176
/// \return true if the collision was selected (including the trigger)
177177
template <typename T1, typename T2, typename T3, typename T4, typename T5>
178-
bool processData(T1 const& col, T2& partitionWithTpc, T3& partitionWithoutTpc, T4& cache, T5 const& trigger)
178+
bool processData(T1 const& col, T2& partitionGlobal, T3& partitionItsOnly, T4& cache, T5 const& trigger)
179179
{
180180
if (!selectCollision(col, trigger)) {
181181
return false;
@@ -184,24 +184,24 @@ class DndetaBuilder
184184
const float cent = col.cent();
185185
mHistManager.fillEvent(posZ, cent);
186186

187-
auto tracksWithTpc = partitionWithTpc->sliceByCached(o2::aod::femtobase::stored::fColId, col.globalIndex(), cache);
188-
auto tracksWithoutTpc = partitionWithoutTpc->sliceByCached(o2::aod::femtobase::stored::fColId, col.globalIndex(), cache);
187+
auto tracksGlobal = partitionGlobal->sliceByCached(o2::aod::femtobase::stored::fColId, col.globalIndex(), cache);
188+
auto tracksItsOnly = partitionItsOnly->sliceByCached(o2::aod::femtobase::stored::fColId, col.globalIndex(), cache);
189189

190190
int nch = 0;
191-
for (auto const& track : tracksWithTpc) {
191+
for (auto const& track : tracksGlobal) {
192192
if (!isTrackAccepted(track, true)) {
193193
continue;
194194
}
195195
nch++;
196-
mTrackHistManagerGlobal.template fill<modes::Mode::kReco_Qa>(track, tracksWithTpc);
196+
mTrackHistManagerGlobal.template fill<modes::Mode::kReco_Qa>(track, tracksGlobal);
197197
mHistManager.fillDataTrack(posZ, cent, track.eta(), track.phi(), true);
198198
}
199-
for (auto const& track : tracksWithoutTpc) {
199+
for (auto const& track : tracksItsOnly) {
200200
if (!isTrackAccepted(track, false)) {
201201
continue;
202202
}
203203
nch++;
204-
mTrackHistManagerItsOnly.template fill<modes::Mode::kReco_Qa>(track, tracksWithoutTpc);
204+
mTrackHistManagerItsOnly.template fill<modes::Mode::kReco_Qa>(track, tracksItsOnly);
205205
mHistManager.fillDataTrack(posZ, cent, track.eta(), track.phi(), false);
206206
}
207207
if (mDoCorrelation) {
@@ -236,8 +236,8 @@ class DndetaBuilder
236236
template <typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8, typename T9, typename T10, typename T11>
237237
void processMc(T1 const& cols,
238238
T2 const& mcCols,
239-
T3& partitionWithTpc,
240-
T4& partitionWithoutTpc,
239+
T3& partitionGlobal,
240+
T4& partitionItsOnly,
241241
T5& cache,
242242
T6 const& mcParticles,
243243
T7 const& mcMothers,
@@ -275,9 +275,9 @@ class DndetaBuilder
275275
}
276276
selectedReco[static_cast<std::size_t>(col.fMcColId())] = col.globalIndex();
277277
if (mDoMcEfficiency) {
278-
auto tracksWithTpc = partitionWithTpc->sliceByCached(o2::aod::femtobase::stored::fColId, col.globalIndex(), cache);
279-
auto tracksWithoutTpc = partitionWithoutTpc->sliceByCached(o2::aod::femtobase::stored::fColId, col.globalIndex(), cache);
280-
fillRecoMc(col, tracksWithTpc, tracksWithoutTpc, mcParticles, mcMothers);
278+
auto tracksGlobal = partitionGlobal->sliceByCached(o2::aod::femtobase::stored::fColId, col.globalIndex(), cache);
279+
auto tracksItsOnly = partitionItsOnly->sliceByCached(o2::aod::femtobase::stored::fColId, col.globalIndex(), cache);
280+
fillRecoMc(col, tracksGlobal, tracksItsOnly, mcParticles, mcMothers);
281281
}
282282
}
283283

@@ -503,20 +503,20 @@ class DndetaBuilder
503503
}
504504

505505
template <typename T1, typename T2, typename T3, typename T4, typename T5>
506-
void fillRecoMc(T1 const& col, T2 const& tracksWithTpc, T3 const& tracksWithoutTpc, T4 const& mcParticles, T5 const& mcMothers)
506+
void fillRecoMc(T1 const& col, T2 const& tracksGlobal, T3 const& tracksItsOnly, T4 const& mcParticles, T5 const& mcMothers)
507507
{
508508
mHistManager.fillRecoCollision(col.posZ(), col.cent());
509509
// labels are tracked over both partitions, so a fake is also found if the other track comes from the other partition
510510
std::vector<int64_t> usedLabels;
511-
for (auto const& track : tracksWithTpc) {
511+
for (auto const& track : tracksGlobal) {
512512
if (isTrackAccepted(track, true)) {
513-
mTrackHistManagerGlobal.template fill<modes::Mode::kReco_Qa>(track, tracksWithTpc);
513+
mTrackHistManagerGlobal.template fill<modes::Mode::kReco_Qa>(track, tracksGlobal);
514514
fillRecoMcTrack(col, track, mcParticles, mcMothers, usedLabels);
515515
}
516516
}
517-
for (auto const& track : tracksWithoutTpc) {
517+
for (auto const& track : tracksItsOnly) {
518518
if (isTrackAccepted(track, false)) {
519-
mTrackHistManagerItsOnly.template fill<modes::Mode::kReco_Qa>(track, tracksWithoutTpc);
519+
mTrackHistManagerItsOnly.template fill<modes::Mode::kReco_Qa>(track, tracksItsOnly);
520520
fillRecoMcTrack(col, track, mcParticles, mcMothers, usedLabels);
521521
}
522522
}

0 commit comments

Comments
 (0)