Skip to content

Commit

Permalink
Merge pull request #27 from c-dilks/fix-beams
Browse files Browse the repository at this point in the history
update crossing angle implementation in `Kinematics`
  • Loading branch information
c-dilks authored Sep 14, 2021
2 parents c6d798a + aae32a8 commit adf1caa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Kinematics.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Kinematics::Kinematics(
// set ion mass
IonMass = ProtonMass();

// set beam 4-momenta // TODO: get proper beams from Brian
// set beam 4-momenta
Double_t momEleBeam = EMtoP(enEleBeam,ElectronMass());
Double_t momIonBeam = EMtoP(enIonBeam,IonMass);
vecEleBeam.SetPxPyPzE(
Expand All @@ -25,7 +25,7 @@ Kinematics::Kinematics(
enEleBeam
);
vecIonBeam.SetPxPyPzE(
momIonBeam * TMath::Sin(crossAng),
-momIonBeam * TMath::Sin(crossAng),
0,
momIonBeam * TMath::Cos(crossAng),
enIonBeam
Expand Down

0 comments on commit adf1caa

Please sign in to comment.