Skip to content

Commit e8a679a

Browse files
committed
Please consider the following formatting changes
1 parent 0537ba7 commit e8a679a

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

PWGLF/TableProducer/Nuspex/trHeAnalysis.cxx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)