#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, B2GTnPMonitor_cfi::item, mps_splice::line, EcalTPGFineGrainStripEE::Item::lut, popcon::PopConSourceHandler< EcalTPGFineGrainStripEE >::m_to_transfer, EcalTPGFineGrainStripEE::setValue(), AlCaHLTBitMon_QueryRunRegistry::string, digitizers_cfi::strip, EcalTPGFineGrainStripEE::Item::threshold, and HLT_2018_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());
37 if (!fLin.is_open()) {
43 for (
int i = 0;
i < 304517;
i++)
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))
54 std::cout <<
" string " << strip <<
" Id " << stripId;
58 if (istrip < 10 || (istrip > 12239 && istrip < 12250))
60 sscanf(line.c_str(),
"%x %x", &
Threshold, &LUTFgr);
61 if (istrip < 10 || (istrip > 12239 && istrip < 12250))
62 std::cout <<
" Threshold " << Threshold << std::endl;
75 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 |