The Gaudi Framework  v36r9 (fd2bdac3)
CPUCruncher Class Reference

#include </builds/gaudi/Gaudi/GaudiHive/src/CPUCruncher.h>

Inheritance diagram for CPUCruncher:
Collaboration diagram for CPUCruncher:

Public Types

typedef tbb::concurrent_hash_map< std::string, unsigned int > CHM
 
- Public Types inherited from Gaudi::Algorithm
typedef Gaudi::PluginService::Factory< IAlgorithm *(const std::string &, ISvcLocator *)> Factory
 
- Public Types inherited from extends< PropertyHolder< CommonMessaging< implements< IAlgorithm, IDataHandleHolder, IProperty, IStateful > > >, IDataHandleHolder >
using base_class = extends
 Typedef to this class. More...
 
using extend_interfaces_base = extend_interfaces< Interfaces... >
 Typedef to the base of this class. More...
 
- Public Types inherited from PropertyHolder< CommonMessaging< implements< IAlgorithm, IDataHandleHolder, IProperty, IStateful > > >
using PropertyHolderImpl = PropertyHolder< CommonMessaging< implements< IAlgorithm, IDataHandleHolder, IProperty, IStateful > > >
 Typedef used to refer to this class from derived classes, as in. More...
 
- Public Types inherited from CommonMessaging< implements< IAlgorithm, IDataHandleHolder, IProperty, IStateful > >
using base_class = CommonMessaging
 
- Public Types inherited from extend_interfaces< Interfaces... >
using ext_iids = typename Gaudi::interface_list_cat< typename Interfaces::ext_iids... >::type
 take union of the ext_iids of all Interfaces... More...
 

Public Member Functions

bool isClonable () const override
 
StatusCode execute () override
 the execution of the algorithm More...
 
StatusCode initialize () override
 Its initialization. More...
 
StatusCode finalize () override
 the finalization of the algorithm More...
 
double get_runtime () const
 
 CPUCruncher (const std::string &name, ISvcLocator *pSvc)
 
virtual ~CPUCruncher ()
 virtual & protected desctrustor More...
 
- Public Member Functions inherited from GaudiAlgorithm
StatusCode initialize () override
 standard initialization method More...
 
StatusCode finalize () override
 standard finalization method More...
 
StatusCode sysExecute (const EventContext &ctx) override
 the generic actions for the execution. More...
 
void put (IDataProviderSvc *svc, DataObject *object, const std::string &address, const bool useRootInTES=true) const
 Register a data object or container into Gaudi Event Transient Store. More...
 
void put (IDataProviderSvc *svc, std::unique_ptr< DataObject > object, const std::string &address, const bool useRootInTES=true) const
 
const DataObjectput (DataObject *object, const std::string &address, const bool useRootInTES=true) const
 Register a data object or container into Gaudi Event Transient Store. More...
 
const DataObjectput (std::unique_ptr< DataObject > object, const std::string &address, const bool useRootInTES=true) const
 
template<class TYPE >
Gaudi::Utils::GetData< TYPE >::return_type get (IDataProviderSvc *svc, const std::string &location, const bool useRootInTES=true) const
 Templated access to the data in Gaudi Transient Store. More...
 
template<class TYPE >
Gaudi::Utils::GetData< TYPE >::return_type getIfExists (IDataProviderSvc *svc, const std::string &location, const bool useRootInTES=true) const
 Templated access to the data in Gaudi Transient Store. More...
 
template<class TYPE >
Gaudi::Utils::GetData< TYPE >::return_type get (const std::string &location, const bool useRootInTES=true) const
 Templated access to the data from Gaudi Event Transient Store. More...
 
template<class TYPE >
Gaudi::Utils::GetData< TYPE >::return_type getIfExists (const std::string &location, const bool useRootInTES=true) const
 Templated access to the data in Gaudi Transient Store. More...
 
template<class TYPE >
TYPE * getDet (IDataProviderSvc *svc, const std::string &location) const
 Templated access to the detector data from the Gaudi Detector Transient Store. More...
 
template<class TYPE >
Gaudi::Utils::GetData< TYPE >::return_type getDetIfExists (IDataProviderSvc *svc, const std::string &location) const
 Templated access to the detector data from the Gaudi Detector Transient Store. More...
 
template<class TYPE >
TYPE * getDet (const std::string &location) const
 Templated access to the detector data from the Gaudi Detector Transient Store. More...
 
template<class TYPE >
Gaudi::Utils::GetData< TYPE >::return_type getDetIfExists (const std::string &location) const
 Templated access to the detector data from the Gaudi Detector Transient Store. More...
 
template<class TYPE >
bool exist (IDataProviderSvc *svc, const std::string &location, const bool useRootInTES=true) const
 Check the existence of a data object or container in the Gaudi Transient Event Store. More...
 
template<class TYPE >
bool exist (const std::string &location, const bool useRootInTES=true) const
 Check the existence of a data object or container in the Gaudi Transient Event Store. More...
 
template<class TYPE >
bool existDet (IDataProviderSvc *svc, const std::string &location) const
 Check the existence of detector objects in the Gaudi Transient Detector Store. More...
 
template<class TYPE >
bool existDet (const std::string &location) const
 Check the existence of detector objects in the Gaudi Transient Detector Store. More...
 
template<class TYPE , class TYPE2 >
Gaudi::Utils::GetData< TYPE >::return_type getOrCreate (IDataProviderSvc *svc, std::string_view location, const bool useRootInTES=true) const
 Get the existing data object from Gaudi Event Transient store. More...
 
template<class TYPE , class TYPE2 >
Gaudi::Utils::GetData< TYPE >::return_type getOrCreate (const std::string &location, const bool useRootInTES=true) const
 Get the existing data object from Gaudi Event Transient store. More...
 
 GaudiAlgorithm (std::string name, ISvcLocator *pSvcLocator)
 Standard constructor. More...
 
 GaudiAlgorithm (const GaudiAlgorithm &)=delete
 
GaudiAlgorithmoperator= (const GaudiAlgorithm &)=delete
 
SmartIF< INTupleSvc > & evtColSvc () const
 Access the standard event collection service. More...
 
- Public Member Functions inherited from GaudiCommon< Algorithm >
Gaudi::Utils::GetData< TYPE >::return_type get (IDataProviderSvc *svc, std::string_view location, const bool useRootInTES=true) const
 Templated access to the data in Gaudi Transient Store. More...
 
