@@ -647,14 +647,13 @@ struct TrHeAnalysis {
647647 template <class T >
648648 float betheBlochAleph (Particle const & particle, T const & rigidity)
649649 {
650- double bg = particle.charge * rigidity / particle.mass ;
651- double beta = bg / std::Sqrt (1 . + bg * bg);
652- double aa = std::Power (beta, particle.betheParams [3 ]);
653- double bb = std::Power (1 . / bg, particle.betheParams [4 ]);
654- if ((particle.betheParams [2 ] + bb) <= 0 )
655- return 0 ;
656- bb = std::Log (particle.betheParams [2 ] + bb);
657- return std::pow (particle.charge , particle.chargeFactor ) * 50 * (particle.betheParams [1 ] - aa - bb) * particle.betheParams [0 ] / aa;
650+ double bg = particle.charge *rigidity / particle.mass ;
651+ double beta = bg / std::sqrt (1 . + bg*bg);
652+ double aa = std::pow (beta, particle.betheParams [3 ]);
653+ double bb = std::pow (1 . / bg, particle.betheParams [4 ]);
654+ if ((particle.betheParams [2 ] + bb) <= 0 ) return 0 ;
655+ bb = std::log (particle.betheParams [2 ] + bb);
656+ return std::pow (particle.charge , particle.chargeFactor ) * 50 * (particle.betheParams [1 ] - aa - bb)*particle.betheParams [0 ] / aa;
658657 }
659658
660659 template <class T >
@@ -685,8 +684,8 @@ struct TrHeAnalysis {
685684 {
686685 const float beta = track.beta ();
687686 const float rigidity = getRigidity (track);
688- float gamma = 1 / std::Sqrt ( 1 - beta * beta);
689- float mass = (rigidity / std::Sqrt (gamma * gamma - 1 ));
687+ float gamma = 1 / std::sqrt ( 1 - beta* beta);
688+ float mass = (rigidity / std::sqrt (gamma * gamma - 1 ));
690689 return mass;
691690 }
692691};
0 commit comments