7 : fp_(iConfig.getUntrackedParameter<
edm::FileInPath>(
8 "file",
edm::FileInPath(
"CalibTracker/SiStripCommon/data/SiStripDetInfo.dat"))),
9 printdebug_(iConfig.getUntrackedParameter<uint32_t>(
"printDebug", 1)) {}
15 <<
"... creating dummy SiStripPedestals 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();
34 float ped = CLHEP::RandGauss::shoot(MeanPed, RmsPed);
37 edm::LogInfo(
"SiStripPedestalsBuilder") <<
"detid " << it->first <<
" \t" 38 <<
" strip " <<
strip <<
" \t" << ped <<
" \t" << std::endl;
39 obj->
setData(ped, theSiStripVector);
43 if (!obj->
put(it->first, theSiStripVector))
45 <<
"[SiStripPedestalsBuilder::analyze] detid already exists" << std::endl;
60 edm::LogError(
"SiStripPedestalsBuilder") <<
"Service is unavailable" << std::endl;
void analyze(const edm::Event &, const edm::EventSetup &) override
void appendSinceTime(T *payloadObj, cond::Time_t sinceTime, const std::string &recordName, bool withlogging=false)
std::vector< uint16_t > InputVector
bool isNewTagRequest(const std::string &recordName)
cond::Time_t beginOfTime() const
void createNewIOV(T *firstPayloadObj, cond::Time_t firstSinceTime, cond::Time_t firstTillTime, const std::string &recordName, bool withlogging=false)
bool put(const uint32_t &detID, InputVector &input)
cond::Time_t endOfTime() const
void setData(float ped, InputVector &vped)
cond::Time_t currentTime() const
std::string fullPath() const
SiStripPedestalsBuilder(const edm::ParameterSet &iConfig)