62 : m_record(iConfig.getParameter<
std::
string>(
"record")),
63 m_SnapshotInputs(iConfig.getParameter<
std::
string>(
"snapshots")),
64 printdebug_(iConfig.getUntrackedParameter<
bool>(
"printDebug",
false)),
65 addDefault_(iConfig.getUntrackedParameter<
bool>(
"addDefault",
false)) {
84 unsigned int thedetid(0);
88 if (mysnapshots.is_open()) {
89 while (getline(mysnapshots,
line)) {
93 std::istringstream iss(
line);
94 unsigned int run,
ls, detid, fed, link, roc_first, roc_last;
95 iss >>
run >>
ls >> detid >> fed >> link >> roc_first >> roc_last;
101 edm::LogVerbatim(
"SiPixelFEDChannelContainerWriteFromASCII") <<
"================================" << std::endl;
103 <<
"found a new scenario: " << newscenario << std::endl;
106 <<
"size of the fed channel vector: " << theBadFEDChannels.size() << std::endl;
108 <<
"================================" << std::endl;
110 theBadFEDChannels.clear();
115 if (detid != thedetid) {
117 edm::LogVerbatim(
"SiPixelFEDChannelContainerWriteFromASCII") <<
"found a new detid!" << detid << std::endl;
121 theBadFEDChannels[thedetid].push_back(theBadChannel);
128 edm::LogInfo(
"SiPixelFEDChannelContainerWriteFromASCII") <<
"Content of SiPixelFEDChannelContainer " << std::endl;
143 edm::LogInfo(
"SiPixelFEDChannelContainerWriteFromASCII")
144 <<
"Size of SiPixelFEDChannelContainer object " <<
myQualities->
size() << std::endl
159 desc.setComment(
"Writes payloads of type SiPixelFEDChannelContainer from input ASCII files");
160 desc.addUntracked<
bool>(
"printDebug",
true);
161 desc.addUntracked<
bool>(
"addDefault",
true);
164 descriptions.
add(
"SiPixelFEDChannelContainerWriteFromASCII",
desc);
const std::string m_SnapshotInputs
Log< level::Info, true > LogVerbatim
~SiPixelFEDChannelContainerWriteFromASCII() override
void analyze(const edm::Event &, const edm::EventSetup &) override
static std::string to_string(const XMLCh *ch)
SiPixelFEDChannelContainer * myQualities
unsigned long long Time_t
cond::Time_t currentTime() const
Hash writeOneIOV(const T &payload, Time_t time, const std::string &recordName)
const std::string m_record
#define DEFINE_FWK_MODULE(type)
Log< level::Info, false > LogInfo
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void setScenario(const std::string &theScenarioId, const SiPixelFEDChannelCollection &theBadFEDChannels)
SiPixelFEDChannelContainerWriteFromASCII(const edm::ParameterSet &)
std::map< DetId, std::vector< PixelFEDChannel > > SiPixelFEDChannelCollection