#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(), geometryCSVtoXML::line, lumiPlot::lut, popcon::PopConSourceHandler< EcalTPGSpike >::m_to_transfer, jets_cff::payload, EcalTPGSpike::setValue(), AlCaHLTBitMon_QueryRunRegistry::string, jetExtractorBlock_cff::Threshold, and ecaldqm::towerId().
25 std::cout <<
"------- Ecal -> getNewObjects\n";
26 edm::LogInfo(
"EcalTPGSpikeThresholdfromFile") <<
"Started GetNewObjects!!!";
34 std::cout <<
"LinPed which input IOV do you want " << std::endl;
37 std::ostringstream oss;
39 std::string fname =
"/afs/cern.ch/cms/ECAL/triggerTransp/TPG_beamv6_trans_" + oss.str() +
"_spikekill.txt";
40 fLin.open(fname.c_str());
42 std::cout <<
"ERROR : can't open file '" << fname << std::endl;
45 std::cout <<
" file " << fname <<
" opened" << std::endl;
47 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
unsigned towerId(DetId const &)
std::string popcon::EcalTPGSpikeThresholdfromFile::id |
( |
| ) |
const |
|
inlineoverridevirtual |
std::string popcon::EcalTPGSpikeThresholdfromFile::m_name |
|
private |