15 : m_name(ps.getUntrackedParameter<std::
string>(
"name",
"EcalTPGFineGrainStripfromFile")) {
18 std::cout <<
"EcalTPGFineGrainStripfromFile constructor\n" << std::endl;
26 std::cout <<
"------- Ecal -> getNewObjects\n";
27 edm::LogInfo(
"EcalTPGFineGrainStripfromFile") <<
"Started GetNewObjects!!!";
30 std::cout <<
"LinPed which input IOV do you want " << std::endl;
33 std::ostringstream oss;
36 fLin.open(
fname.c_str());
37 if (!fLin.is_open()) {
43 for (
int i = 0;
i < 304517;
i++)
46 unsigned int stripId, Threshold, LUTFgr;
50 for (
int istrip = 0; istrip < 15176; istrip++) {
52 sscanf(line.c_str(),
"%s %u",
strip, &stripId);
53 if (istrip < 10 || (istrip > 12239 && istrip < 12250))
54 std::cout <<
" string " << strip <<
" Id " << stripId;
58 if (istrip < 10 || (istrip > 12239 && istrip < 12250))
60 sscanf(line.c_str(),
"%x %x", &Threshold, &LUTFgr);
61 if (istrip < 10 || (istrip > 12239 && istrip < 12250))
62 std::cout <<
" Threshold " << Threshold << std::endl;
73 m_to_transfer.push_back(std::make_pair(fgrStripEE, fileIOV));
75 std::cout <<
"Ecal -> end of getNewObjects -----------\n";
EcalTPGFineGrainStripfromFile(edm::ParameterSet const &)
void setValue(const uint32_t &id, const Item &value)
void getNewObjects() override
Log< level::Info, false > LogInfo
~EcalTPGFineGrainStripfromFile() override
T getParameter(std::string const &) const