15 : m_name(ps.getUntrackedParameter<
std::
string>(
"name",
"EcalTPGSpikeThresholdfromFile")) {
16 std::cout <<
"EcalTPGSpikeThresholdfromFile constructor\n" << std::endl;
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()) {
45 for (
int i = 0;
i < 365223;
i++)
50 for (
int istrip = 0; istrip < 2448; istrip++) {
68 m_to_transfer.push_back(std::make_pair(lut, fileIOV));
70 std::cout <<
"Ecal -> end of getNewObjects -----------\n";
void getNewObjects() override
~EcalTPGSpikeThresholdfromFile() override
void setValue(const uint32_t &id, const uint16_t &val)
unsigned towerId(DetId const &, EcalElectronicsMapping const *)
Log< level::Info, false > LogInfo
std::unique_ptr< EcalTPGSpike > Ref
EcalTPGSpikeThresholdfromFile(edm::ParameterSet const &)