6262#include < cmath>
6363#include < cstddef>
6464#include < cstdint>
65+ #include < limits>
6566#include < string>
6667#include < utility>
6768#include < vector>
@@ -640,68 +641,73 @@ struct TrackedHypertritonRecoTask {
640641 void fillThreeBodyTables ()
641642 {
642643 const auto & candidate = builder3Body.decay3body ;
643- vtx3BodyDatas (candidate.sign ,
644+ vtx3BodyDatas (static_cast < float >( candidate.sign ) ,
644645 candidate.mass , candidate.massV0 ,
645646 candidate.position [0 ], candidate.position [1 ], candidate.position [2 ],
646647 candidate.momentum [0 ], candidate.momentum [1 ], candidate.momentum [2 ],
647648 candidate.chi2 , candidate.trackedClSize ,
648649 candidate.momProton [0 ], candidate.momProton [1 ], candidate.momProton [2 ],
649650 candidate.momPion [0 ], candidate.momPion [1 ], candidate.momPion [2 ],
650651 candidate.momDeuteron [0 ], candidate.momDeuteron [1 ], candidate.momDeuteron [2 ],
652+ candidate.xProton , candidate.xPion , candidate.xDeuteron ,
651653 candidate.trackDCAxyToPV [0 ], candidate.trackDCAxyToPV [1 ], candidate.trackDCAxyToPV [2 ],
652654 candidate.trackDCAToPV [0 ], candidate.trackDCAToPV [1 ], candidate.trackDCAToPV [2 ],
653655 candidate.trackDCAxyToPVprop [0 ], candidate.trackDCAxyToPVprop [1 ], candidate.trackDCAxyToPVprop [2 ],
654656 candidate.trackDCAToPVprop [0 ], candidate.trackDCAToPVprop [1 ], candidate.trackDCAToPVprop [2 ],
655657 candidate.daughterDCAtoSV [0 ], candidate.daughterDCAtoSV [1 ], candidate.daughterDCAtoSV [2 ],
656658 candidate.daughterDCAtoSVaverage , candidate.cosPA , candidate.ctau ,
657659 candidate.tpcNsigma [0 ], candidate.tpcNsigma [1 ], candidate.tpcNsigma [2 ], candidate.tpcNsigma [3 ],
658- candidate.tofNsigmaDeuteron ,
660+ static_cast < float >( candidate.tofNsigmaDeuteron ) ,
659661 candidate.averageITSClSize [0 ], candidate.averageITSClSize [1 ], candidate.averageITSClSize [2 ],
660- candidate.tpcNCl [0 ], candidate.tpcNCl [1 ], candidate.tpcNCl [2 ], candidate.pidForTrackingDeuteron );
662+ static_cast <int >(candidate.tpcNCl [0 ]), static_cast <int >(candidate.tpcNCl [1 ]), static_cast <int >(candidate.tpcNCl [2 ]),
663+ static_cast <uint32_t >(candidate.pidForTrackingDeuteron ));
661664 vtx3BodyCovs (candidate.covProton , candidate.covPion , candidate.covDeuteron , candidate.covariance );
662665 }
663666
664667 void fillThreeBodyMCTable (ThreeBodyMCInfo const & info)
665668 {
666669 const auto & candidate = builder3Body.decay3body ;
667- mcVtx3BodyDatas (candidate.sign ,
670+ mcVtx3BodyDatas (static_cast < float >( candidate.sign ) ,
668671 candidate.mass , candidate.massV0 ,
669672 candidate.position [0 ], candidate.position [1 ], candidate.position [2 ],
670673 candidate.momentum [0 ], candidate.momentum [1 ], candidate.momentum [2 ],
671674 candidate.chi2 , candidate.trackedClSize ,
672675 candidate.momProton [0 ], candidate.momProton [1 ], candidate.momProton [2 ],
673676 candidate.momPion [0 ], candidate.momPion [1 ], candidate.momPion [2 ],
674677 candidate.momDeuteron [0 ], candidate.momDeuteron [1 ], candidate.momDeuteron [2 ],
678+ candidate.xProton , candidate.xPion , candidate.xDeuteron ,
675679 candidate.trackDCAxyToPV [0 ], candidate.trackDCAxyToPV [1 ], candidate.trackDCAxyToPV [2 ],
676680 candidate.trackDCAToPV [0 ], candidate.trackDCAToPV [1 ], candidate.trackDCAToPV [2 ],
677681 candidate.trackDCAxyToPVprop [0 ], candidate.trackDCAxyToPVprop [1 ], candidate.trackDCAxyToPVprop [2 ],
678682 candidate.trackDCAToPVprop [0 ], candidate.trackDCAToPVprop [1 ], candidate.trackDCAToPVprop [2 ],
679683 candidate.daughterDCAtoSV [0 ], candidate.daughterDCAtoSV [1 ], candidate.daughterDCAtoSV [2 ],
680684 candidate.daughterDCAtoSVaverage , candidate.cosPA , candidate.ctau ,
681685 candidate.tpcNsigma [0 ], candidate.tpcNsigma [1 ], candidate.tpcNsigma [2 ], candidate.tpcNsigma [3 ],
682- candidate.tofNsigmaDeuteron ,
686+ static_cast < float >( candidate.tofNsigmaDeuteron ) ,
683687 candidate.averageITSClSize [0 ], candidate.averageITSClSize [1 ], candidate.averageITSClSize [2 ],
684- candidate.tpcNCl [0 ], candidate.tpcNCl [1 ], candidate.tpcNCl [2 ], candidate.pidForTrackingDeuteron ,
688+ static_cast <int >(candidate.tpcNCl [0 ]), static_cast <int >(candidate.tpcNCl [1 ]), static_cast <int >(candidate.tpcNCl [2 ]),
689+ static_cast <uint32_t >(candidate.pidForTrackingDeuteron ),
685690 info.genMomentum [0 ], info.genMomentum [1 ], info.genMomentum [2 ],
686691 info.genDecayVertex [0 ], info.genDecayVertex [1 ], info.genDecayVertex [2 ],
687692 info.genCt , info.genPhi , info.genEta , info.genRapidity ,
688693 info.genMomentumProton , info.genMomentumPion , info.genMomentumDeuteron ,
689694 info.genPtProton , info.genPtPion , info.genPtDeuteron ,
690- info.isReco , info.motherLabel , info.motherPdgCode ,
695+ static_cast < int >( info.isReco ) , info.motherLabel , info.motherPdgCode ,
691696 info.protonPdgCode , info.pionPdgCode , info.deuteronPdgCode ,
692- info.isDeuteronPrimary , info.survivedEventSelection );
697+ info.isDeuteronPrimary , static_cast < int >( info.survivedEventSelection ) );
693698 }
694699
695700 void fillGeneratedThreeBodyMCTable (ThreeBodyMCInfo const & info)
696701 {
697- mcVtx3BodyDatas (-1 ,
702+ mcVtx3BodyDatas (-1 . f ,
698703 -1 .f , -1 .f , // mass, massV0
699704 -1 .f , -1 .f , -1 .f , // position
700705 -1 .f , -1 .f , -1 .f , // momentum
701706 -1 .f , -1 .f , // chi2, trackedClSize
702707 -1 .f , -1 .f , -1 .f , // proton momentum
703708 -1 .f , -1 .f , -1 .f , // pion momentum
704709 -1 .f , -1 .f , -1 .f , // deuteron momentum
710+ -1 .f , -1 .f , -1 .f , // daughter x at inner update
705711 -1 .f , -1 .f , -1 .f , // track DCAxy to PV
706712 -1 .f , -1 .f , -1 .f , // track DCA to PV
707713 -1 .f , -1 .f , -1 .f , // propagated track DCAxy to PV
@@ -711,15 +717,15 @@ struct TrackedHypertritonRecoTask {
711717 -1 .f , -1 .f , -1 .f , -1 .f ,
712718 -1 .f ,
713719 -1 .f , -1 .f , -1 .f ,
714- -1 , -1 , -1 , - 1 ,
720+ -1 , -1 , -1 , std::numeric_limits< uint32_t >:: max () ,
715721 info.genMomentum [0 ], info.genMomentum [1 ], info.genMomentum [2 ],
716722 info.genDecayVertex [0 ], info.genDecayVertex [1 ], info.genDecayVertex [2 ],
717723 info.genCt , info.genPhi , info.genEta , info.genRapidity ,
718724 info.genMomentumProton , info.genMomentumPion , info.genMomentumDeuteron ,
719725 info.genPtProton , info.genPtPion , info.genPtDeuteron ,
720- false , info.motherLabel , info.motherPdgCode ,
726+ 0 , info.motherLabel , info.motherPdgCode ,
721727 info.protonPdgCode , info.pionPdgCode , info.deuteronPdgCode ,
722- info.isDeuteronPrimary , info.survivedEventSelection );
728+ info.isDeuteronPrimary , static_cast < int >( info.survivedEventSelection ) );
723729 }
724730
725731 void processData (Collisions const & collisions,
0 commit comments