|
9 | 9 | // granted to it by virtue of its status as an Intergovernmental Organization |
10 | 10 | // or submit itself to any jurisdiction. |
11 | 11 |
|
12 | | -/// \file femtoDreamProducer.cxx |
| 12 | +/// \file producerCharmHadronsTrackFemtoDream.cxx |
13 | 13 | /// \brief Tasks that produces the track tables used for the pairing |
14 | 14 | /// \author Ravindra Singh, GSI, ravindra.singh@cern.ch |
15 | 15 | /// \author Biao Zhang, Heidelberg University, biao.zhang@cern.ch |
@@ -98,6 +98,12 @@ enum DecayChannel { DplusToPiKPi = 0, |
98 | 98 | DstarToD0Pi |
99 | 99 | }; |
100 | 100 |
|
| 101 | +enum class D0CandFlag : uint8_t { |
| 102 | + D0 = 0, |
| 103 | + D0Bar = 1, |
| 104 | + Reflected = 2 |
| 105 | +}; |
| 106 | + |
101 | 107 | struct HfProducerCharmHadronsTrackFemtoDream { |
102 | 108 |
|
103 | 109 | Produces<aod::FDCollisions> outputCollision; |
@@ -586,15 +592,14 @@ struct HfProducerCharmHadronsTrackFemtoDream { |
586 | 592 | bdtScoreFd); |
587 | 593 |
|
588 | 594 | } 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; |
596 | 601 | } else { |
597 | | - LOG(error) << "Unexpected candFlag = " << candFlag; |
| 602 | + LOG(error) << "Unexpected candFlag = " << static_cast<int>(candFlag); |
598 | 603 | } |
599 | 604 | rowCandCharm2Prong( |
600 | 605 | outputCollision.lastIndex(), |
|
0 commit comments