17 #include "Gaudi/Property.h"
20 #include "CLHEP/Units/SystemOfUnits.h"
21 #include "CLHEP/Random/RandGauss.h"
35 ISvcLocator* pSvcLocator ) :
45 "event number at which to actually do stuff" );
49 "switch between using a C-array and a std::vector");
65 return StatusCode::SUCCESS;
72 return StatusCode::SUCCESS;
82 typedef float ElemType;
85 const std::size_t
nmax = 1024*1024;
88 std::vector<ElemType> c1_array(
nmax);
89 for ( std::size_t
i = 0;
i!=
nmax; ++
i ) {
94 std::vector<ElemType> c2_array(
nmax);
95 for ( std::size_t
i = 0;
i!=
nmax; ++
i ) {
96 c2_array[
i] = -1*
static_cast<int>(
i);
101 ElemType c1_array[
nmax];
102 for ( std::size_t
i = 0;
i!=
nmax; ++
i ) {
108 ElemType c2_array[
nmax];
109 for ( std::size_t
i = 0;
i!=
nmax; ++
i ) {
110 c2_array[
i] = -1*
static_cast<int>(
i);
113 if (c2_array[0] > c1_array[0]) {
114 c2_array[0] = c1_array[0];
120 return StatusCode::SUCCESS;