10 #include "CLHEP/Random/RandFlat.h" 11 #include "CLHEP/Random/RandGauss.h" 30 : fp_(iConfig.getUntrackedParameter<
edm::FileInPath>(
"file",
32 printdebug_(iConfig.getUntrackedParameter<uint32_t>(
"printDebug", 1)) {}
38 <<
"... creating dummy SiStripPedestals Data for Run " <<
run <<
"\n " << std::endl;
45 const auto& DetInfos =
reader.getAllData();
47 for (
const auto& it : DetInfos) {
48 const auto& nAPVs = it.second.nApvs;
57 float ped = CLHEP::RandGauss::shoot(MeanPed, RmsPed);
60 edm::LogInfo(
"SiStripPedestalsBuilder") <<
"detid " << it.first <<
" \t" 61 <<
" strip " <<
strip <<
" \t" << ped <<
" \t" << std::endl;
62 obj.setData(ped, theSiStripVector);
66 if (!
obj.put(it.first, theSiStripVector))
68 <<
"[SiStripPedestalsBuilder::analyze] detid already exists" << std::endl;
81 edm::LogError(
"SiStripPedestalsBuilder") <<
"Service is unavailable" << std::endl;
std::string fullPath() const
#define DEFINE_FWK_MODULE(type)
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
SiStripDetInfo read(std::string filePath)
Log< level::Info, false > LogInfo
static constexpr char const *const kDefaultFile
~SiStripPedestalsBuilder() override=default
SiStripPedestalsBuilder(const edm::ParameterSet &iConfig)