7 algo_(0.,0.,
false,
false,
false,
false, 0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,
8 conf.getParameter<
std::vector<double> >(
"EBGrid"),
9 conf.getParameter<
std::vector<double> >(
"EBWeights"),
10 conf.getParameter<
std::vector<double> >(
"EEGrid"),
11 conf.getParameter<
std::vector<double> >(
"EEWeights"),
12 conf.getParameter<
std::vector<double> >(
"HBGrid"),
13 conf.getParameter<
std::vector<double> >(
"HBWeights"),
14 conf.getParameter<
std::vector<double> >(
"HESGrid"),
15 conf.getParameter<
std::vector<double> >(
"HESWeights"),
16 conf.getParameter<
std::vector<double> >(
"HEDGrid"),
17 conf.getParameter<
std::vector<double> >(
"HEDWeights"),
18 conf.getParameter<
std::vector<double> >(
"HOGrid"),
19 conf.getParameter<
std::vector<double> >(
"HOWeights"),
20 conf.getParameter<
std::vector<double> >(
"HF1Grid"),
21 conf.getParameter<
std::vector<double> >(
"HF1Weights"),
22 conf.getParameter<
std::vector<double> >(
"HF2Grid"),
23 conf.getParameter<
std::vector<double> >(
"HF2Weights"),
24 conf.getParameter<double>(
"EBWeight"),
25 conf.getParameter<double>(
"EEWeight"),
26 conf.getParameter<double>(
"HBWeight"),
27 conf.getParameter<double>(
"HESWeight"),
28 conf.getParameter<double>(
"HEDWeight"),
29 conf.getParameter<double>(
"HOWeight"),
30 conf.getParameter<double>(
"HF1Weight"),
31 conf.getParameter<double>(
"HF2Weight"),
33 conf.getParameter<
bool>(
"UseHO"),
35 conf.getParameter<
int>(
"MomConstrMethod"),
36 conf.getParameter<double>(
"MomHBDepth"),
37 conf.getParameter<double>(
"MomHEDepth"),
38 conf.getParameter<double>(
"MomEBDepth"),
39 conf.getParameter<double>(
"MomEEDepth"),
40 conf.getParameter<
int>(
"HcalPhase")
42 allowMissingInputs_(
false)
99 auto prod = std::make_unique<CaloTowerCollection>();
109 desc.
add<
double>(
"EBWeight", 1.0);
110 desc.
add<
double>(
"HBEScale", 50.0);
111 desc.
add<
double>(
"HEDWeight", 1.0);
112 desc.
add<
double>(
"EEWeight", 1.0);
113 desc.
add<
double>(
"HF1Weight", 1.0);
114 desc.
add<
double>(
"HOWeight", 1.0);
115 desc.
add<
double>(
"HESWeight", 1.0);
116 desc.
add<
double>(
"HF2Weight", 1.0);
117 desc.
add<
double>(
"HESEScale", 50.0);
118 desc.
add<
double>(
"HEDEScale", 50.0);
119 desc.
add<
double>(
"EBEScale", 50.0);
120 desc.
add<
double>(
"HBWeight", 1.0);
121 desc.
add<
double>(
"EEEScale", 50.0);
122 desc.
add<
double>(
"MomHBDepth", 0.2);
123 desc.
add<
double>(
"MomHEDepth", 0.4);
124 desc.
add<
double>(
"MomEBDepth", 0.3);
125 desc.
add<
double>(
"MomEEDepth", 0.0);
126 desc.
add<std::vector<double> >(
"HBGrid", {0.0, 2.0, 4.0, 5.0, 9.0, 20.0, 30.0, 50.0, 100.0, 1000.0});
127 desc.
add<std::vector<double> >(
"EEWeights", {0.51, 1.39, 1.71, 2.37, 2.32, 2.2, 2.1, 1.98, 1.8});
128 desc.
add<std::vector<double> >(
"HF2Weights", {1.0, 1.0, 1.0, 1.0, 1.0});
129 desc.
add<std::vector<double> >(
"HOWeights", {1.0, 1.0, 1.0, 1.0, 1.0});
130 desc.
add<std::vector<double> >(
"EEGrid", {2.0, 4.0, 5.0, 9.0, 20.0, 30.0, 50.0, 100.0, 300.0});
131 desc.
add<std::vector<double> >(
"HBWeights", {2.0, 1.86, 1.69, 1.55, 1.37, 1.19, 1.13, 1.11, 1.09, 1.0});
132 desc.
add<std::vector<double> >(
"HF2Grid", {-1.0, 1.0, 10.0, 100.0, 1000.0});
133 desc.
add<std::vector<double> >(
"HEDWeights", {1.7, 1.57, 1.54, 1.49, 1.41, 1.26, 1.19, 1.15, 1.12, 1.0});
134 desc.
add<std::vector<double> >(
"HF1Grid", {-1.0, 1.0, 10.0, 100.0, 1000.0});
135 desc.
add<std::vector<double> >(
"EBWeights", {0.86, 1.47, 1.66, 2.01, 1.98, 1.86, 1.83, 1.74, 1.65});
136 desc.
add<std::vector<double> >(
"HF1Weights", {1.0, 1.0, 1.0, 1.0, 1.0});
137 desc.
add<std::vector<double> >(
"HESGrid", {0.0, 2.0, 4.0, 5.0, 9.0, 20.0, 30.0, 50.0, 100.0, 1000.0});
138 desc.
add<std::vector<double> >(
"HESWeights", {1.7, 1.57, 1.54, 1.49, 1.41, 1.26, 1.19, 1.15, 1.12, 1.0});
139 desc.
add<std::vector<double> >(
"HEDGrid", {0.0, 2.0, 4.0, 5.0, 9.0, 20.0, 30.0, 50.0, 100.0, 1000.0});
140 desc.
add<std::vector<double> >(
"HOGrid", {-1.0, 1.0, 10.0, 100.0, 1000.0});
141 desc.
add<std::vector<double> >(
"EBGrid", {2.0, 4.0, 5.0, 9.0, 20.0, 30.0, 50.0, 100.0, 300.0});
143 desc.
add<
int>(
"MomConstrMethod", 1);
144 desc.
add<
int>(
"HcalPhase", 0);
T getParameter(std::string const &) const
CaloTowersReCreator(const edm::ParameterSet &ps)
CaloTowersCreationAlgo algo_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void setHF1EScale(double scale)
void setHF2EScale(double scale)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void setHBEScale(double scale)
void setGeometry(const CaloTowerTopology *cttopo, const CaloTowerConstituentsMap *ctmap, const HcalTopology *htopo, const CaloGeometry *geo)
void addDefault(ParameterSetDescription const &psetDescription)
void rescaleTowers(const CaloTowerCollection &ctInput, CaloTowerCollection &ctResult)
edm::EDGetTokenT< CaloTowerCollection > tok_calo_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void setHESEScale(double scale)
void setHEDEScale(double scale)
void setEEEScale(double scale)
void produce(edm::Event &e, const edm::EventSetup &c) override
void setHOEScale(double scale)
void setEBEScale(double scale)
T const * product() const