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!!!";
30 std::cout <<
"LinPed which input IOV do you want " << std::endl;
33 std::ostringstream oss;
35 std::string fname =
"/afs/cern.ch/cms/ECAL/triggerTransp/TPG_beamv6_trans_" + oss.str() +
"_spikekill.txt";
36 fLin.open(fname.c_str());
38 std::cout <<
"ERROR : can't open file '" << fname << std::endl;
41 std::cout <<
" file " << fname <<
" opened" << std::endl;
43 for(
int i = 0;
i < 76;
i++) getline (fLin, line);
50 float ETSat, TTThreshlow, TTThreshhigh, FG_lowThreshold, FG_highThreshold, FG_lowRatio, FG_highRatio;
52 sscanf(line.c_str(),
"%f %f %f", &ETSat, &TTThreshlow, &TTThreshhigh);
57 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
~EcalTPGPhysicsConstfromFile()
uint32_t rawId() const
get the raw id
payload
payload postfix for testing
double ttf_threshold_High
EcalTPGPhysicsConstfromFile(edm::ParameterSet const &)