12 : m_name(ps.getUntrackedParameter<
std::
string>(
"name",
"EcalTPGPhysicsConstfromFile")) {
13 std::cout <<
"EcalTPGPhysicsConstfromFile constructor" << std::endl;
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
constexpr uint32_t rawId() const
get the raw id
OldContainer m_to_transfer
void getNewObjects() override
double ttf_threshold_High
EcalTPGPhysicsConstfromFile(edm::ParameterSet const &)
~EcalTPGPhysicsConstfromFile() override