9 using std::setprecision;
61 ofstream scalesFile(
"L1CaloInputScales_cfi.py");
65 scalesFile <<
"import FWCore.ParameterSet.Config as cms\n" << endl;
67 scalesFile <<
"L1CaloInputScalesProducer =cms.ESProducer(\"L1CaloInputScalesProducer\"," << endl;
68 scalesFile <<
"L1EcalEtThresholdsPositiveEta = cms.vdouble(" << endl;
74 for (
unsigned short absIeta = 1; absIeta <= 28; absIeta++) {
79 scalesFile << setprecision(8) <<
output;
82 if (absIeta == 28 &&
input == 0xFF) {
84 }
else if (nEntries > 254) {
85 scalesFile <<
")+cms.vdouble(";
96 scalesFile << endl <<
"\tL1EcalEtThresholdsNegativeEta = cms.vdouble(" << endl;
100 for (
unsigned short absIeta = 1; absIeta <= 28; absIeta++) {
106 scalesFile << setprecision(8) <<
output;
109 if (absIeta == 28 &&
input == 0xFF) {
111 }
else if (nEntries > 254) {
112 scalesFile <<
")+cms.vdouble(";
123 scalesFile << endl <<
"\tL1HcalEtThresholdsPositiveEta = cms.vdouble(" << endl;
128 for (
unsigned short absIeta = 1; absIeta <= 32; absIeta++) {
131 scalesFile << setprecision(8) <<
output;
134 if (absIeta == 32 &&
input == 0xFF) {
136 }
else if (nEntries > 254) {
137 scalesFile <<
")+cms.vdouble(";
148 scalesFile << endl <<
"\tL1HcalEtThresholdsNegativeEta = cms.vdouble(" << endl;
152 for (
unsigned short absIeta = 1; absIeta <= 32; absIeta++) {
155 scalesFile << setprecision(8) <<
output;
158 if (absIeta == 32 &&
input == 0xFF) {
160 }
else if (nEntries > 254) {
161 scalesFile <<
")+cms.vdouble(";
170 scalesFile <<
")" << endl;