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(
"SiStripApvGainBuilder") <<
"... creating dummy SiStripApvGain Data for Run " <<
run <<
"\n "
21 const std::map<uint32_t, SiStripDetInfoFileReader::DetInfo>& DetInfos =
reader.getAllData();
24 for (std::map<uint32_t, SiStripDetInfoFileReader::DetInfo>::const_iterator it = DetInfos.begin();
29 std::vector<float> theSiStripVector;
30 for (
unsigned short j = 0;
j < it->second.nApvs;
j++) {
31 float gain = (
j + 1) * 1000 + (CLHEP::RandFlat::shoot(1.) * 100);
33 edm::LogInfo(
"SiStripApvGainBuilder") <<
"detid " << it->first <<
" \t"
34 <<
" apv " <<
j <<
" \t" <<
gain <<
" \t" << std::endl;
35 theSiStripVector.push_back(
gain);
40 edm::LogError(
"SiStripApvGainBuilder") <<
"[SiStripApvGainBuilder::analyze] detid already exists" << std::endl;
54 edm::LogError(
"SiStripApvGainBuilder") <<
"Service is unavailable" << std::endl;