Gaudi::Utils::GetData< TYPE >::return_type getIfExists (IDataProviderSvc *svc, std::string_view location, const bool useRootInTES=true) const
 Quicker version of the get function which bypasses the check on the retrieved data. More...
 
bool exist (IDataProviderSvc *svc, std::string_view location, const bool useRootInTES=true) const
 Check the existence of a data object or container in the Gaudi Transient Event Store. More...
 
Gaudi::Utils::GetData< TYPE >::return_type getOrCreate (IDataProviderSvc *svc, std::string_view location, const bool useRootInTES=true) const
 Get the existing data object from Gaudi Event Transient store. More...
 
DataObjectput (IDataProviderSvc *svc, std::unique_ptr< DataObject > object, std::string_view location, const bool useRootInTES=true) const
 Register a data object or container into Gaudi Event Transient Store. More...
 
DataObjectput (IDataProviderSvc *svc, DataObject *object, std::string_view location, const bool useRootInTES=true) const
 
TOOL * tool (std::string_view type, std::string_view name, const IInterface *parent=0, bool create=true) const
 Useful method for the easy location of tools. More...
 
TOOL * tool (std::string_view type, const IInterface *parent=0, bool create=true) const
 A useful method for the easy location of tools. More...
 
SmartIF< SERVICE > svc (std::string_view name, const bool create=true) const
 A useful method for the easy location of services. More...
 
IUpdateManagerSvcupdMgrSvc () const
 Short-cut to locate the Update Manager Service. More...
 
StatusCode Error (std::string_view msg, const StatusCode st=StatusCode::FAILURE, const size_t mx=10) const
 Print the error message and return with the given StatusCode. More...
 
StatusCode Warning (std::string_view msg, const StatusCode st=StatusCode::FAILURE, const size_t mx=10) const
 Print the warning message and return with the given StatusCode. More...
 
StatusCode Info (std::string_view msg, const StatusCode st=StatusCode::SUCCESS, const size_t mx=10) const
 Print the info message and return with the given StatusCode. More...
 
StatusCode Print (std::string_view msg, const StatusCode st=StatusCode::SUCCESS, const MSG::Level lev=MSG::INFO) const
 Print the message and return with the given StatusCode. More...
 
void Assert (const bool ok, std::string_view message="", const StatusCode sc=StatusCode::FAILURE) const
 Assertion - throw exception if the given condition is not fulfilled. More...
 
void Exception (std::string_view msg, const GaudiException &exc, const StatusCode sc=StatusCode::FAILURE) const
 Create and (re)-throw a given GaudiException. More...
 
void Exception (std::string_view msg, const std::exception &exc, const StatusCode sc=StatusCode::FAILURE) const
 Create and (re)-throw a given exception. More...
 
void Exception (std::string_view msg="no message", const StatusCode sc=StatusCode::FAILURE) const
 Create and throw an exception with the given message. More...
 
StatEntitycounter (std::string_view tag) const
 accessor to certain counter by name More...
 
StatEntitycounter (std::string_view tag)
 
long printErrors (const MSG::Level level=MSG::ALWAYS) const
 perform the actual printout of error counters More...
 
long printProps (const MSG::Level level=MSG::ALWAYS) const
 perform the actual printout of properties More...
 
void registerCondition (const std::string &condition, StatusCode(CallerClass::*mf)()=nullptr)
 register the current instance to the UpdateManagerSvc as a consumer for a condition. More...
 
void registerCondition (const std::string &condition, CondType *&condPtrDest, StatusCode(CallerClass::*mf)()=NULL)
 register the current instance to the UpdateManagerSvc as a consumer for a condition. More...
 
void registerCondition (char *condition, StatusCode(CallerClass::*mf)()=NULL)
 just to avoid conflicts with the version using a pointer to a template class. More...
 
void registerCondition (TargetClass *condition, StatusCode(CallerClass::*mf)()=NULL)
 register the current instance to the UpdateManagerSvc as a consumer for a condition. More...
 
StatusCode runUpdate ()
 asks the UpdateManagerSvc to perform an update of the instance (if needed) without waiting the next BeginEvent incident. More...
 
 GaudiCommon (std::string name, ISvcLocator *pSvcLocator)
 Algorithm constructor - the SFINAE constraint below ensures that this is constructor is only defined if PBASE derives from Algorithm. More...
 
 GaudiCommon (std::string type, std::string name, const IInterface *ancestor)
 Tool constructor - SFINAE-ed to insure this constructor is only defined if PBASE derives from AlgTool. More...
 
 GaudiCommon ()=delete
 
 GaudiCommon (const GaudiCommon &)=delete
 
StatusCode initialize () override
 standard initialization method More...
 
StatusCode finalize () override
 standard finalization method More...
 
GaudiCommonoperator= (const GaudiCommon &)=delete
 
StatusCode release (const IInterface *interface) const
 Manual forced (and 'safe') release of the active tool or service. More...
 
const Servicesservices () const
 get the list of aquired services More...
 
const std::stringcontext () const
 Returns the "context" string. Used to identify different processing states. More...
 
- Public Member Functions inherited from FixTESPath< Algorithm >
 FixTESPath (std::string name, ISvcLocator *pSvcLocator)
 Algorithm constructor - the SFINAE constraint below ensures that this is constructor is only defined if BASE derives from Algorithm. More...
 
 FixTESPath (std::string type, std::string name, const IInterface *ancestor)
 Tool constructor - SFINAE-ed to insure this constructor is only defined if BASE derives from AlgTool. More...
 
StatusCode initialize () override
 
const std::stringrootInTES () const
 Returns the "rootInTES" string. More...
 
std::string fullTESLocation (std::string_view location, bool useRootInTES) const
 Returns the full correct event location given the rootInTes settings. More...
 
