12 : m_name(ps.getUntrackedParameter<
std::
string>(
"name",
"EcalTPGPhysicsConstfromFile")) {
14 std::cout <<
"EcalTPGPhysicsConstfromFile constructor" << std::endl;
22 std::cout <<
"------- EcalTPGPhysicsConstfromFile -> getNewObjects\n";
23 edm::LogInfo(
"EcalTPGPhysicsConstfromFile") <<
"Started GetNewObjects!!!";
29 std::cout <<
"LinPed which input IOV do you want " << std::endl;
32 std::ostringstream oss;
34 std::string fname =
"/afs/cern.ch/cms/ECAL/triggerTransp/TPG_beamv6_trans_" + oss.str() +
"_spikekill.txt";
35 fLin.open(fname.c_str());
37 std::cout <<
"ERROR : can't open file '" << fname << std::endl;
40 std::cout <<
" file " << fname <<
" opened" << std::endl;
42 for(
int i = 0;
i < 76;
i++) getline (fLin, line);
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