Skip to content

Commit 14ae72f

Browse files
committed
linter
1 parent 2c7c434 commit 14ae72f

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

‎PWGCF/GenericFramework/Tasks/energyFlowGfw.cxx‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,7 @@ struct EnergyFlowGfw {
563563
std::unique_ptr<TFile> input(TFile::Open(efficiencyPath.value.c_str(), "READ"));
564564
if (!input || input->IsZombie()) {
565565
LOGF(fatal, "Could not open efficiency file %s", efficiencyPath.value.c_str());
566+
return;
566567
}
567568
auto* source = dynamic_cast<THn*>(input->Get("ccdb_object"));
568569
if (!source || source->GetNdimensions() != 4) {
@@ -653,9 +654,9 @@ struct EnergyFlowGfw {
653654
return bestSpecies;
654655
}
655656

656-
double massForParticle(int particleId) const
657+
double massForParticle(int pid) const
657658
{
658-
switch (particleId) {
659+
switch (pid) {
659660
case Pion:
660661
return o2::constants::physics::MassPionCharged;
661662
case Kaon:
@@ -668,12 +669,12 @@ struct EnergyFlowGfw {
668669
}
669670

670671
template <typename TTrack>
671-
double transverseEnergy(TTrack const& track, int particleId) const
672+
double transverseEnergy(TTrack const& track, int pid) const
672673
{
673674
if (energy.weightMode.value == PtWeight) {
674675
return track.pt();
675676
}
676-
const double mass = massForParticle(particleId);
677+
const double mass = massForParticle(pid);
677678
if (energy.weightMode.value == MtWeight) {
678679
return std::hypot(track.pt(), mass);
679680
}

0 commit comments

Comments
 (0)