|
ATLAS Offline Software
|
Go to the documentation of this file.
8 #include "CLHEP/Random/RandFlat.h"
20 return StatusCode::SUCCESS;
26 return StatusCode::SUCCESS;
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;
void setSeed(const std::string &algName, const EventContext &ctx)
Set the random seed using a string (e.g.
StatusCode initialize() override
Gaudi Service Interface method implementations:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
std::atomic< unsigned int > m_accepted
Gaudi::Property< double > m_prescale
StatusCode execute(const EventContext &ctx) const override
StatusCode finalize() override
An algorithm that can be simultaneously executed in multiple threads.
::StatusCode StatusCode
StatusCode definition for legacy code.
StringArrayProperty m_theAcceptAlgNames
Keep these two properties for now in order not to break the current configuration.
StringArrayProperty m_theRequireAlgNames
List of algorithms names to combine with logical AND.
A wrapper class for event-slot-local random engines.
CLHEP::HepRandomEngine * getEngine(const EventContext &ctx) const
Retrieve the random engine corresponding to the provided EventContext.
std::atomic< unsigned int > m_vetoed
ServiceHandle< IAthRNGSvc > m_rndmSvc
handle to the IAthRNGSvc we want to test
PrimaryDPDPrescaler(const std::string &name, ISvcLocator *pSvcLocator)
Standard Service Constructor.
virtual void setFilterPassed(bool state, const EventContext &ctx) const