2 #include "GaudiKernel/AlgFactory.h"
3 #include "GaudiKernel/IRndmGenSvc.h"
4 #include "GaudiKernel/RndmGenerators.h"
5 #include "GaudiAlg/GaudiAlgorithm.h"
6 #include "GaudiKernel/RegistryEntry.h"
8 #include <tbb/concurrent_hash_map.h>
26 typedef tbb::concurrent_hash_map<std::string,unsigned int>
CHM;
35 virtual const std::vector<std::string>
get_inputs();
37 virtual const std::vector<std::string>
get_outputs();
44 (
const std::string&
name ,
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
virtual StatusCode initialize()
Its initialization.
virtual ~CPUCruncher()
virtual & protected desctrustor
void findPrimes(const unsigned long int)
The CPU intensive function.
double get_runtime() const
CPUCruncher & operator=(const CPUCruncher &)
the assignement operator is disabled
void calibrate()
Calibrate.
virtual const std::vector< std::string > get_inputs()
Get the inputs.
virtual StatusCode execute()
the execution of the algorithm
long unsigned int getNCaliIters(double)
virtual StatusCode finalize()
the finalization of the algorithm
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.
The useful base class for data processing algorithms.
static std::vector< double > m_times_vect
std::vector< DataObjectHandle< DataObject > * > m_inputHandles
CPUCruncher()
the default constructor is disabled
unsigned int m_rwRepetitions
virtual const std::vector< std::string > get_outputs()
Get the outputs.
std::vector< DataObjectHandle< DataObject > * > m_outputHandles
tbb::concurrent_hash_map< std::string, unsigned int > CHM