15 : m_name(ps.getUntrackedParameter<std::
string>(
"name",
"EcalTPGFineGrainStripfromFile")) {
17 std::cout <<
"EcalTPGFineGrainStripfromFile constructor\n" << std::endl;
25 std::cout <<
"------- Ecal -> getNewObjects\n";
26 edm::LogInfo(
"EcalTPGFineGrainStripfromFile") <<
"Started GetNewObjects!!!";
28 Ref payload= lastPayload();
34 std::cout <<
"LinPed which input IOV do you want " << std::endl;
37 std::ostringstream oss;
39 std::string fname =
"/afs/cern.ch/cms/ECAL/triggerTransp/TPG_beamv6_trans_" + oss.str() +
"_spikekill.txt";
40 fLin.open(fname.c_str());
42 std::cout <<
"ERROR : can't open file '" << fname << std::endl;
45 std::cout <<
" file " << fname <<
" opened" << std::endl;
47 for(
int i = 0;
i < 304517;
i++) getline (fLin, line);
49 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))
std::cout <<
" string " << strip <<
" Id " << stripId;
57 if(istrip < 10 || (istrip > 12239 && istrip < 12250))
std::cout <<
" line " <<
line;
58 sscanf(line.c_str(),
"%x %x", &Threshold, &LUTFgr);
59 if(istrip < 10 || (istrip > 12239 && istrip < 12250))
std::cout <<
" Threshold " << Threshold << std::endl;
65 if(istrip == 12239) getline (fLin, line);
71 std::cout <<
"Ecal -> end of getNewObjects -----------\n";
edm::Ref< Container > Ref
~EcalTPGFineGrainStripfromFile()
EcalTPGFineGrainStripfromFile(edm::ParameterSet const &)
void setValue(const uint32_t &id, const Item &value)