Skip to content

Commit

Permalink
modification by scram b code-format
Browse files Browse the repository at this point in the history
  • Loading branch information
mundim committed Jul 19, 2021
1 parent b48fa4e commit f69cb88
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,11 @@ bool OpticalFunctionsTransport::transportProton(const HepMC::GenParticle* in_trk
<< " proton transported: a_x = " << a_x << " rad, a_y = " << a_y << " rad, b_x = " << b_x
<< " mm, b_y = " << b_y << " mm, z = " << z_scoringPlane << " mm" << std::endl;
}
//
// Project the track back to the starting of PPS region
b_x-=(abs(z_scoringPlane)-(double)((z_scoringPlane<0)?fPPSRegionStart_45:fPPSRegionStart_56)*1e3)*a_x; // z_scoringPlane is in mm
b_y-=(abs(z_scoringPlane)-(double)((z_scoringPlane<0)?fPPSRegionStart_45:fPPSRegionStart_56)*1e3)*a_y;
//
// Project the track back to the starting of PPS region
b_x -= (abs(z_scoringPlane) - (double)((z_scoringPlane < 0) ? fPPSRegionStart_45 : fPPSRegionStart_56) * 1e3) *
a_x; // z_scoringPlane is in mm
b_y -= (abs(z_scoringPlane) - (double)((z_scoringPlane < 0) ? fPPSRegionStart_45 : fPPSRegionStart_56) * 1e3) * a_y;

unsigned int line = in_trk->barcode();
double px = -p * a_x;
Expand Down

0 comments on commit f69cb88

Please sign in to comment.