#include <MatchingBkgVertexPositioner.h>
Returns a VertexShift based on what is given in the background input file.
Definition at line 24 of file MatchingBkgVertexPositioner.h.
◆ MatchingBkgVertexPositioner()
Simulation::MatchingBkgVertexPositioner::MatchingBkgVertexPositioner |
( |
const std::string & |
t, |
|
|
const std::string & |
n, |
|
|
const IInterface * |
p |
|
) |
| |
◆ ~MatchingBkgVertexPositioner()
virtual Simulation::MatchingBkgVertexPositioner::~MatchingBkgVertexPositioner |
( |
| ) |
|
|
virtualdefault |
◆ generate()
CLHEP::HepLorentzVector * Simulation::MatchingBkgVertexPositioner::generate |
( |
const EventContext & |
ctx | ) |
const |
|
finaloverride |
Definition at line 25 of file MatchingBkgVertexPositioner.cxx.
32 if (!vertices.isValid()) {
33 ATH_MSG_ERROR(
"Couldn't retrieve xAOD::VertexContainer with key: "
40 ATH_MSG_INFO(
"Using primary vertex with position and time: "
41 << vx->position().x() <<
" " << vx->position().y() <<
" "
42 << vx->position().z() <<
" "
43 << (enableTime && vx->hasValidTime() ? vx->time() : 0));
44 return new CLHEP::HepLorentzVector(
45 vx->position().x(), vx->position().y(), vx->position().z(),
46 enableTime && vx->hasValidTime() ? vx->time() : 0);
50 ATH_MSG_ERROR(
"No primary vertex found in xAOD::VertexContainer with key: "
◆ initialize()
StatusCode Simulation::MatchingBkgVertexPositioner::initialize |
( |
| ) |
|
|
finaloverride |
◆ m_vertexContainerKey
The documentation for this class was generated from the following files: