#include <EcalTPGFineGrainStripfromFile.h>
popcon::EcalTPGFineGrainStripfromFile::~EcalTPGFineGrainStripfromFile |
( |
| ) |
|
|
override |
popcon::EcalTPGFineGrainStripfromFile::EcalTPGFineGrainStripfromFile |
( |
edm::ParameterSet const & |
| ) |
|
void popcon::EcalTPGFineGrainStripfromFile::getNewObjects |
( |
| ) |
|
|
overridevirtual |
Implements popcon::PopConSourceHandler< EcalTPGFineGrainStripEE >.
Definition at line 25 of file EcalTPGFineGrainStripfromFile.cc.
References gather_cfg::cout, fname, mps_fire::i, mps_splice::line, EcalTPGFineGrainStripEE::Item::lut, popcon::PopConSourceHandler< EcalTPGFineGrainStripEE >::m_to_transfer, EcalTPGFineGrainStripEE::setValue(), AlCaHLTBitMon_QueryRunRegistry::string, digitizers_cfi::strip, EcalTPGFineGrainStripEE::Item::threshold, and jetExtractorBlock_cff::Threshold.
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";
OldContainer m_to_transfer
void setValue(const uint32_t &id, const Item &value)
std::string popcon::EcalTPGFineGrainStripfromFile::id |
( |
| ) |
const |
|
inlineoverridevirtual |
std::string popcon::EcalTPGFineGrainStripfromFile::fname |
|
private |
std::string popcon::EcalTPGFineGrainStripfromFile::m_name |
|
private |