ATLAS Offline Software
RandomRoISeedTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // (c) ATLAS Detector software
8 // Class for Z-window RoI from random position (excluding the HS).
10 
11 #ifndef SiSpacePointsSeedTool_xk_RandomRoISeedTool_h
12 #define SiSpacePointsSeedTool_xk_RandomRoISeedTool_h
13 
16 #include "GaudiKernel/EventContext.h"
18 #include "GaudiKernel/ServiceHandle.h"
19 #include "GaudiKernel/EventContext.h"
21 
22 
23 #include <vector>
24 
25 namespace CLHEP {
26  class RandGauss;
27 }
28 
29 namespace InDet {
30 
31  class RandomRoISeedTool final:
32  public extends<AthAlgTool, IZWindowRoISeedTool>
33  {
34 
36  // Public methods:
38 
39  public:
40 
42  // Standard tool methods
44 
45  RandomRoISeedTool(const std::string&,const std::string&,const IInterface*);
46  virtual ~RandomRoISeedTool() = default;
47  virtual StatusCode initialize() override;
48 
50  virtual std::vector<ZWindow> getRoIs(const EventContext& ctx) const override;
51 
52  protected:
53 
55  RandomRoISeedTool() = delete;
58 
60  // Protected data and methods
62 
63  FloatProperty m_z0Window{this, "TrackZ0Window", 1.0, "width of z0 window"};
64  SG::ReadCondHandleKey<InDet::BeamSpotData> m_beamSpotKey{this, "BeamSpotKey", "BeamSpotData", "SG key for beam spot"};
65  ServiceHandle<IAthRNGSvc> m_atRndmSvc{this, "RndmGenSvc", "AthRNGSvc", "multi-thread safe random number generator"};
66 
67  std::string m_rndmEngineName{"SINGLE"};// name of random engine
68 
69  }; // RandomRoISeedTool
70 } //InDet namespace
71 
72 #endif // SiSpacePointsSeedMaker_RandomRoISeedTool
73 
InDet
Primary Vertex Finder.
Definition: VP1ErrorUtils.h:36
InDet::RandomRoISeedTool::RandomRoISeedTool
RandomRoISeedTool()=delete
InDet::RandomRoISeedTool::getRoIs
virtual std::vector< ZWindow > getRoIs(const EventContext &ctx) const override
Compute RoI.
Definition: RandomRoISeedTool.cxx:48
InDet::RandomRoISeedTool::operator=
RandomRoISeedTool & operator=(const RandomRoISeedTool &)=delete
InDet::RandomRoISeedTool::m_atRndmSvc
ServiceHandle< IAthRNGSvc > m_atRndmSvc
Definition: RandomRoISeedTool.h:65
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CLHEP
STD'S.
Definition: IAtRndmGenSvc.h:19
AthAlgTool.h
InDet::RandomRoISeedTool::m_beamSpotKey
SG::ReadCondHandleKey< InDet::BeamSpotData > m_beamSpotKey
Definition: RandomRoISeedTool.h:64
InDet::RandomRoISeedTool
Definition: RandomRoISeedTool.h:33
SG::ReadCondHandleKey< InDet::BeamSpotData >
InDet::RandomRoISeedTool::~RandomRoISeedTool
virtual ~RandomRoISeedTool()=default
InDet::RandomRoISeedTool::initialize
virtual StatusCode initialize() override
Definition: RandomRoISeedTool.cxx:35
BeamSpotData.h
InDet::RandomRoISeedTool::m_z0Window
FloatProperty m_z0Window
Definition: RandomRoISeedTool.h:63
InDet::RandomRoISeedTool::RandomRoISeedTool
RandomRoISeedTool(const RandomRoISeedTool &)=delete
IZWindowRoISeedTool.h
InDet::RandomRoISeedTool::m_rndmEngineName
std::string m_rndmEngineName
Definition: RandomRoISeedTool.h:67
IAthRNGSvc.h
ServiceHandle< IAthRNGSvc >