- Public Member Functions inherited from Gaudi::details::LegacyAlgorithmAdapter
 LegacyAlgorithmAdapter (std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
 
const EventContextgetContext () const
 
bool isExecuted () const
 Has this algorithm been executed since the last reset? More...
 
void setExecuted (bool state) const
 Set the executed flag to the specified state. More...
 
bool filterPassed () const
 Did this algorithm pass or fail its filter criterion for the last event? More...
 
void setFilterPassed (bool state) const
 Set the filter passed flag to the specified state. More...
 
- Public Member Functions inherited from Gaudi::Algorithm
 Algorithm (std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
 Constructor. More...
 
StatusCode sysStart () override
 Reinitialization method invoked by the framework. More...
 
StatusCode sysInitialize () override
 Initialization method invoked by the framework. More...
 
StatusCode sysReinitialize () override
 Reinitialization method invoked by the framework. More...
 
StatusCode sysRestart () override
 Restart method invoked by the framework. More...
 
StatusCode sysExecute (const EventContext &ctx) override
 The actions to be performed by the algorithm on an event. More...
 
StatusCode sysStop () override
 System stop. More...
 
StatusCode sysFinalize () override
 System finalization. More...
 
const std::stringname () const override
 The identifying name of the algorithm object. More...
 
const Gaudi::StringKeynameKey () const override
 
const std::stringtype () const override
 The type of the algorithm object. More...
 
void setType (std::string type) override
 
const std::stringversion () const override
 
unsigned int index () const override
 
StatusCode configure () override
 Dummy implementation of IStateful::configure() method. More...
 
StatusCode terminate () override
 Dummy implementation of IStateful::terminate() method. More...
 
StatusCode initialize () override
 the default (empty) implementation of IStateful::initialize() method More...
 
StatusCode start () override
 the default (empty) implementation of IStateful::start() method More...
 
StatusCode stop () override
 the default (empty) implementation of IStateful::stop() method More...
 
StatusCode finalize () override
 the default (empty) implementation of IStateful::finalize() method More...
 
StatusCode reinitialize () override
 the default (empty) implementation of IStateful::reinitialize() method More...
 
StatusCode restart () override
 the default (empty) implementation of IStateful::restart() method More...
 
Gaudi::StateMachine::State FSMState () const override
 returns the current state of the algorithm More...
 
Gaudi::StateMachine::State targetFSMState () const override
 returns the state the algorithm will be in after the ongoing transition More...
 
bool isEnabled () const override
 Is this algorithm enabled or disabled? More...
 
bool isSequence () const override
 Are we a Sequence? More...
 
unsigned int errorCount () const
 Get the number of failures of the algorithm. More...
 
template<class T >
StatusCode service (std::string_view name, T *&psvc, bool createIf=true) const
 Access a service by name, creating it if it doesn't already exist. More...
 
template<class T >
StatusCode service (std::string_view svcType, std::string_view svcName, T *&psvc) const
 Access a service by name and type, creating it if it doesn't already exist. More...
 
SmartIF< IServiceservice (std::string_view name, const bool createIf=true, const bool quiet=false) const
 Return a pointer to the service identified by name (or "type/name") More...
 
template<class T >
SmartIF< T > service (std::string_view name, bool createIf=true, bool quiet=false) const
 
SmartIF< IAuditorSvc > & auditorSvc () const
 The standard auditor service.May not be invoked before sysInitialize() has been invoked. More...
 
SmartIF< IChronoStatSvc > & chronoSvc () const
 The standard Chrono & Stat service, Return a pointer to the service if present. More...
 
SmartIF< IDataProviderSvc > & detSvc () const
 The standard detector data service. More...
 
SmartIF< IConversionSvc > & detCnvSvc () const
 The standard detector data persistency conversion service. More...
 
SmartIF< IDataProviderSvc > & eventSvc () const
 The standard event data service. More...
 
SmartIF< IDataProviderSvc > & evtSvc () const
 shortcut for method eventSvc More...
 
SmartIF< IConversionSvc > & eventCnvSvc () const
 The standard event data persistency conversion service. More...
 
SmartIF< IHistogramSvc > & histoSvc () const
 The standard histogram service. More...
 
SmartIF< INTupleSvc > & ntupleSvc () const
 The standard N tuple service. More...
 
SmartIF< IRndmGenSvc > & randSvc () const
 The standard RandomGen service, Return a pointer to the service if present. More...
 
SmartIF< IToolSvc > & toolSvc () const
 The standard ToolSvc service, Return a pointer to the service if present. More...
 
SmartIF< IExceptionSvc > & exceptionSvc () const
 Get the exception Service. More...
 
SmartIF< IAlgContextSvc > & contextSvc () const
 get Algorithm Context Service More...
 
SmartIF< ITimelineSvc > & timelineSvc () const
 
SmartIF< ISvcLocator > & serviceLocator () const override
 The standard service locator. More...
 
SmartIF< ISvcLocator > & svcLoc () const
 shortcut for method serviceLocator More...
 
SmartIF< IHiveWhiteBoard > & whiteboard () const
 
SmartIF< IAlgExecStateSvc > & algExecStateSvc () const
 
bool registerContext () const
 register for Algorithm Context Service? More...
 
template<class T >
Gaudi::Details::PropertyBasedeclareProperty (const std::string &name, ToolHandle< T > &hndl, const std::string &doc="none")
 
template<class T >
Gaudi::Details::PropertyBasedeclareProperty (const std::string &name, ToolHandleArray< T > &hndlArr, const std::string &doc="none")
 
SmartIF< IMonitorSvc > & monitorSvc () const
 Access the monitor service. More...
 
template<class T >
void declareInfo (const std::string &name, const T &var, const std::string &desc) const
 Declare monitoring information. More...
 
void declareInfo (const std::string &name, const std::string &format, const void *var, int size, const std::string &desc) const
 Declare monitoring information (special case) More...
 
void acceptDHVisitor (IDataHandleVisitor *) const override
 
void registerTool (IAlgTool *tool) const
 
void deregisterTool (IAlgTool *tool) const
 
template<class T >
StatusCode declareTool (ToolHandle< T > &handle, bool createIf=true)
 
template<class T >
StatusCode declareTool (ToolHandle< T > &handle, std::string toolTypeAndName, bool createIf=true)
 
template<class T >
void addToolsArray (ToolHandleArray< T > &hndlArr)
 
const std::vector< IAlgTool * > & tools () const
 
bool isBlocking () const
 
void setBlocking (bool value)
 
unsigned int cardinality () const override
 Return the cardinality. More...
 
const std::vector< std::string > & neededResources () const override
 
AlgExecStateexecState (const EventContext &ctx) const override
 reference to AlgExecState of Alg More...
 
std::ostreamtoControlFlowExpression (std::ostream &os) const override
 Produce string represention of the control flow expression. More...
 
- Public Member Functions inherited from DataHandleHolderBase< PropertyHolder< CommonMessaging< implements< IAlgorithm, IDataHandleHolder, IProperty, IStateful > > > >
std::vector< Gaudi::DataHandle * > inputHandles () const override
 
std::vector< Gaudi::DataHandle * > outputHandles () const override
 
virtual const DataObjIDCollextraInputDeps () const override
 
virtual const DataObjIDCollextraOutputDeps () const override
 
void declare (Gaudi::DataHandle &handle) override
 
void renounce (Gaudi::DataHandle &handle) override
 
bool renounceInput (const DataObjID &id) override
 
const DataObjIDCollinputDataObjs () const override
 
const DataObjIDColloutputDataObjs () const override
 
void addDependency (const DataObjID &id, const Gaudi::DataHandle::Mode &mode) override
 
- Public Member Functions inherited from extends< PropertyHolder< CommonMessaging< implements< IAlgorithm, IDataHandleHolder, IProperty, IStateful > > >, IDataHandleHolder >
void * i_cast (const InterfaceID &tid) const override
 Implementation of IInterface::i_cast. More...
 
StatusCode queryInterface (const InterfaceID &ti, void **pp) override
 Implementation of IInterface::queryInterface. More...
 
std::vector< std::stringgetInterfaceNames () const override
 Implementation of IInterface::getInterfaceNames. More...
 
- Public Member Functions inherited from PropertyHolder< CommonMessaging< implements< IAlgorithm, IDataHandleHolder, IProperty, IStateful > > >
 PropertyHolder ()=default
 
Gaudi::Details::PropertyBasedeclareProperty (Gaudi::Details::PropertyBase &prop)
 Declare a property. More...
 
Gaudi::Details::PropertyBasedeclareProperty (const std::string &name, TYPE &value, const std::string &doc="none")
 Helper to wrap a regular data member and use it as a regular property. More...
 
Gaudi::Details::PropertyBasedeclareProperty (const std::string &name, Gaudi::Property< TYPE, VERIFIER, HANDLERS > &prop, const std::string &doc="none")
 Declare a PropertyBase instance setting name and documentation. More...
 
Gaudi::Details::PropertyBasedeclareRemoteProperty (const std::string &name, IProperty *rsvc, const std::string &rname="")
 Declare a remote property. More...
 
StatusCode setProperty (const std::string &name, const Gaudi::Details::PropertyBase &p) override
 set the property from another property with a different name More...
 
StatusCode setProperty (const std::string &s) override
 set the property from the formatted string More...
 
StatusCode setProperty (const Gaudi::Details::PropertyBase &p)
 Set the property from a property. More...
 
virtual StatusCode setProperty (const std::string &name, const Gaudi::Details::PropertyBase &p)=0
 Set the property from a property with a different name. More...
 
virtual StatusCode setProperty (const std::string &s)=0
 Set the property by string. More...
 
StatusCode setProperty (const std::string &name, const char *v)
 Special case for string literals. More...
 
StatusCode setProperty (const std::string &name, const std::string &v)
 Special case for std::string. More...
 
StatusCode setProperty (const std::string &name, const TYPE &value)
 set the property form the value More...
 
StatusCode setPropertyRepr (const std::string &n, const std::string &r) override
 set the property from name and value string representation More...
 
StatusCode getProperty (Gaudi::Details::PropertyBase *p) const override
 get the property More...
 
const Gaudi::Details::PropertyBasegetProperty (std::string_view name) const override
 get the property by name More...
 
StatusCode getProperty (std::string_view n, std::string &v) const override
 convert the property to the string More...
 
const std::vector< Gaudi::Details::PropertyBase * > & getProperties () const override
 get all properties More...
 
bool hasProperty (std::string_view name) const override
 Return true if we have a property with the given name. More...
 
Gaudi::Details::PropertyBaseproperty (std::string_view name) const
 \fixme property and bindPropertiesTo should be protected More...
 
void bindPropertiesTo (Gaudi::Interfaces::IOptionsSvc &optsSvc)
 
 PropertyHolder (const PropertyHolder &)=delete
 
PropertyHolderoperator= (const PropertyHolder &)=delete
 
- Public Member Functions inherited from CommonMessaging< implements< IAlgorithm, IDataHandleHolder, IProperty, IStateful > >
MSG::Level msgLevel () const
 get the cached level (originally extracted from the embedded MsgStream) More...
 
bool msgLevel (MSG::Level lvl) const
 get the output level from the embedded MsgStream More...
 

Private Member Functions

 CPUCruncher ()
 the default constructor is disabled More...
 
 CPUCruncher (const CPUCruncher &)
 the copy constructor is disabled More...
 
CPUCruncheroperator= (const CPUCruncher &)
 the assignement operator is disabled More...
 
void declareRuntimeRequestedOutputs ()
 The CPU intensive function. More...
 

Private Attributes

bool m_declAugmented { false }
 
Gaudi::Property< bool > m_loader { this, "Loader", false, "Declare the algorithm to be a data loader" }
 
Gaudi::Property< std::vector< std::string > > m_inpKeys { this, "inpKeys", {}, "" }
 
Gaudi::Property< std::vector< std::string > > m_outKeys { this, "outKeys", {}, "" }
 
Gaudi::Property< double > m_avg_runtime { this, "avgRuntime", 1., "Average runtime of the module." }
 
Gaudi::Property< double > m_var_runtime { this, "varRuntime", 0.01, "Variance of the runtime of the module." }
 
Gaudi::Property< bool > m_local_rndm_gen
 
Gaudi::Property< unsigned int > m_rwRepetitions { this, "RwRepetitions", 1, "Increase access to the WB" }
 
Gaudi::Property< float > m_sleepFraction
 
Gaudi::Property< bool > m_invertCFD { this, "InvertDecision", false, "Invert control flow decision." }
 
Gaudi::Property< unsigned int > m_failNEvents { this, "FailNEvents", 0, "Return FAILURE on every Nth event" }
 
Gaudi::Property< int > m_nParallel { this, "NParallel", -1, "Run N parallel crunching tasks" }
 
const uint MAX_INPUTS = 40
 
const uint MAX_OUTPUTS = 10
 
std::vector< DataObjectHandle< DataObject > * > m_inputHandles
 
std::vector< DataObjectHandle< DataObject > * > m_outputHandles
 
SmartIF< ICPUCrunchSvcm_crunchSvc
 

Static Private Attributes

static CHM m_name_ncopies_map
 

Additional Inherited Members

- Public Attributes inherited from Gaudi::Algorithm
friend AlgorithmManager
 
- Protected Types inherited from GaudiCommon< Algorithm >
using base_class = FixTESPath< Algorithm >
 
typedef std::map< std::string, StatEntity, std::less<> > StatisticsOwn
 the actual type of general counters More...
 
typedef std::map< std::string, std::reference_wrapper< Gaudi::Accumulators::PrintableCounter >, std::less<> > Statistics
 
typedef std::map< std::string, unsigned int, std::less<> > Counter
 the actual type error/warning counter More...
 
typedef std::vector< IAlgTool * > AlgTools
 storage for active tools More...
 
typedef std::vector< SmartIF< IService > > Services
 storage for active services More...
 
- Protected Member Functions inherited from GaudiCommon< Algorithm >
StatusCode releaseTool (const IAlgTool *tool) const
 manual forced (and 'safe') release of the tool More...
 
StatusCode releaseSvc (const IInterface *svc) const
 manual forced (and 'safe') release of the service More...
 
- Protected Member Functions inherited from Gaudi::details::LegacyAlgorithmAdapter
bool isReEntrant () const override
 
- Protected Member Functions inherited from Gaudi::Algorithm
std::vector< IAlgTool * > & tools ()
 
bool isInitialized () const override
 Has the Algorithm already been initialized? More...
 
bool isFinalized () const override
 Has the Algorithm already been finalized? More...
 
void setIndex (const unsigned int &idx) override
 set instantiation index of Alg More...
 
bool isReEntrant () const override
 
- Protected Member Functions inherited from DataHandleHolderBase< PropertyHolder< CommonMessaging< implements< IAlgorithm, IDataHandleHolder, IProperty, IStateful > > > >
void initDataHandleHolder ()
 initializes all handles - called by the sysInitialize method of any descendant of this More...
 
- Protected Member Functions inherited from CommonMessaging< implements< IAlgorithm, IDataHandleHolder, IProperty, IStateful > >
MSG::Level setUpMessaging () const
 Set up local caches. More...
 
MSG::Level resetMessaging ()
 Reinitialize internal states. More...
 
void updateMsgStreamOutputLevel (int level)
 Update the output level of the cached MsgStream. More...
 
- Protected Attributes inherited from GaudiCommon< Algorithm >
SmartIF< ICounterSummarySvcm_counterSummarySvc
 a pointer to the CounterSummarySvc More...
 
Gaudi::Property< bool > m_errorsPrint
 
Gaudi::Property< bool > m_propsPrint
 
Gaudi::Property< bool > m_typePrint
 
Gaudi::Property< std::stringm_context
 
Gaudi::Property< std::vector< std::string > > m_counterList
 
- Protected Attributes inherited from Gaudi::Algorithm
std::unique_ptr< IDataHandleVisitorm_updateDataHandles
 Hook for for derived classes to provide a custom visitor for data handles. More...
 
- Protected Attributes inherited from DataHandleHolderBase< PropertyHolder< CommonMessaging< implements< IAlgorithm, IDataHandleHolder, IProperty, IStateful > > > >
DataObjIDColl m_inputDataObjs
 
DataObjIDColl m_outputDataObjs
 
- Static Protected Attributes inherited from GaudiCommon< Algorithm >
static const bool IgnoreRootInTES
 Simple definition to be used with the new useRootInTES argument get<TYPE> and put methods. More...
 
static const bool UseRootInTES
 Simple definition to be used with the new useRootInTES argument get<TYPE> and put methods. More...
 

Detailed Description

A class that implements a search for prime numbers. A lot of allocations are performed on purpose not to stress only the FP unit of the CPU.

Definition at line 29 of file CPUCruncher.h.

Member Typedef Documentation

◆ CHM

typedef tbb::concurrent_hash_map<std::string, unsigned int> CPUCruncher::CHM

Definition at line 32 of file CPUCruncher.h.

Constructor & Destructor Documentation

◆ CPUCruncher() [1/3]

CPUCruncher::CPUCruncher ( const std::string name,
ISvcLocator pSvc 
)

Definition at line 35 of file CPUCruncher.cpp.

37  : GaudiAlgorithm( name, pSvc ) {
38 
39  // Register the algo in the static concurrent hash map in order to
40  // monitor the # of copies
41  CHM::accessor name_ninstances;
42  m_name_ncopies_map.insert( name_ninstances, name );
43  name_ninstances->second += 1;
44 }

◆ ~CPUCruncher()

CPUCruncher::~CPUCruncher ( )
virtual

virtual & protected desctrustor

Definition at line 46 of file CPUCruncher.cpp.

46  {
47  for ( uint i = 0; i < m_inputHandles.size(); ++i ) delete m_inputHandles[i];
48 
49  for ( uint i = 0; i < m_outputHandles.size(); ++i ) delete m_outputHandles[i];
50 }

◆ CPUCruncher() [2/3]

CPUCruncher::CPUCruncher ( )
private

the default constructor is disabled

◆ CPUCruncher() [3/3]

CPUCruncher::CPUCruncher ( const CPUCruncher )
private

the copy constructor is disabled

Member Function Documentation

◆ declareRuntimeRequestedOutputs()

void CPUCruncher::declareRuntimeRequestedOutputs ( )
private

The CPU intensive function.

Pick up late-attributed data outputs

Definition at line 91 of file CPUCruncher.cpp.

91  {
92  //
93  for ( const auto& k : outputDataObjs() ) {
94  auto outputHandle = new DataObjectHandle<DataObject>( k, Gaudi::DataHandle::Writer, this );
95  VERBOSE_MSG << "found late-attributed output: " << outputHandle->objKey() << endmsg;
96  m_outputHandles.push_back( outputHandle );
97  declareProperty( "dummy_out_" + outputHandle->objKey(), *( m_outputHandles.back() ) );
98  }
99 
101 
102  m_declAugmented = true;
103 }

◆ execute()

StatusCode CPUCruncher::execute ( )
overridevirtual

the execution of the algorithm

Reimplemented from GaudiAlgorithm.

Definition at line 107 of file CPUCruncher.cpp.

108 {
109 
111 
112  float crunchtime;
113 
114  if ( m_local_rndm_gen ) {
115  /* This will disappear with a thread safe random number generator service.
116  * Use basic Box-Muller to generate Gaussian random numbers.
117  * The quality is not good for in depth study given that the generator is a
118  * linear congruent.
119  * Throw away basically a free number: we are in a cpu cruncher after all.
120  * The seed is taken from the clock, but we could assign a seed per module to
121  * ensure reproducibility.
122  *
123  * This is not an overkill but rather an exercise towards a thread safe
124  * random number generation.
125  */
126 
127  auto getGausRandom = []( double mean, double sigma ) -> double {
128  unsigned int seed = std::clock();
129 
130  auto getUnifRandom = []( unsigned int& seed ) -> double {
131  // from "Numerical Recipes"
132  constexpr unsigned int m = 232;
133  constexpr unsigned int a = 1664525;
134  constexpr unsigned int c = 1013904223;
135  seed = ( a * seed + c ) % m;
136  const double unif = double( seed ) / m;
137  return unif;
138  };
139 
140  double unif1, unif2;
141  do {
142  unif1 = getUnifRandom( seed );
143  unif2 = getUnifRandom( seed );
144  } while ( unif1 == 0. );
145 
146  const double normal = sqrt( -2. * log( unif1 ) ) * cos( 2 * M_PI * unif2 );
147 
148  return normal * sigma + mean;
149  };
150 
151  crunchtime = fabs( getGausRandom( m_avg_runtime * ( 1. - m_sleepFraction ), m_var_runtime ) );
152  // End Of temp block
153  } else {
154  // Should be a member.
156  crunchtime = std::fabs( rndmgaus() );
157  }
158  unsigned int crunchtime_ms = 1000 * crunchtime;
159 
160  // Prepare to sleep (even if we won't enter the following if clause for sleeping).
161  // This is needed to distribute evenly among all algorithms the overhead (around sleeping) which is harmful when
162  // trying to achieve uniform distribution of algorithm timings.
163  const double dreamtime = m_avg_runtime * m_sleepFraction;
164  const std::chrono::duration<double> dreamtime_duration( dreamtime );
165  tbb::tick_count startSleeptbb;
166  tbb::tick_count endSleeptbb;
167 
168  // Start to measure the total time here, together with the dreaming process straight ahead
169  tbb::tick_count starttbb = tbb::tick_count::now();
170 
171  // If the algorithm was declared as CPU-blocking, we will replace requested part of crunching with plain sleeping
172  if ( isBlocking() ) {
173  // in this block (and not in other places around) msgLevel is checked for the same reason as above, when
174  // preparing to sleep several lines above: to reduce as much as possible the overhead around sleeping
175  DEBUG_MSG << "Dreaming time will be: " << int( 1000 * dreamtime ) << " ms" << endmsg;
176 
177  ON_DEBUG startSleeptbb = tbb::tick_count::now();
178  std::this_thread::sleep_for( dreamtime_duration );
179  ON_DEBUG endSleeptbb = tbb::tick_count::now();
180 
181  // actual sleeping time can be longer due to scheduling or resource contention delays
182  ON_DEBUG {
183  const double actualDreamTime = ( endSleeptbb - startSleeptbb ).seconds();
184  debug() << "Actual dreaming time was: " << int( 1000 * actualDreamTime ) << "ms" << endmsg;
185  }
186  } // end of "sleeping block"
187 
188  DEBUG_MSG << "Crunching time will be: " << crunchtime_ms << " ms" << endmsg;
190  DEBUG_MSG << "Start event " << context.evt() << " in slot " << context.slot() << " on pthreadID " << std::hex
191  << pthread_self() << std::dec << endmsg;
192 
193  VERBOSE_MSG << "inputs number: " << m_inputHandles.size() << endmsg;
194  for ( auto& inputHandle : m_inputHandles ) {
195  if ( !inputHandle->isValid() ) continue;
196 
197  VERBOSE_MSG << "get from TS: " << inputHandle->objKey() << endmsg;
198  DataObject* obj = nullptr;
199  for ( unsigned int i = 0; i < m_rwRepetitions; ++i ) { obj = inputHandle->get(); }
200  if ( obj == nullptr ) error() << "A read object was a null pointer." << endmsg;
201  }
202 
203  if ( m_nParallel > 1 ) {
204  tbb::parallel_for( tbb::blocked_range<size_t>( 0, m_nParallel ), [&]( tbb::blocked_range<size_t> r ) {
205  m_crunchSvc->crunch_for( std::chrono::milliseconds( crunchtime_ms ) );
206  debug() << "CPUCrunch complete in TBB parallel for block " << r.begin() << " to " << r.end() << endmsg;
207  } );
208  } else {
209  m_crunchSvc->crunch_for( std::chrono::milliseconds( crunchtime_ms ) );
210  }
211 
212  // Return error on fraction of events if configured
213  if ( m_failNEvents > 0 && context.evt() > 0 && ( context.evt() % m_failNEvents ) == 0 ) {
214  return StatusCode::FAILURE;
215  }
216 
217  VERBOSE_MSG << "outputs number: " << m_outputHandles.size() << endmsg;
218  for ( auto& outputHandle : m_outputHandles ) {
219  if ( !outputHandle->isValid() ) continue;
220 
221  VERBOSE_MSG << "put to TS: " << outputHandle->objKey() << endmsg;
222  outputHandle->put( std::make_unique<DataObject>() );
223  }
224 
225  tbb::tick_count endtbb = tbb::tick_count::now();
226  const double actualRuntime = ( endtbb - starttbb ).seconds();
227 
228  DEBUG_MSG << "Finish event " << context.evt() << " in " << int( 1000 * actualRuntime ) << " ms" << endmsg;
229 
230  DEBUG_MSG << "Timing: ExpectedCrunchtime= " << crunchtime_ms << " ms. ExpectedDreamtime= " << int( 1000 * dreamtime )
231  << " ms. ActualTotalRuntime= " << int( 1000 * actualRuntime )
232  << " ms. Ratio= " << ( crunchtime + dreamtime ) / actualRuntime << endmsg;
233 
235 
236  return StatusCode::SUCCESS;
237 }

◆ finalize()

StatusCode CPUCruncher::finalize ( )
override

the finalization of the algorithm

Definition at line 241 of file CPUCruncher.cpp.

242 {
243  MsgStream log( msgSvc(), name() );
244 
245  unsigned int ninstances;
246 
247  {
248  CHM::const_accessor const_name_ninstances;
249  m_name_ncopies_map.find( const_name_ninstances, name() );
250  ninstances = const_name_ninstances->second;
251  }
252 
253  constexpr double s2ms = 1000.;
254  // do not show repetitions
255  if ( ninstances != 0 ) {
256  info() << "Summary: name= " << name() << "\t avg_runtime= " << m_avg_runtime * s2ms << "\t n_clones= " << ninstances
257  << endmsg;
258 
259  CHM::accessor name_ninstances;
260  m_name_ncopies_map.find( name_ninstances, name() );
261  name_ninstances->second = 0;
262  }
263 
264  return GaudiAlgorithm::finalize();
265 }

◆ get_runtime()

double CPUCruncher::get_runtime ( ) const
inline

Definition at line 43 of file CPUCruncher.h.

43 { return m_avg_runtime; }

◆ initialize()

StatusCode CPUCruncher::initialize ( )
override

Its initialization.

Definition at line 52 of file CPUCruncher.cpp.

52  {
53  auto sc = GaudiAlgorithm::initialize();
54  if ( !sc ) return sc;
55 
56  m_crunchSvc = serviceLocator()->service( "CPUCrunchSvc" );
57  if ( !m_crunchSvc.isValid() ) {
58  fatal() << "unable to acquire CPUCruncSvc" << endmsg;
59  return StatusCode::FAILURE;
60  }
61 
62  // if an algorithm was setup to sleep, for whatever period, it effectively models CPU-blocking behavior
63  if ( m_sleepFraction != 0.0f ) setBlocking( true );
64 
65  // This is a bit ugly. There is no way to declare a vector of DataObjectHandles, so
66  // we need to wait until initialize when we've read in the input and output key
67  // properties, and know their size, and then turn them
68  // into Handles and register them with the framework by calling declareProperty. We
69  // could call declareInput/declareOutput on them too.
70 
71  int i = 0;
72  for ( auto k : m_inpKeys ) {
73  DEBUG_MSG << "adding input key " << k << endmsg;
75  declareProperty( "dummy_in_" + std::to_string( i ), *( m_inputHandles.back() ) );
76  i++;
77  }
78 
79  i = 0;
80  for ( auto k : m_outKeys ) {
81  DEBUG_MSG << "adding output key " << k << endmsg;
83  declareProperty( "dummy_out_" + std::to_string( i ), *( m_outputHandles.back() ) );
84  i++;
85  }
86 
87  return sc;
88 }

◆ isClonable()

bool CPUCruncher::isClonable ( ) const
inlineoverride

Definition at line 34 of file CPUCruncher.h.

34 { return true; }

◆ operator=()

CPUCruncher& CPUCruncher::operator= ( const CPUCruncher )
private

the assignement operator is disabled

Member Data Documentation

◆ m_avg_runtime

Gaudi::Property<double> CPUCruncher::m_avg_runtime { this, "avgRuntime", 1., "Average runtime of the module." }
private

Definition at line 68 of file CPUCruncher.h.

◆ m_crunchSvc

SmartIF<ICPUCrunchSvc> CPUCruncher::m_crunchSvc
private

Definition at line 90 of file CPUCruncher.h.

◆ m_declAugmented

bool CPUCruncher::m_declAugmented { false }
private

Definition at line 62 of file CPUCruncher.h.

◆ m_failNEvents

Gaudi::Property<unsigned int> CPUCruncher::m_failNEvents { this, "FailNEvents", 0, "Return FAILURE on every Nth event" }
private

Definition at line 77 of file CPUCruncher.h.

◆ m_inpKeys

Gaudi::Property<std::vector<std::string> > CPUCruncher::m_inpKeys { this, "inpKeys", {}, "" }
private

Definition at line 65 of file CPUCruncher.h.

◆ m_inputHandles

std::vector<DataObjectHandle<DataObject>*> CPUCruncher::m_inputHandles
private

Definition at line 84 of file CPUCruncher.h.

◆ m_invertCFD

Gaudi::Property<bool> CPUCruncher::m_invertCFD { this, "InvertDecision", false, "Invert control flow decision." }
private

Definition at line 76 of file CPUCruncher.h.

◆ m_loader

Gaudi::Property<bool> CPUCruncher::m_loader { this, "Loader", false, "Declare the algorithm to be a data loader" }
private

Definition at line 63 of file CPUCruncher.h.

◆ m_local_rndm_gen

Gaudi::Property<bool> CPUCruncher::m_local_rndm_gen
private
Initial value:
{ this, "localRndm", true,
"Decide if the local random generator is to be used" }

Definition at line 70 of file CPUCruncher.h.

◆ m_name_ncopies_map

CPUCruncher::CHM CPUCruncher::m_name_ncopies_map
staticprivate

Definition at line 87 of file CPUCruncher.h.

◆ m_nParallel

Gaudi::Property<int> CPUCruncher::m_nParallel { this, "NParallel", -1, "Run N parallel crunching tasks" }
private

Definition at line 78 of file CPUCruncher.h.

◆ m_outKeys

Gaudi::Property<std::vector<std::string> > CPUCruncher::m_outKeys { this, "outKeys", {}, "" }
private

Definition at line 66 of file CPUCruncher.h.

◆ m_outputHandles

std::vector<DataObjectHandle<DataObject>*> CPUCruncher::m_outputHandles
private

Definition at line 85 of file CPUCruncher.h.

◆ m_rwRepetitions

Gaudi::Property<unsigned int> CPUCruncher::m_rwRepetitions { this, "RwRepetitions", 1, "Increase access to the WB" }
private

Definition at line 72 of file CPUCruncher.h.

◆ m_sleepFraction

Gaudi::Property<float> CPUCruncher::m_sleepFraction
private
Initial value:
{
this, "SleepFraction", 0.0f,
"Fraction of time, between 0 and 1, when an algorithm is actually sleeping instead of crunching" }

Definition at line 73 of file CPUCruncher.h.

◆ m_var_runtime

Gaudi::Property<double> CPUCruncher::m_var_runtime { this, "varRuntime", 0.01, "Variance of the runtime of the module." }
private

Definition at line 69 of file CPUCruncher.h.

◆ MAX_INPUTS

const uint CPUCruncher::MAX_INPUTS = 40
private

Definition at line 81 of file CPUCruncher.h.

◆ MAX_OUTPUTS

const uint CPUCruncher::MAX_OUTPUTS = 10
private

Definition at line 82 of file CPUCruncher.h.


The documentation for this class was generated from the following files:
CPUCruncher::m_inpKeys
Gaudi::Property< std::vector< std::string > > m_inpKeys
Definition: CPUCruncher.h:65
Gaudi::Accumulators::sqrt
auto sqrt(std::chrono::duration< Rep, Period > d)
sqrt for std::chrono::duration
Definition: Counters.h:34
CPUCruncher::m_rwRepetitions
Gaudi::Property< unsigned int > m_rwRepetitions
Definition: CPUCruncher.h:72
std::this_thread::sleep_for
T sleep_for(T... args)
CPUCruncher::m_loader
Gaudi::Property< bool > m_loader
Definition: CPUCruncher.h:63
GaudiAlgorithm::GaudiAlgorithm
GaudiAlgorithm(std::string name, ISvcLocator *pSvcLocator)
Standard constructor.
Definition: GaudiAlgorithm.cpp:45
GaudiAlgorithm::finalize
StatusCode finalize() override
standard finalization method
Definition: GaudiAlgorithm.cpp:65
Gaudi.Configuration.log
log
Definition: Configuration.py:28
Gaudi::Algorithm::randSvc
SmartIF< IRndmGenSvc > & randSvc() const
The standard RandomGen service, Return a pointer to the service if present.
Definition: Algorithm.cpp:579
std::fabs
T fabs(T... args)
Gaudi::Hive::currentContext
GAUDI_API const EventContext & currentContext()
Definition: ThreadLocalContext.cpp:30
Gaudi::Algorithm::isBlocking
bool isBlocking() const
Definition: Algorithm.h:394
Gaudi::Algorithm::name
const std::string & name() const override
The identifying name of the algorithm object.
Definition: Algorithm.cpp:542
Gaudi::details::LegacyAlgorithmAdapter::setFilterPassed
void setFilterPassed(bool state) const
Set the filter passed flag to the specified state.
Definition: LegacyAlgorithm.cpp:30
std::cos
T cos(T... args)
std::vector::size
T size(T... args)
CPUCruncher::declareRuntimeRequestedOutputs
void declareRuntimeRequestedOutputs()
The CPU intensive function.
Definition: CPUCruncher.cpp:91
std::chrono::duration
Gaudi::Algorithm::declareProperty
Gaudi::Details::PropertyBase * declareProperty(const std::string &name, ToolHandle< T > &hndl, const std::string &doc="none")
Definition: Algorithm.h:302
Gaudi::Algorithm::serviceLocator
SmartIF< ISvcLocator > & serviceLocator() const override
The standard service locator.
Definition: Algorithm.cpp:586
CPUCruncher::m_invertCFD
Gaudi::Property< bool > m_invertCFD
Definition: CPUCruncher.h:76
gaudirun.c
c
Definition: gaudirun.py:525
std::vector::back
T back(T... args)
CPUCruncher::m_declAugmented
bool m_declAugmented
Definition: CPUCruncher.h:62
DataObjectHandle< DataObject >
Gaudi::DataHandle::Writer
@ Writer
Definition: DataHandle.h:40
CPUCruncher::m_var_runtime
Gaudi::Property< double > m_var_runtime
Definition: CPUCruncher.h:69
std::hex
T hex(T... args)
std::vector::push_back
T push_back(T... args)
std::clock
T clock(T... args)
CPUCruncher::m_failNEvents
Gaudi::Property< unsigned int > m_failNEvents
Definition: CPUCruncher.h:77
SmartIF::isValid
bool isValid() const
Allow for check if smart pointer is valid.
Definition: SmartIF.h:72
CPUCruncher::m_outKeys
Gaudi::Property< std::vector< std::string > > m_outKeys
Definition: CPUCruncher.h:66
DataHandleHolderBase< PropertyHolder< CommonMessaging< implements< IAlgorithm, IDataHandleHolder, IProperty, IStateful > > > >::initDataHandleHolder
void initDataHandleHolder()
initializes all handles - called by the sysInitialize method of any descendant of this
Definition: DataHandleHolderBase.h:94
Rndm::Gauss
Parameters for the Gauss random number generation.
Definition: RndmGenerators.h:32
HistoDumpEx.r
r
Definition: HistoDumpEx.py:20
Gaudi::Units::m
constexpr double m
Definition: SystemOfUnits.h:108
GaudiAlgorithm::initialize
StatusCode initialize() override
standard initialization method
Definition: GaudiAlgorithm.cpp:52
Gaudi::Algorithm::setBlocking
void setBlocking(bool value)
Definition: Algorithm.h:396
std::to_string
T to_string(T... args)
CPUCruncher::m_local_rndm_gen
Gaudi::Property< bool > m_local_rndm_gen
Definition: CPUCruncher.h:70
endmsg
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:203
GaudiPython.HistoUtils.mean
mean
Definition: HistoUtils.py:904
MsgStream
Definition: MsgStream.h:34
GaudiCommon< Algorithm >::context
const std::string & context() const
Returns the "context" string. Used to identify different processing states.
Definition: GaudiCommon.h:676
CPUCruncher::m_inputHandles
std::vector< DataObjectHandle< DataObject > * > m_inputHandles
Definition: CPUCruncher.h:84
ON_DEBUG
#define ON_DEBUG
Definition: CPUCruncher.cpp:27
CPUCruncher::m_name_ncopies_map
static CHM m_name_ncopies_map
Definition: CPUCruncher.h:87
StatusCode::SUCCESS
constexpr static const auto SUCCESS
Definition: StatusCode.h:100
DEBUG_MSG
#define DEBUG_MSG
Definition: CPUCruncher.cpp:28
CPUCruncher::m_avg_runtime
Gaudi::Property< double > m_avg_runtime
Definition: CPUCruncher.h:68
DataHandleHolderBase< PropertyHolder< CommonMessaging< implements< IAlgorithm, IDataHandleHolder, IProperty, IStateful > > > >::outputDataObjs
const DataObjIDColl & outputDataObjs() const override
Definition: DataHandleHolderBase.h:84
CPUCruncher::m_sleepFraction
Gaudi::Property< float > m_sleepFraction
Definition: CPUCruncher.h:73
EventContext
Definition: EventContext.h:34
DataObject
Definition: DataObject.h:40
Gaudi::DataHandle::Reader
@ Reader
Definition: DataHandle.h:40
CPUCruncher::m_crunchSvc
SmartIF< ICPUCrunchSvc > m_crunchSvc
Definition: CPUCruncher.h:90
AsyncIncidents.msgSvc
msgSvc
Definition: AsyncIncidents.py:34
StatusCode::FAILURE
constexpr static const auto FAILURE
Definition: StatusCode.h:101
VERBOSE_MSG
#define VERBOSE_MSG
Definition: CPUCruncher.cpp:31
CPUCruncher::m_outputHandles
std::vector< DataObjectHandle< DataObject > * > m_outputHandles
Definition: CPUCruncher.h:85
HiveRndm::HiveNumbers
Definition: HiveNumbers.h:38
CPUCruncher::m_nParallel
Gaudi::Property< int > m_nParallel
Definition: CPUCruncher.h:78