15#include "Gaudi/Property.h"
18#include "CLHEP/Units/SystemOfUnits.h"
19#include "CLHEP/Random/RandGauss.h"
34 typedef float ElemType;
37 const std::size_t
nmax = 1024*1024;
40 std::vector<ElemType> c1_array(
nmax);
41 for ( std::size_t i = 0; i!=
nmax; ++i ) {
46 std::vector<ElemType> c2_array(
nmax);
47 for ( std::size_t i = 0; i!=
nmax; ++i ) {
48 c2_array[i] = -1*
static_cast<int>(i);
53 ElemType c1_array[
nmax];
54 for ( std::size_t i = 0; i!=
nmax; ++i ) {
60 ElemType c2_array[
nmax];
61 for ( std::size_t i = 0; i!=
nmax; ++i ) {
62 c2_array[i] = -1*
static_cast<int>(i);
65 if (c2_array[0] > c1_array[0]) {
66 c2_array[0] = c1_array[0];
72 return StatusCode::SUCCESS;
virtual void isUsed(const void *)
unsigned int m_currentEvtNbr
current event number
Gaudi::Property< bool > m_useStdVector
switch between using a C-array and a std::vector
virtual StatusCode execute() override
Gaudi::Property< unsigned int > m_evtNbr
event number at which to actually do stuff
PerfMonTestPolyVectorAlg.h Example for the memory optimization tutorial.