@@ -680,13 +680,13 @@ struct Hyperhelium4sigmaQa {
680680 // qa for mother tracks
681681 recoQAHist.fill (HIST (" hMotherCounter" ), 0 );
682682
683- double svPos[3 ] = {-999 , -999 , -999 };
684- double dauAlphaMom[3 ] = {-999 , -999 , -999 };
685- double dauTritonMom[3 ] = {-999 , -999 , -999 };
686- double dauProtonMom[3 ] = {-999 , -999 , -999 };
687- double dauNeuteronMom[3 ] = {-999 , -999 , -999 };
688- double dauChargedPionMom[3 ] = {-999 , -999 , -999 };
689- double dauPion0Mom[3 ] = {-999 , -999 , -999 };
683+ float svPos[3 ] = {-999 , -999 , -999 };
684+ float dauAlphaMom[3 ] = {-999 , -999 , -999 };
685+ float dauTritonMom[3 ] = {-999 , -999 , -999 };
686+ float dauProtonMom[3 ] = {-999 , -999 , -999 };
687+ float dauNeuteronMom[3 ] = {-999 , -999 , -999 };
688+ float dauChargedPionMom[3 ] = {-999 , -999 , -999 };
689+ float dauPion0Mom[3 ] = {-999 , -999 , -999 };
690690 for (const auto & mcparticleDaughter : mcparticle.daughters_as <aod::McParticles>()) {
691691 if (std::abs (mcparticleDaughter.pdgCode ()) == o2::constants::physics::Pdg::kAlpha ) {
692692 dauAlphaMom[0 ] = mcparticleDaughter.px ();
@@ -761,14 +761,14 @@ struct Hyperhelium4sigmaQa {
761761
762762 genQAHist.fill (HIST (" hGenHyperHelium4SigmaP" ), mcparticle.p ());
763763 genQAHist.fill (HIST (" hGenHyperHelium4SigmaPt" ), mcparticle.pt ());
764- double ct = RecoDecay::sqrtSumOfSquares (svPos[0 ] - mcparticle.vx (), svPos[1 ] - mcparticle.vy (), svPos[2 ] - mcparticle.vz ()) * o2::constants::physics::MassHyperHelium4Sigma / mcparticle.p ();
764+ float ct = RecoDecay::sqrtSumOfSquares (svPos[0 ] - mcparticle.vx (), svPos[1 ] - mcparticle.vy (), svPos[2 ] - mcparticle.vz ()) * o2::constants::physics::MassHyperHelium4Sigma / mcparticle.p ();
765765 genQAHist.fill (HIST (" hGenHyperHelium4SigmaCt" ), ct);
766766
767767 // qa if mother track is reconstructed
768768 if (mcPartIndices[mcparticle.globalIndex ()] != -1 ) {
769769 auto motherTrack = tracks.rawIteratorAt (mcPartIndices[mcparticle.globalIndex ()]);
770770 bool isGoodMother = motherTrackCheck (motherTrack, hMotherCounter);
771- double svR = RecoDecay::sqrtSumOfSquares (svPos[0 ], svPos[1 ]);
771+ float svR = RecoDecay::sqrtSumOfSquares (svPos[0 ], svPos[1 ]);
772772 recoQAHist.fill (HIST (" hTrueMotherRVsDiffPt" ), mcparticle.pt () - 2 * motherTrack.pt (), svR);
773773 recoQAHist.fill (HIST (" hTrueMotherRVsDiffPz" ), mcparticle.pz () - 2 * motherTrack.pz (), svR);
774774 if (isGoodMother) {
@@ -785,15 +785,15 @@ struct Hyperhelium4sigmaQa {
785785 // qa for branching ratios and invariant mass
786786 if (dChannel == k2body) {
787787 genQAHist.fill (HIST (" hGenHyperHelium4SigmaCounter" ), isMatter ? 3.5 : 4.5 );
788- double hyperHelium4SigmaMCMass = RecoDecay::m (std::array{std::array{dauAlphaMom[0 ], dauAlphaMom[1 ], dauAlphaMom[2 ]}, std::array{dauPion0Mom[0 ], dauPion0Mom[1 ], dauPion0Mom[2 ]}}, std::array{o2::constants::physics::MassAlpha, o2::constants::physics::MassPi0});
788+ float hyperHelium4SigmaMCMass = RecoDecay::m (std::array{std::array{dauAlphaMom[0 ], dauAlphaMom[1 ], dauAlphaMom[2 ]}, std::array{dauPion0Mom[0 ], dauPion0Mom[1 ], dauPion0Mom[2 ]}}, std::array{o2::constants::physics::MassAlpha, o2::constants::physics::MassPi0});
789789 genQAHist.fill (HIST (" hMcRecoInvMass" ), hyperHelium4SigmaMCMass);
790790 } else if (dChannel == k3body_p) {
791791 genQAHist.fill (HIST (" hGenHyperHelium4SigmaCounter" ), isMatter ? 5.5 : 6.5 );
792- double hyperHelium4SigmaMCMass = RecoDecay::m (std::array{std::array{dauTritonMom[0 ], dauTritonMom[1 ], dauTritonMom[2 ]}, std::array{dauProtonMom[0 ], dauProtonMom[1 ], dauProtonMom[2 ]}, std::array{dauPion0Mom[0 ], dauPion0Mom[1 ], dauPion0Mom[2 ]}}, std::array{o2::constants::physics::MassTriton, o2::constants::physics::MassProton, o2::constants::physics::MassPi0});
792+ float hyperHelium4SigmaMCMass = RecoDecay::m (std::array{std::array{dauTritonMom[0 ], dauTritonMom[1 ], dauTritonMom[2 ]}, std::array{dauProtonMom[0 ], dauProtonMom[1 ], dauProtonMom[2 ]}, std::array{dauPion0Mom[0 ], dauPion0Mom[1 ], dauPion0Mom[2 ]}}, std::array{o2::constants::physics::MassTriton, o2::constants::physics::MassProton, o2::constants::physics::MassPi0});
793793 genQAHist.fill (HIST (" hMcRecoInvMass" ), hyperHelium4SigmaMCMass);
794794 } else if (dChannel == k3body_n) {
795795 genQAHist.fill (HIST (" hGenHyperHelium4SigmaCounter" ), isMatter ? 7.5 : 8.5 );
796- double hyperHelium4SigmaMCMass = RecoDecay::m (std::array{std::array{dauTritonMom[0 ], dauTritonMom[1 ], dauTritonMom[2 ]}, std::array{dauNeuteronMom[0 ], dauNeuteronMom[1 ], dauNeuteronMom[2 ]}, std::array{dauChargedPionMom[0 ], dauChargedPionMom[1 ], dauChargedPionMom[2 ]}}, std::array{o2::constants::physics::MassTriton, o2::constants::physics::MassNeutron, o2::constants::physics::MassPionCharged});
796+ float hyperHelium4SigmaMCMass = RecoDecay::m (std::array{std::array{dauTritonMom[0 ], dauTritonMom[1 ], dauTritonMom[2 ]}, std::array{dauNeuteronMom[0 ], dauNeuteronMom[1 ], dauNeuteronMom[2 ]}, std::array{dauChargedPionMom[0 ], dauChargedPionMom[1 ], dauChargedPionMom[2 ]}}, std::array{o2::constants::physics::MassTriton, o2::constants::physics::MassNeutron, o2::constants::physics::MassPionCharged});
797797 genQAHist.fill (HIST (" hMcRecoInvMass" ), hyperHelium4SigmaMCMass);
798798 }
799799 }
0 commit comments