Skip to content

Commit 7257148

Browse files
fix Megalinter error
1 parent ca575fd commit 7257148

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

PWGHF/HFC/TableProducer/producerCharmHadronsTrackFemtoDream.cxx

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
1111

12-
/// \file femtoDreamProducer.cxx
12+
/// \file producerCharmHadronsTrackFemtoDream.cxx
1313
/// \brief Tasks that produces the track tables used for the pairing
1414
/// \author Ravindra Singh, GSI, ravindra.singh@cern.ch
1515
/// \author Biao Zhang, Heidelberg University, biao.zhang@cern.ch
@@ -98,6 +98,12 @@ enum DecayChannel { DplusToPiKPi = 0,
9898
DstarToD0Pi
9999
};
100100

101+
enum class D0CandFlag : uint8_t {
102+
D0 = 0,
103+
D0Bar = 1,
104+
Reflected = 2
105+
};
106+
101107
struct HfProducerCharmHadronsTrackFemtoDream {
102108

103109
Produces<aod::FDCollisions> outputCollision;
@@ -586,15 +592,14 @@ struct HfProducerCharmHadronsTrackFemtoDream {
586592
bdtScoreFd);
587593

588594
} else if constexpr (Channel == DecayChannel::D0ToPiK) {
589-
int signD0 = -999;
590-
if (candFlag == 0) {
591-
signD0 = +1; // D0
592-
} else if (candFlag == 1) {
593-
signD0 = -1; // anti-D0
594-
} else if (candFlag == 2) {
595-
signD0 = 0; // reflected D0
595+
if (candFlag == D0CandFlag::D0) {
596+
signD0 = +1;
597+
} else if (candFlag == D0CandFlag::D0Bar) {
598+
signD0 = -1;
599+
} else if (candFlag == D0CandFlag::Reflected) {
600+
signD0 = 0;
596601
} else {
597-
LOG(error) << "Unexpected candFlag = " << candFlag;
602+
LOG(error) << "Unexpected candFlag = " << static_cast<int>(candFlag);
598603
}
599604
rowCandCharm2Prong(
600605
outputCollision.lastIndex(),

0 commit comments

Comments
 (0)