Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct pps sim vtx position #34556

Merged
merged 2 commits into from
Jul 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Verbosity = cms.bool(False),
EtaCut = cms.double(8.2),
MomentumCut= cms.double(3000),
PPSRegionStart_45 = cms.double(212.45),
PPSRegionStart_56 = cms.double(212.45)
PPSRegionStart_45 = cms.double(203),
PPSRegionStart_56 = cms.double(203)
)

Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +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;

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