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()) {
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);
53 item.ttf_threshold_Low = TTThreshlow;
54 item.ttf_threshold_High = TTThreshhigh;
56 sscanf(
line.c_str(),
"%f %f %f %f", &FG_lowThreshold, &FG_highThreshold, &FG_lowRatio, &FG_highRatio);
57 item.FG_lowThreshold = FG_lowThreshold;
58 item.FG_highThreshold = FG_highThreshold;
59 item.FG_lowRatio = FG_lowRatio;
60 item.FG_highRatio = FG_highRatio;
71 sscanf(
line.c_str(),
"%f %f %f", &ETSat, &TTThreshlow, &TTThreshhigh);
73 item.ttf_threshold_Low = TTThreshlow;
74 item.ttf_threshold_High = TTThreshhigh;
77 sscanf(
line.c_str(),
"%f %f %f %f", &FG_lowThreshold, &FG_highThreshold, &FG_lowRatio, &FG_highRatio);
78 item.FG_lowThreshold = FG_lowThreshold;
79 item.FG_highThreshold = FG_highThreshold;
80 item.FG_lowRatio = FG_lowRatio;
81 item.FG_highRatio = FG_highRatio;
84 m_to_transfer.push_back(std::make_pair(physC, fileIOV));
86 std::cout <<
"EcalTPGPhysicsConstfromFile - > end of getNewObjects -----------\n";
void setValue(const uint32_t &id, const Item &value)
void getNewObjects() override
Log< level::Info, false > LogInfo
constexpr uint32_t rawId() const
get the raw id
std::unique_ptr< EcalTPGPhysicsConst > Ref
EcalTPGPhysicsConstfromFile(edm::ParameterSet const &)
~EcalTPGPhysicsConstfromFile() override