13 #include "CLHEP/Random/RandFlat.h" 14 #include "CLHEP/Random/RandGauss.h" 33 : fp_(iConfig.getUntrackedParameter<
edm::FileInPath>(
"file",
35 printdebug_(iConfig.getUntrackedParameter<uint32_t>(
"printDebug", 1)) {}
41 <<
"... creating dummy SiStripPedestals Data for Run " <<
run <<
"\n " << std::endl;
48 const auto& DetInfos =
reader.getAllData();
50 for (
const auto& it : DetInfos) {
51 const auto& nAPVs = it.second.nApvs;
60 float ped = CLHEP::RandGauss::shoot(MeanPed, RmsPed);
63 edm::LogInfo(
"SiStripPedestalsBuilder") <<
"detid " << it.first <<
" \t" 64 <<
" strip " <<
strip <<
" \t" << ped <<
" \t" << std::endl;
65 obj.setData(ped, theSiStripVector);
69 if (!
obj.put(it.first, theSiStripVector))
71 <<
"[SiStripPedestalsBuilder::analyze] detid already exists" << std::endl;
84 edm::LogError(
"SiStripPedestalsBuilder") <<
"Service is unavailable" << std::endl;
std::string fullPath() const
cond::Time_t beginOfTime() const
Log< level::Error, false > LogError
void createOneIOV(const T &payload, cond::Time_t firstSinceTime, const std::string &recordName)
void analyze(const edm::Event &, const edm::EventSetup &) override
void appendOneIOV(const T &payload, cond::Time_t sinceTime, const std::string &recordName)
std::vector< uint16_t > InputVector
bool isNewTagRequest(const std::string &recordName)
cond::Time_t currentTime() const
#define DEFINE_FWK_MODULE(type)
SiStripDetInfo read(std::string filePath)
Log< level::Info, false > LogInfo
static constexpr char const *const kDefaultFile
~SiStripPedestalsBuilder() override=default
SiStripPedestalsBuilder(const edm::ParameterSet &iConfig)