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!!!";
31 std::cout <<
"LinPed which input IOV do you want " << std::endl;
34 std::ostringstream oss;
37 fLin.open(
fname.c_str());
44 for(
int i = 0;
i < 304517;
i++) getline (fLin, line);
47 for (
int istrip = 0; istrip < 15176; istrip++) {
49 sscanf(line.c_str(),
"%s %u",
strip, &stripId);
50 if(istrip < 10 || (istrip > 12239 && istrip < 12250))
std::cout <<
" string " << strip <<
" Id " << stripId;
54 if(istrip < 10 || (istrip > 12239 && istrip < 12250))
std::cout <<
" line " <<
line;
55 sscanf(line.c_str(),
"%x %x", &
Threshold, &LUTFgr);
56 if(istrip < 10 || (istrip > 12239 && istrip < 12250))
std::cout <<
" Threshold " << Threshold << std::endl;
62 if(istrip == 12239) getline (fLin, line);
68 std::cout <<
"Ecal -> end of getNewObjects -----------\n";
T getParameter(std::string const &) const
EcalTPGFineGrainStripfromFile(edm::ParameterSet const &)
OldContainer m_to_transfer
void setValue(const uint32_t &id, const Item &value)
void getNewObjects() override
~EcalTPGFineGrainStripfromFile() override