File tree Expand file tree Collapse file tree 1 file changed +13
-8
lines changed
Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,12 @@ enum V0Channel {
104104 Lambda
105105};
106106
107+ enum class D0CandFlag : uint8_t {
108+ D0 = 0 ,
109+ D0Bar = 1 ,
110+ Reflected = 2
111+ };
112+
107113struct HfProducerCharmHadronsV0FemtoDream {
108114
109115 Produces<aod::FDCollisions> outputCollision;
@@ -771,15 +777,14 @@ struct HfProducerCharmHadronsV0FemtoDream {
771777 bdtScoreFd);
772778
773779 } else if constexpr (Channel == DecayChannel::D0ToPiK) {
774- int signD0 = -999 ;
775- if (candFlag == 0 ) {
776- signD0 = +1 ; // D0
777- } else if (candFlag == 1 ) {
778- signD0 = -1 ; // anti-D0
779- } else if (candFlag == 2 ) {
780- signD0 = 0 ; // reflected D0
780+ if (candFlag == D0CandFlag::D0) {
781+ signD0 = +1 ;
782+ } else if (candFlag == D0CandFlag::D0Bar) {
783+ signD0 = -1 ;
784+ } else if (candFlag == D0CandFlag::Reflected) {
785+ signD0 = 0 ;
781786 } else {
782- LOG (error) << " Unexpected candFlag = " << candFlag;
787+ LOG (error) << " Unexpected candFlag = " << static_cast < int >( candFlag) ;
783788 }
784789 rowCandCharm2Prong (
785790 outputCollision.lastIndex (),
You can’t perform that action at this time.
0 commit comments