7 : fp_(iConfig.getUntrackedParameter<
edm::FileInPath>(
8 "file",
edm::FileInPath(
"CalibTracker/SiStripCommon/data/SiStripDetInfo.dat"))),
9 printdebug_(iConfig.getUntrackedParameter<uint32_t>(
"printDebug", 1)) {}
14 edm::LogInfo(
"SiStripNoisesBuilder") <<
"... creating dummy SiStripNoises Data for Run " <<
run <<
"\n " << std::endl;
20 const std::map<uint32_t, SiStripDetInfoFileReader::DetInfo>& DetInfos =
reader.getAllData();
23 for (std::map<uint32_t, SiStripDetInfoFileReader::DetInfo>::const_iterator it = DetInfos.begin();
32 float noise = CLHEP::RandGauss::shoot(MeanNoise, RmsNoise);
37 obj->setData(
noise, theSiStripVector);
40 <<
"detid " << it->first <<
" \t"
41 <<
" strip " <<
strip <<
" \t" <<
noise <<
" \t" << theSiStripVector.back() / 10 <<
" \t" << std::endl;
44 if (!
obj->put(it->first, theSiStripVector))
45 edm::LogError(
"SiStripNoisesBuilder") <<
"[SiStripNoisesBuilder::analyze] detid already exists" << std::endl;
60 edm::LogError(
"SiStripNoisesBuilder") <<
"Service is unavailable" << std::endl;