File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
PWGLF/TableProducer/Nuspex Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -647,13 +647,14 @@ 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);
650+ double bg = particle.charge * rigidity / particle.mass ;
651+ double beta = bg / std::sqrt (1 . + bg * bg);
652652 double aa = std::pow (beta, particle.betheParams [3 ]);
653653 double bb = std::pow (1 . / bg, particle.betheParams [4 ]);
654- if ((particle.betheParams [2 ] + bb) <= 0 ) return 0 ;
654+ if ((particle.betheParams [2 ] + bb) <= 0 )
655+ return 0 ;
655656 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;
657+ return std::pow (particle.charge , particle.chargeFactor ) * 50 * (particle.betheParams [1 ] - aa - bb) * particle.betheParams [0 ] / aa;
657658 }
658659
659660 template <class T >
@@ -684,7 +685,7 @@ struct TrHeAnalysis {
684685 {
685686 const float beta = track.beta ();
686687 const float rigidity = getRigidity (track);
687- float gamma = 1 / std::sqrt (1 - beta* beta);
688+ float gamma = 1 / std::sqrt (1 - beta * beta);
688689 float mass = (rigidity / std::sqrt (gamma * gamma - 1 ));
689690 return mass;
690691 }
You can’t perform that action at this time.
0 commit comments