3 #include <boost/cstdint.hpp>
10 edm::LogInfo(
"SiStripPedestalsGenerator") <<
"[SiStripPedestalsGenerator::SiStripPedestalsGenerator]";
15 edm::LogInfo(
"SiStripPedestalsGenerator") <<
"[SiStripPedestalsGenerator::~SiStripPedestalsGenerator]";
30 const std::map<uint32_t, SiStripDetInfoFileReader::DetInfo > DetInfos =
reader.getAllData();
32 for(std::map<uint32_t, SiStripDetInfoFileReader::DetInfo >::const_iterator it = DetInfos.begin(); it != DetInfos.end(); it++){
35 for(
unsigned short j=0;
j<128*it->second.nApvs;
j++){
37 if (count<printdebug_) {
38 edm::LogInfo(
"SiStripPedestalsFakeESSource::makePedestals(): ") <<
"detid: " << it->first <<
" strip: " <<
j <<
" ped: " << PedestalValue_ << std::endl;
40 obj->
setData(PedestalValue_,theSiStripVector);
43 if ( ! obj->
put(it->first, theSiStripVector) )
44 edm::LogError(
"SiStripPedestalsFakeESSource::produce ")<<
" detid already exists"<<std::endl;
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
SiStripPedestals * createObject()
std::vector< uint16_t > InputVector
~SiStripPedestalsGenerator()
bool put(const uint32_t &detID, InputVector &input)
SiStripPedestalsGenerator(const edm::ParameterSet &, const edm::ActivityRegistry &)
void setData(float ped, InputVector &vped)