Skip to content

Commit e592b06

Browse files
committed
More Linter corrections
1 parent 0d3f0cc commit e592b06

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

PWGUD/DataModel/TauThreeProngEventTables.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
/// \brief A table to store information about events preselected to be candidates for UPC gammagamma->tautau in 1+3 ot 3+3 topology
1717
///
1818

19-
#ifndef PWGUD_DATAMODEL_TAUTHREEPRONGEVENTTABLES_H
20-
#define PWGUD_DATAMODEL_TAUTHREEPRONGEVENTTABLES_H
19+
#ifndef PWGUD_DATAMODEL_TAUTHREEPRONGEVENTTABLES_H_
20+
#define PWGUD_DATAMODEL_TAUTHREEPRONGEVENTTABLES_H_
2121

2222
#include "Framework/AnalysisDataModel.h"
2323
// derived tables for tautau->4 (=1+3) tracks
@@ -154,4 +154,4 @@ DECLARE_SOA_TABLE(TrueTauFourTracks, "AOD", "TRUETAU",
154154

155155
} // namespace o2::aod
156156

157-
#endif // PWGUD_DATAMODEL_TAUTHREEPRONGEVENTTABLES_H
157+
#endif // PWGUD_DATAMODEL_TAUTHREEPRONGEVENTTABLES_H_

PWGUD/TableProducer/tauThreeProngEventTableProducer.cxx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,6 +1016,8 @@ struct TauThreeProngEventTableProducer {
10161016

10171017
const int fourTracks = 4;
10181018
const int sixTracks = 6;
1019+
const int oneProng = 1;
1020+
const int threeProng = 3;
10191021

10201022
if (verbose)
10211023
LOGF(info, "0. <MC> UDMcCollision size %d, Collisions size %d, UDtracks %d, UDMcParticles %d", mcCollisions.size(), collisions.size(), tracks.size(), mcParticles.size());
@@ -1168,11 +1170,11 @@ struct TauThreeProngEventTableProducer {
11681170
registrySkim.get<TH1>(HIST("skim/efficiencyMC"))->Fill(8., 1.);
11691171
}
11701172

1171-
if (nChargedDaughtersTau[0] == 1)
1173+
if (nChargedDaughtersTau[0] == oneProng) // 1
11721174
zerothTau = 0;
1173-
else if (nChargedDaughtersTau[1] == 1)
1175+
else if (nChargedDaughtersTau[1] == oneProng) // 1
11741176
zerothTau = 1;
1175-
else if (nChargedDaughtersTau[0] == 3 && nChargedDaughtersTau[1] == 3)
1177+
else if (nChargedDaughtersTau[0] == threeProng && nChargedDaughtersTau[1] == threeProng) // 3 and 3
11761178
zerothTau = 0;
11771179

11781180
// prepare local variables for output table
@@ -1244,13 +1246,13 @@ struct TauThreeProngEventTableProducer {
12441246
// 3 = pi+3pi
12451247
// 4 = 3pi+3pi
12461248

1247-
if (nElec == 1 && nPi == 3)
1249+
if (nElec == oneProng && nPi == threeProng) // 1 + 3
12481250
trueChannel = 1;
1249-
else if (nMuon == 1 && nPi == 3)
1251+
else if (nMuon == oneProng && nPi == threeProng) // 1 + 3
12501252
trueChannel = 2;
1251-
else if (nPi == 4)
1253+
else if (nPi == fourTracks) // 4
12521254
trueChannel = 3;
1253-
else if (nPi == 6)
1255+
else if (nPi == sixTracks) // 6
12541256
trueChannel = 4;
12551257

12561258
// find reconstructed collisions associated to the generated collision

0 commit comments

Comments
 (0)