Definition at line 148 of file ExceptionGenerator.cc.
References AlCaHLTBitMon_QueryRunRegistry::data, Exception, cmsRelvalreport::exit, cmsHarvester::index, j, dqm-mbProfile::log, pi, random, mathSSE::sqrt(), relval_parameters_module::step, and relativeConstraints::value.
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);
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);