16#include "CLHEP/Random/RandGauss.h"
26(
const std::string& t,
const std::string& n,
const IInterface* p)
37 StatusCode
sc = AlgTool::initialize();
52 std::vector<InDet::IZWindowRoISeedTool::ZWindow> listRoIs;
57 if (not beamSpotHandle.
isValid()) {
58 ATH_MSG_ERROR(
"Cannot retrieve beam spot data. Bailing out with empty RoI list.");
62 bsSigZ = beamSpotHandle->beamSigma(2);
67 rndmEngine->
setSeed (name(), ctx);
68 CLHEP::HepRandomEngine* engine = rndmEngine->
getEngine (ctx);
70 zVal = CLHEP::RandGauss::shoot(engine, 0.0, 1.0) * bsSigZ;
76 listRoIs.push_back(RoI);
#define ATH_CHECK
Evaluate an expression and check for errors.
A wrapper class for event-slot-local random engines.
void setSeed(const std::string &algName, const EventContext &ctx)
Set the random seed using a string (e.g.
CLHEP::HepRandomEngine * getEngine(const EventContext &ctx) const
Retrieve the random engine corresponding to the provided EventContext.