Implements popcon::PopConSourceHandler< EcalTPGPhysicsConst >.
Definition at line 20 of file EcalTPGPhysicsConstfromFile.cc.
References gather_cfg::cout, DetId::Ecal, EcalBarrel, EcalEndcap, EcalTPGPhysicsConst::Item::EtSat, EcalTPGPhysicsConst::Item::FG_highRatio, EcalTPGPhysicsConst::Item::FG_highThreshold, EcalTPGPhysicsConst::Item::FG_lowRatio, EcalTPGPhysicsConst::Item::FG_lowThreshold, alignmentValidation::fname, mps_fire::i, B2GTnPMonitor_cfi::item, popcon::PopConSourceHandler< EcalTPGPhysicsConst >::lastPayload(), mps_splice::line, popcon::PopConSourceHandler< EcalTPGPhysicsConst >::m_to_transfer, jets_cff::payload, DetId::rawId(), EcalTPGPhysicsConst::setValue(), AlCaHLTBitMon_QueryRunRegistry::string, EcalTPGPhysicsConst::Item::ttf_threshold_High, and EcalTPGPhysicsConst::Item::ttf_threshold_Low.
21 std::cout <<
"------- EcalTPGPhysicsConstfromFile -> getNewObjects\n";
22 edm::LogInfo(
"EcalTPGPhysicsConstfromFile") <<
"Started GetNewObjects!!!";
28 std::cout <<
"LinPed which input IOV do you want " << std::endl;
31 std::ostringstream oss;
33 std::string fname =
"/afs/cern.ch/cms/ECAL/triggerTransp/TPG_beamv6_trans_" + oss.str() +
"_spikekill.txt";
34 fLin.open(fname.c_str());
35 if (!fLin.is_open()) {
36 std::cout <<
"ERROR : can't open file '" << fname << std::endl;
39 std::cout <<
" file " << fname <<
" opened" << std::endl;
41 for (
int i = 0;
i < 76;
i++)
49 float ETSat, TTThreshlow, TTThreshhigh, FG_lowThreshold, FG_highThreshold, FG_lowRatio, FG_highRatio;
51 sscanf(line.c_str(),
"%f %f %f", &ETSat, &TTThreshlow, &TTThreshhigh);
56 sscanf(line.c_str(),
"%f %f %f %f", &FG_lowThreshold, &FG_highThreshold, &FG_lowRatio, &FG_highRatio);
67 std::cout <<
" EE DetId " << line << std::endl;
71 sscanf(line.c_str(),
"%f %f %f", &ETSat, &TTThreshlow, &TTThreshhigh);
77 sscanf(line.c_str(),
"%f %f %f %f", &FG_lowThreshold, &FG_highThreshold, &FG_lowRatio, &FG_highRatio);
86 std::cout <<
"EcalTPGPhysicsConstfromFile - > end of getNewObjects -----------\n";
void setValue(const uint32_t &id, const Item &value)
edm::Ref< Container > Ref
OldContainer m_to_transfer
double ttf_threshold_High