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());
43 for(
int i = 0;
i < 304517;
i++) getline (fLin, line);
49 for (
int istrip = 0; istrip < 15176; istrip++) {
51 sscanf(line.c_str(),
"%s %u",
strip, &stripId);
52 if(istrip < 10 || (istrip > 12239 && istrip < 12250))
std::cout <<
" string " << strip <<
" Id " << stripId;
56 if(istrip < 10 || (istrip > 12239 && istrip < 12250))
std::cout <<
" line " <<
line;
57 sscanf(line.c_str(),
"%x %x", &
Threshold, &LUTFgr);
58 if(istrip < 10 || (istrip > 12239 && istrip < 12250))
std::cout <<
" Threshold " << Threshold << std::endl;
64 if(istrip == 12239) getline (fLin, line);
70 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