7 : fp_(iConfig.getUntrackedParameter<
edm::FileInPath>(
"file",
9 printdebug_(iConfig.getUntrackedParameter<uint32_t>(
"printDebug", 3)) {}
15 <<
"... creating dummy SiStripThreshold Data for Run " <<
run <<
"\n " << std::endl;
25 while (
strip < 128 * it.second.nApvs) {
26 float lTh = (CLHEP::RandFlat::shoot(1.) * 64) / 5;
27 float hTh = (CLHEP::RandFlat::shoot(1.) * 64) / 5;
33 float cTh = (CLHEP::RandFlat::shoot(1.) * 30.);
35 obj->setData(
strip, lTh, hTh, cTh, theSiStripVector);
38 theSiStripVector.back().print(
ss);
40 <<
"detid: " << it.first <<
" \n"
41 <<
"firstStrip: " <<
strip <<
" \t"
42 <<
"lTh: " << lTh <<
" \t"
43 <<
"hTh: " << hTh <<
" \t"
44 <<
"cTh: " << cTh <<
" \t"
45 <<
"FirstStrip_and_Hth: " << theSiStripVector.back().FirstStrip_and_Hth <<
" \n"
46 <<
ss.str() << std::endl;
48 obj->setData(
strip + 1, lTh, hTh, theSiStripVector);
49 strip = (uint16_t)(CLHEP::RandFlat::shoot(
strip + 2, 128 * it.second.nApvs));
51 if (!
obj->put(it.first, theSiStripVector))
53 <<
"[SiStripThresholdBuilder::analyze] detid already exists" << std::endl;
67 edm::LogError(
"SiStripThresholdBuilder") <<
"Service is unavailable" << std::endl;