7 #include <tbb/concurrent_hash_map.h> 22 typedef tbb::concurrent_hash_map<std::string, unsigned int>
CHM;
69 this,
"SleepFraction", 0.0f,
70 "Fraction of time, between 0 and 1, when an algorithm is actually sleeping instead of crunching"};
StatusCode execute() override
the execution of the algorithm
Gaudi::Property< float > m_sleepFraction
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
const std::string & name() const override
The identifying name of the algorithm object.
A class that implements a search for prime numbers.
Implementation of property with value of concrete type.
Gaudi::Property< bool > m_loader
virtual ~CPUCruncher()
virtual & protected desctrustor
Header file for class GaudiAlgorithm.
void findPrimes(const unsigned long int)
The CPU intensive function.
Gaudi::Property< unsigned int > m_rwRepetitions
double get_runtime() const
std::vector< DataObjectHandle< DataObject > * > m_outputHandles
CPUCruncher & operator=(const CPUCruncher &)
the assignement operator is disabled
void calibrate()
Calibrate.
long unsigned int getNCaliIters(double)
tbb::concurrent_hash_map< std::string, unsigned int > CHM
static std::vector< unsigned int > m_niters_vect
static CHM m_name_ncopies_map
This class is used for returning status codes from appropriate routines.
Gaudi::Property< bool > m_invertCFD
The useful base class for data processing algorithms.
std::vector< DataObjectHandle< DataObject > * > m_inputHandles
static std::vector< double > m_times_vect
bool isClonable() const override
Gaudi::Property< bool > m_shortCalib
void declareRuntimeRequestedOutputs()
Pick up late-attributed data outputs.
Gaudi::Property< double > m_avg_runtime
StatusCode initialize() override
Its initialization.
CPUCruncher()
the default constructor is disabled
Gaudi::Property< unsigned int > m_failNEvents
Gaudi::Property< std::vector< std::string > > m_outKeys
Gaudi::Property< std::vector< std::string > > m_inpKeys
StatusCode finalize() override
the finalization of the algorithm
Gaudi::Property< bool > m_local_rndm_gen
Gaudi::Property< double > m_var_runtime