#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 24 of file EcalTPGSpikeThresholdfromFile.cc.
References gather_cfg::cout, alignmentValidation::fname, mps_fire::i, popcon::PopConSourceHandler< EcalTPGSpike >::lastPayload(), mps_splice::line, lumiPlot::lut, popcon::PopConSourceHandler< EcalTPGSpike >::m_to_transfer, jets_cff::payload, EcalTPGSpike::setValue(), AlCaHLTBitMon_QueryRunRegistry::string, jetExtractorBlock_cff::Threshold, and DataFormats::L1THGCal::towerId.
25 std::cout <<
"------- Ecal -> getNewObjects\n";
26 edm::LogInfo(
"EcalTPGSpikeThresholdfromFile") <<
"Started GetNewObjects!!!";
33 std::cout <<
"LinPed which input IOV do you want " << std::endl;
36 std::ostringstream oss;
38 std::string fname =
"/afs/cern.ch/cms/ECAL/triggerTransp/TPG_beamv6_trans_" + oss.str() +
"_spikekill.txt";
39 fLin.open(fname.c_str());
41 std::cout <<
"ERROR : can't open file '" << fname << std::endl;
44 std::cout <<
" file " << fname <<
" opened" << std::endl;
46 for(
int i = 0;
i < 365223;
i++) getline (fLin, line);
50 for (
int istrip = 0; istrip < 2448; istrip++) {
52 sscanf(line.c_str(),
"%s %u", tow, &
towerId);
59 if(istrip < 10)
std::cout <<
" Threshold " << Threshold << std::endl;
67 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 |