#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, geometryCSVtoXML::line, EcalTPGFineGrainStripEE::Item::lut, popcon::PopConSourceHandler< EcalTPGFineGrainStripEE >::m_to_transfer, EcalTPGFineGrainStripEE::setValue(), AlCaHLTBitMon_QueryRunRegistry::string, digi_MixPreMix_cfi::strip, EcalTPGFineGrainStripEE::Item::threshold, and jetExtractorBlock_cff::Threshold.
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";
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 |