Skip to content

Commit c2c6cd0

Browse files
author
nkaratze
committed
Linter Corrections
1 parent 26359a5 commit c2c6cd0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

PWGLF/Tasks/Strangeness/v0ptinvmassplots.cxx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ struct V0PtInvMassPlots {
283283

284284
// Event selection
285285
template <typename TCollision>
286-
bool AcceptEvent(TCollision const& collision)
286+
bool acceptEvent(TCollision const& collision)
287287
{
288288
rMCCorrections.fill(HIST("hNEvents"), 0.5);
289289
if (!(collision.sel8() && dosel8)) {
@@ -361,12 +361,12 @@ struct V0PtInvMassPlots {
361361

362362
for (const auto& collision : collisions) {
363363
rMCCorrections.fill(HIST("hNEvents_Corrections"), 1.5); // Number of Events Reconsctructed
364-
if (!AcceptEvent(collision)) { // Event Selection
364+
if (!acceptEvent(collision)) { // Event Selection
365365
return;
366366
}
367367
rMCCorrections.fill(HIST("hNEvents_Corrections"), 2.5); // Event Split Denomimator and Event Efficiency Numenator
368368
// Signal Loss Numenator Loop
369-
for (auto& mcParticle : mcParticles) {
369+
for (const auto& mcParticle : mcParticles) {
370370
if (!mcParticle.isPhysicalPrimary()) {
371371
continue;
372372
}
@@ -463,13 +463,13 @@ struct V0PtInvMassPlots {
463463
lambdaptedgevalues[i] = std::stod(pthistos::lambdaPtBins[i]);
464464
antilambdaPtedgevalues[i] = std::stod(pthistos::antilambdaPtBins[i]);
465465
}
466-
if (!AcceptEvent(collision)) { // Event Selection
466+
if (!acceptEvent(collision)) { // Event Selection
467467
return;
468468
}
469469
rMCCorrections.fill(HIST("hNRecEvents_MC"), 1.0); // Event Split Numenator
470470

471471
// v0 Signal Splitting Numenator Start
472-
for (auto& mcParticle : mcParticles) {
472+
for (const auto& mcParticle : mcParticles) {
473473
if (mcParticle.isPhysicalPrimary()) {
474474
if (std::abs(mcParticle.y()) < rapidityCut) {
475475
if (mcParticle.pdgCode() == kK0Short) { // kzero matched
@@ -675,7 +675,7 @@ struct V0PtInvMassPlots {
675675
lambdaptedgevalues[i] = std::stod(pthistos::lambdaPtBins[i]);
676676
antilambdaPtedgevalues[i] = std::stod(pthistos::antilambdaPtBins[i]);
677677
}
678-
if (!AcceptEvent(collision)) { // Event Selection
678+
if (!acceptEvent(collision)) { // Event Selection
679679
return;
680680
}
681681
rPtAnalysis.fill(HIST("hNRecEvents_Data"), 1.0); // Number of Reconstructed Events

0 commit comments

Comments
 (0)