#include <GenEventRotator.h>
|
Gaudi::Property< double > | m_xangle {this, "xAngle", 0.0, "rotation about x-axis"} |
|
Gaudi::Property< double > | m_yangle {this, "yAngle", 0.0, "rotation about y-axis"} |
|
Gaudi::Property< double > | m_zangle {this, "zAngle", 0.0, "rotation about z-axis"} |
|
This tool takes a HepMC::GenEvent and applies rotations See https://twiki.cern.ch/twiki/bin/viewauth/Atlas/AtlasG4EventFilters for more details.
Definition at line 28 of file GenEventRotator.h.
◆ GenEventRotator()
Simulation::GenEventRotator::GenEventRotator |
( |
const std::string & |
t, |
|
|
const std::string & |
n, |
|
|
const IInterface * |
p |
|
) |
| |
◆ finalize()
StatusCode Simulation::GenEventRotator::finalize |
( |
| ) |
|
|
finaloverride |
◆ initialize()
StatusCode Simulation::GenEventRotator::initialize |
( |
| ) |
|
|
finaloverride |
◆ initializeAthenaEvent()
StatusCode Simulation::GenEventRotator::initializeAthenaEvent |
( |
| ) |
|
◆ initializeGenEvent()
StatusCode Simulation::GenEventRotator::initializeGenEvent |
( |
CLHEP::HepLorentzRotation & |
transform, |
|
|
const EventContext & |
ctx |
|
) |
| const |
|
private |
calculate the transformations that we want to apply to the particles in the current GenEvent
Definition at line 48 of file GenEventRotator.cxx.
56 const CLHEP::HepRotation rotx(CLHEP::HepRep3x3(1.0,0.0,0.0, 0.0,cosX,-sinX, 0.0,sinX,cosX));
59 const CLHEP::HepRotation roty(CLHEP::HepRep3x3(cosY,0.0,sinY, 0.0,1.0,0.0, -sinY,0.0,cosY));
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;
◆ manipulate()
StatusCode Simulation::GenEventRotator::manipulate |
( |
HepMC::GenEvent & |
ge, |
|
|
const EventContext & |
ctx |
|
) |
| const |
|
finaloverride |
modifies the given GenEvent
modifies (displaces) the given GenEvent
Definition at line 70 of file GenEventRotator.cxx.
73 CLHEP::HepLorentzRotation
transform = CLHEP::HepLorentzRotation();
76 for(
auto particleIter: ge) {
79 return StatusCode::SUCCESS;
◆ rotateParticle()
apply rotations to individual GenParticles
Definition at line 82 of file GenEventRotator.cxx.
86 const HepMC::FourVector
mom =
p->momentum();
87 CLHEP::HepLorentzVector hv(
mom.px(),
mom.py(),
mom.pz(),
mom.e());
91 p->set_momentum(HepMC::FourVector(hv.px(),hv.py(),hv.pz(),hv.e()));
◆ m_xangle
Gaudi::Property<double> Simulation::GenEventRotator::m_xangle {this, "xAngle", 0.0, "rotation about x-axis"} |
|
private |
◆ m_yangle
Gaudi::Property<double> Simulation::GenEventRotator::m_yangle {this, "yAngle", 0.0, "rotation about y-axis"} |
|
private |
◆ m_zangle
Gaudi::Property<double> Simulation::GenEventRotator::m_zangle {this, "zAngle", 0.0, "rotation about z-axis"} |
|
private |
The documentation for this class was generated from the following files: