15 #include "boost/tokenizer.hpp"
18 #include <sys/types.h>
27 actionId_(pset.getUntrackedParameter<int>(
"defaultAction",-1)),
28 intqualifier_(pset.getUntrackedParameter<int>(
"defaultQualifier",0)),
29 actionRequired_(actionId_!=-1)
40 timingHisto_ =
new TH1D(
"timingHisto_",
"Total time for all modules per event",100,0,1000);
151 unsigned int iterations = 0;
160 ::usleep(intqualifier_*1000);
166 throw cms::Exception(qualifier_) <<
"This exception was generated by the ExceptionGenerator";
178 while(1){ind+=
step;
if(ind>1000000) step = -1;
if(ind==0) step = 1;}
187 for(
unsigned int j=0;
j<intqualifier_*1000;
j++){
192 iterations =
static_cast<unsigned int>(
193 timingHisto_->GetRandom() * intqualifier_*17. + 0.5
195 for(
unsigned int j=0;
j<iterations;
j++){
201 iterations =
static_cast<unsigned int>(
202 timingHisto_->GetRandom() * intqualifier_*12. + 0.5
204 TRandom3
random(iterations);
205 const size_t dataSize = 32*500;
206 std::vector<double>
data(dataSize);
207 random.RndmArray(dataSize, &data[0]);
209 for(
unsigned int j=0;
j<iterations;
j++){
210 const size_t index =
static_cast<size_t>(random.Rndm() * dataSize + 0.5);
213 if ( random.Rndm() < 0.1 )
221 gettimeofday(&tv_now,0);
222 if ((
unsigned)(tv_now.tv_sec-tv_start_.tv_sec)>intqualifier_)
227 void *vp = malloc(1024);
228 memset((
char *)vp - 32, 0, 1024);
void __attribute__((optimize("O0"))) ExceptionGenerator
void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
char data[epos_bytes_allocation]
void beginRun(edm::Run &r, const edm::EventSetup &iSetup)