Skip to content

Commit ecad288

Browse files
authored
fix multiple declaration
1 parent cba6dbc commit ecad288

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

PWGLF/TableProducer/Nuspex/ebyeMaker.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ enum PartTypes {
158158
kPhysPrim = BIT(22)
159159
};
160160

161-
enum TrackCharge {
161+
enum TracksCharge {
162162
kAll = 0,
163163
kNegative = 1,
164164
kPositive = 2
@@ -577,7 +577,7 @@ struct EbyeMaker {
577577
continue;
578578
}
579579
histos.fill(HIST("QA/tpcSignal"), track.tpcInnerParam(), track.tpcSignal());
580-
if (trackPt > ptMin[0] && trackPt < ptMax[0] && ((track.sign() < 0 && countOnlyLSTrk == TrackCharge::kNegative) || (track.sign() > 0 && countOnlyLSTrk == TrackCharge::kPositive) || (countOnlyLSTrk == TrackCharge::kAll)))
580+
if (trackPt > ptMin[0] && trackPt < ptMax[0] && ((track.sign() < 0 && countOnlyLSTrk == TracksCharge::kNegative) || (track.sign() > 0 && countOnlyLSTrk == TracksCharge::kPositive) || (countOnlyLSTrk == TracksCharge::kAll)))
581581
nTracksColl++;
582582

583583
for (int iP{0}; iP < kNpart; ++iP) {
@@ -862,7 +862,7 @@ struct EbyeMaker {
862862
auto genPt = std::hypot(mcPart.px(), mcPart.py());
863863
if ((std::abs(pdgCode) == PDG_t::kPiPlus || std::abs(pdgCode) == PDG_t::kElectron || std::abs(pdgCode) == PDG_t::kMuonMinus || std::abs(pdgCode) == PDG_t::kKPlus || std::abs(pdgCode) == PDG_t::kProton) && mcPart.isPhysicalPrimary() && genPt > ptMin[0] && genPt < ptMax[0]) {
864864
int ch = (pdgCode == PDG_t::kPiPlus || pdgCode == -PDG_t::kElectron || pdgCode == -PDG_t::kMuonMinus || pdgCode == PDG_t::kKPlus || pdgCode == PDG_t::kProton) ? 1 : -1;
865-
if ((ch < 0 && countOnlyLSTrk == TrackCharge::kNegative) || (ch > 0 && countOnlyLSTrk == TrackCharge::kPositive) || (countOnlyLSTrk == TrackCharge::kAll))
865+
if ((ch < 0 && countOnlyLSTrk == TracksCharge::kNegative) || (ch > 0 && countOnlyLSTrk == TracksCharge::kPositive) || (countOnlyLSTrk == TracksCharge::kAll))
866866
nChPartGen++;
867867
}
868868
if (std::abs(pdgCode) == PDG_t::kLambda0) {

0 commit comments

Comments
 (0)