7#include "CLHEP/Vector/LorentzVector.h"
15 : base_class(t, n, p) {}
22 return StatusCode::SUCCESS;
26 const EventContext &ctx)
const {
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: "
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_VERBOSE(x)
Handle class for reading from StoreGate.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
const_pointer_type cptr()
Dereference the pointer.
MatchingBkgVertexPositioner(const std::string &t, const std::string &n, const IInterface *p)
SG::ReadHandleKey< xAOD::VertexContainer > m_vertexContainerKey
StatusCode initialize() override final
CLHEP::HepLorentzVector * generate(const EventContext &ctx) const override final
Vertex_v1 Vertex
Define the latest version of the vertex class.