Skip to content

Commit 4e230c1

Browse files
authored
Fix singular/plural usage in variable naming
1 parent abbaf76 commit 4e230c1

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

PWGHF/HFC/TableProducer/correlatorHfeHadrons.cxx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ struct HfCorrelatorHfeHadrons {
176176

177177
// Electron-hadron Correlation
178178
template <typename TracksType, typename ElectronType, typename CollisionType, typename BcType>
179-
void fillCorrelation(CollisionType const& collision, ElectronType const& electron, TracksType const& tracks, BcType const&)
179+
void fillCorrelation(CollisionType const& collision, ElectronType const& electrons, TracksType const& tracks, BcType const&)
180180
{
181181
if (!(isRun3 ? collision.sel8() : (collision.sel7() && collision.alias_bit(kINT7)))) {
182182
return;
@@ -213,7 +213,7 @@ struct HfCorrelatorHfeHadrons {
213213
double phiElectron = -999;
214214
double etaElectron = -999;
215215

216-
for (const auto& eTrack : electron) {
216+
for (const auto& eTrack : electrons) {
217217
ptElectron = eTrack.ptTrack();
218218
phiElectron = eTrack.phiTrack();
219219
etaElectron = eTrack.etaTrack();
@@ -389,9 +389,9 @@ struct HfCorrelatorHfeHadrons {
389389
void processData(TableCollision const& collision,
390390
aod::HfCorrSelEl const& electrons,
391391
TableTracks const& tracks,
392-
aod::BCsWithTimestamps const& bc)
392+
aod::BCsWithTimestamps const& bcs)
393393
{
394-
fillCorrelation(collision, electrons, tracks, bc);
394+
fillCorrelation(collision, electrons, tracks, bcs);
395395
}
396396

397397
PROCESS_SWITCH(HfCorrelatorHfeHadrons, processData, "Process for Data", true);
@@ -401,14 +401,14 @@ struct HfCorrelatorHfeHadrons {
401401
void processMcRec(McTableCollision const& mcCollision,
402402
aod::HfCorrSelEl const& mcElectrons,
403403
McTableTracks const& mcTracks,
404-
aod::BCsWithTimestamps const& bc)
404+
aod::BCsWithTimestamps const& bcs)
405405
{
406-
fillCorrelation(mcCollision, mcElectrons, mcTracks, bc);
406+
fillCorrelation(mcCollision, mcElectrons, mcTracks, bcs);
407407
}
408408

409409
PROCESS_SWITCH(HfCorrelatorHfeHadrons, processMcRec, "Process MC Reco mode", false);
410410

411-
void processMcGen(McGenTableCollision const& mcCollision, aod::McParticles const& mcParticles, aod::HfMcGenSelEl const& electron)
411+
void processMcGen(McGenTableCollision const& mcCollision, aod::McParticles const& mcParticles, aod::HfMcGenSelEl const& electrons)
412412
{
413413

414414
BinningTypeMcGen const corrBinningMcGen{{zBins, multBinsMcGen}, true};
@@ -433,7 +433,7 @@ struct HfCorrelatorHfeHadrons {
433433
double phiElectron = 0;
434434
double etaElectron = 0;
435435

436-
for (const auto& electronMc : electron) {
436+
for (const auto& electronMc : electrons) {
437437
double ptHadron = 0;
438438
double phiHadron = 0;
439439
double etaHadron = 0;

0 commit comments

Comments
 (0)