8#include "CLHEP/Random/RandFlat.h"
20 return StatusCode::SUCCESS;
26 return StatusCode::SUCCESS;
30 rngWrapper->
setSeed( name(), ctx );
31 CLHEP::HepRandomEngine* rndmEngine= rngWrapper->
getEngine(ctx);
34 const double random_number = CLHEP::RandFlat::shoot( rndmEngine, 0, 1 );
44 return StatusCode::SUCCESS;
49 ATH_MSG_DEBUG(
"***************************************************************");
59 ATH_MSG_DEBUG(
"***************************************************************" );
60 return StatusCode::SUCCESS;
#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.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
virtual void setFilterPassed(bool state, const EventContext &ctx) const
An algorithm that can be simultaneously executed in multiple threads.
std::atomic< unsigned int > m_accepted
std::atomic< unsigned int > m_vetoed
StatusCode initialize() override
Gaudi Service Interface method implementations:
StringArrayProperty m_theRequireAlgNames
List of algorithms names to combine with logical AND.
StatusCode finalize() override
StringArrayProperty m_theAcceptAlgNames
Keep these two properties for now in order not to break the current configuration.
ServiceHandle< IAthRNGSvc > m_rndmSvc
handle to the IAthRNGSvc we want to test
PrimaryDPDPrescaler(const std::string &name, ISvcLocator *pSvcLocator)
Standard Service Constructor.
Gaudi::Property< double > m_prescale
StatusCode execute(const EventContext &ctx) const override