ATLAS Offline Software
Loading...
Searching...
No Matches
MatchingBkgVertexPositioner.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef BEAMEFFECTS_MATCHINGBKGVERTEXPOSITIONER_H
6#define BEAMEFFECTS_MATCHINGBKGVERTEXPOSITIONER_H
7
13
14// STL includes
15#include <string>
16
17namespace Simulation {
18
24
26 : public extends<AthAlgTool, ILorentzVectorGenerator> {
27
28 public:
29 MatchingBkgVertexPositioner(const std::string &t, const std::string &n,
30 const IInterface *p);
31 virtual ~MatchingBkgVertexPositioner() = default;
32
33 StatusCode initialize() override final;
34
35 CLHEP::HepLorentzVector *generate(
36 const EventContext &ctx) const override final;
37
38 private:
39 SG::ReadHandleKey<xAOD::VertexContainer> m_vertexContainerKey{
40 this, "PrimaryVertexContainerName", ""};
42 this, "McEventCollectionName", "", "Use MC collection (typically Bkg_TruthEvent) as source of vertex position"};
43};
44
45} // namespace Simulation
46
47#endif
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a ReadHandle is made.
SG::ReadHandleKey< McEventCollection > m_mcEventKey
MatchingBkgVertexPositioner(const std::string &t, const std::string &n, const IInterface *p)
SG::ReadHandleKey< xAOD::VertexContainer > m_vertexContainerKey
virtual ~MatchingBkgVertexPositioner()=default
Forward declaration.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
#define private
Definition testRead.cxx:27