ATLAS Offline Software
Loading...
Searching...
No Matches
VertexBeamCondPositioner.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef BEAMEFFECTS_VERTEXBEAMCONPOSITIONER_H
6#define BEAMEFFECTS_VERTEXBEAMCONPOSITIONER_H 1
7
8// STL includes
9#include <string>
10#include <utility>
11// FrameWork includes
12#include "GaudiKernel/ServiceHandle.h"
18namespace ATHRNG {
19 class RNGWrapper;
20}
21
22namespace Simulation {
23
33 class VertexBeamCondPositioner : public extends<AthAlgTool, ILorentzVectorGenerator> {
34
35 public:
36
38 VertexBeamCondPositioner( const std::string& t, const std::string& n, const IInterface* p );
39
42
44 StatusCode initialize() override final;
45 StatusCode finalize() override final;
46
48 CLHEP::HepLorentzVector *generate(const EventContext& ctx) const override final;
49
50 private:
51
52 SG::ReadCondHandleKey<InDet::BeamSpotData> m_beamSpotKey { this, "BeamSpotKey", "BeamSpotData", "SG key for beam spot" };
53 ServiceHandle<IAthRNGSvc> m_rndGenSvc{this, "RandomSvc", "AthRNGSvc"};
55
56 Gaudi::Property<std::string> m_randomEngineName{this, "RandomStream", "VERTEX"};
57 Gaudi::Property<bool> m_timeSmearing{this, "SimpleTimeSmearing", false};
58 Gaudi::Property<float> m_timeWidth{this, "TimeWidth", 0.};
59
60
61 };
62
63}
64
65#endif //> !BEAMEFFECTS_VERTEXBEAMCONPOSITIONER_H
Define macros for attributes used to control the static checker.
A wrapper class for event-slot-local random engines.
Definition RNGWrapper.h:56
Gaudi::Property< bool > m_timeSmearing
Do time smearing.
StatusCode initialize() override final
Athena algtool's Hooks.
VertexBeamCondPositioner(const std::string &t, const std::string &n, const IInterface *p)
Constructor with parameters.
ATHRNG::RNGWrapper *m_randomEngine ATLAS_THREAD_SAFE
Slot-local RNG.
StatusCode finalize() override final
Athena algtool's Hooks.
Gaudi::Property< std::string > m_randomEngineName
Name of the random number stream.
Gaudi::Property< float > m_timeWidth
Width of time for smearing.
SG::ReadCondHandleKey< InDet::BeamSpotData > m_beamSpotKey
~VertexBeamCondPositioner()=default
Destructor.
Primary Vertex Finder.
Forward declaration.
#define private