Implements edm::EDAnalyzer.
Definition at line 11 of file SiStripThresholdBuilder.cc.
15 <<
"... creating dummy SiStripThreshold Data for Run " <<
run <<
"\n " << std::endl;
21 const std::map<uint32_t, SiStripDetInfoFileReader::DetInfo>& DetInfos =
reader.getAllData();
24 for (std::map<uint32_t, SiStripDetInfoFileReader::DetInfo>::const_iterator it = DetInfos.begin();
31 while (strip < 128 * it->
second.nApvs) {
32 float lTh = (CLHEP::RandFlat::shoot(1.) * 64) / 5;
33 float hTh = (CLHEP::RandFlat::shoot(1.) * 64) / 5;
39 float cTh = (CLHEP::RandFlat::shoot(1.) * 30.);
41 obj->setData(
strip, lTh, hTh, cTh, theSiStripVector);
44 theSiStripVector.back().print(
ss);
46 <<
"detid: " << it->first <<
" \n"
47 <<
"firstStrip: " <<
strip <<
" \t"
48 <<
"lTh: " << lTh <<
" \t"
49 <<
"hTh: " << hTh <<
" \t"
50 <<
"cTh: " << cTh <<
" \t"
51 <<
"FirstStrip_and_Hth: " << theSiStripVector.back().FirstStrip_and_Hth <<
" \n"
52 <<
ss.str() << std::endl;
54 obj->setData(
strip + 1, lTh, hTh, theSiStripVector);
55 strip = (uint16_t)(CLHEP::RandFlat::shoot(
strip + 2, 128 * it->second.nApvs));
57 if (!
obj->put(it->first, theSiStripVector))
59 <<
"[SiStripThresholdBuilder::analyze] detid already exists" << std::endl;
73 edm::LogError(
"SiStripThresholdBuilder") <<
"Service is unavailable" << std::endl;
References cond::service::PoolDBOutputService::appendSinceTime(), cond::service::PoolDBOutputService::beginOfTime(), KineDebug3::count(), cond::service::PoolDBOutputService::createNewIOV(), cond::service::PoolDBOutputService::currentTime(), cond::service::PoolDBOutputService::endOfTime(), fp_, edm::FileInPath::fullPath(), edm::EventBase::id(), edm::Service< T >::isAvailable(), cond::service::PoolDBOutputService::isNewTagRequest(), getGTfromDQMFile::obj, printdebug_, DQM::reader, writedatasetfile::run, edm::EventID::run(), edm::second(), contentValuesCheck::ss, digitizers_cfi::strip, and createJobs::tmp.