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;
void analyze(const edm::Event &, const edm::EventSetup &) override
bool put(const uint32_t &detID, Range input)
void appendSinceTime(T *payloadObj, cond::Time_t sinceTime, const std::string &recordName, bool withlogging=false)
bool isNewTagRequest(const std::string &recordName)
cond::Time_t beginOfTime() const
std::pair< ContainerIterator, ContainerIterator > Range
void createNewIOV(T *firstPayloadObj, cond::Time_t firstSinceTime, cond::Time_t firstTillTime, const std::string &recordName, bool withlogging=false)
cond::Time_t endOfTime() const
cond::Time_t currentTime() const
std::string fullPath() const
SiStripApvGainBuilder(const edm::ParameterSet &iConfig)