#include <EcalTPGSpikeThresholdfromFile.h>
popcon::EcalTPGSpikeThresholdfromFile::~EcalTPGSpikeThresholdfromFile |
( |
| ) |
|
|
override |
popcon::EcalTPGSpikeThresholdfromFile::EcalTPGSpikeThresholdfromFile |
( |
edm::ParameterSet const & |
| ) |
|
void popcon::EcalTPGSpikeThresholdfromFile::getNewObjects |
( |
| ) |
|
|
overridevirtual |
Implements popcon::PopConSourceHandler< EcalTPGSpike >.
Definition at line 23 of file EcalTPGSpikeThresholdfromFile.cc.
References gather_cfg::cout, alignmentValidation::fname, mps_fire::i, popcon::PopConSourceHandler< EcalTPGSpike >::lastPayload(), mps_splice::line, popcon::PopConSourceHandler< EcalTPGSpike >::m_to_transfer, jets_cff::payload, EcalTPGSpike::setValue(), AlCaHLTBitMon_QueryRunRegistry::string, HLT_2018_cff::Threshold, and DataFormats::L1THGCal::towerId.
24 std::cout <<
"------- Ecal -> getNewObjects\n";
25 edm::LogInfo(
"EcalTPGSpikeThresholdfromFile") <<
"Started GetNewObjects!!!";
32 std::cout <<
"LinPed which input IOV do you want " << std::endl;
35 std::ostringstream oss;
37 std::string fname =
"/afs/cern.ch/cms/ECAL/triggerTransp/TPG_beamv6_trans_" + oss.str() +
"_spikekill.txt";
38 fLin.open(fname.c_str());
39 if (!fLin.is_open()) {
40 std::cout <<
"ERROR : can't open file '" << fname << std::endl;
43 std::cout <<
" file " << fname <<
" opened" << std::endl;
45 for (
int i = 0;
i < 365223;
i++)
50 for (
int istrip = 0; istrip < 2448; istrip++) {
52 sscanf(line.c_str(),
"%s %u", tow, &
towerId);
62 std::cout <<
" Threshold " << Threshold << std::endl;
70 std::cout <<
"Ecal -> end of getNewObjects -----------\n";
edm::Ref< Container > Ref
void setValue(const uint32_t &id, const uint16_t &val)
OldContainer m_to_transfer
std::string popcon::EcalTPGSpikeThresholdfromFile::id |
( |
| ) |
const |
|
inlineoverridevirtual |
std::string popcon::EcalTPGSpikeThresholdfromFile::m_name |
|
private |