51 transform = CLHEP::HepLorentzRotation();
54 const double sinX = sin(
m_xangle*CLHEP::deg);
55 const double cosX = cos(
m_xangle*CLHEP::deg);
56 const CLHEP::HepRotation rotx(CLHEP::HepRep3x3(1.0,0.0,0.0, 0.0,cosX,-sinX, 0.0,sinX,cosX));
57 const double sinY = sin(
m_yangle*CLHEP::deg);
58 const double cosY = cos(
m_yangle*CLHEP::deg);
59 const CLHEP::HepRotation roty(CLHEP::HepRep3x3(cosY,0.0,sinY, 0.0,1.0,0.0, -sinY,0.0,cosY));
60 const double sinZ = sin(
m_zangle*CLHEP::deg);
61 const double cosZ = cos(
m_zangle*CLHEP::deg);
62 const CLHEP::HepRotation rotz(CLHEP::HepRep3x3(cosZ,-sinZ,0.0, sinZ,cosZ,0.0, 0.0,0.0,1.0));
64 const CLHEP::HepRotation rot = rotx*roty*rotz;
66 return StatusCode::SUCCESS;
83 const CLHEP::HepLorentzRotation& transform)
const
86 const HepMC::FourVector mom = p->momentum();
87 CLHEP::HepLorentzVector hv(mom.px(), mom.py(), mom.pz(), mom.e());
89 hv.transform(transform);
91 p->set_momentum(HepMC::FourVector(hv.px(),hv.py(),hv.pz(),hv.e()));