5 std::vector<double> etaBins = cpset.
getParameter<std::vector<double>>(
"etaBins");
6 std::vector<double> ptBins = cpset.
getParameter<std::vector<double>>(
"ptBins");
8 etas.insert(
etas.end(), etaBins.begin(), etaBins.end());
9 pts.insert(
pts.end(), ptBins.begin(), ptBins.end());
14 "Bad number of calibration scales, pts.size() * etas.size() != scales.size()");
21 desc.
addUntracked<std::vector<double>>(
"etaBins", std::vector<double>{});
22 desc.
addUntracked<std::vector<double>>(
"ptBins", std::vector<double>{});
23 desc.
addUntracked<std::vector<double>>(
"scale", std::vector<double>{});
24 descriptions.
add(
"createIdealTkAlRecords", desc);
29 for (
unsigned int i = 0,
n =
pts.size();
i <
n; ++
i) {
36 for (
unsigned int i = 0, n =
etas.size();
i <
n; ++
i) {
37 if (abseta <
etas[
i]) {
43 if (ptBin == -1 || etaBin == -1)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
float operator()(const float pt, const float abseta) const
void setComment(std::string const &value)
T getParameter(std::string const &) const
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::vector< float > scales
int etaBin(const l1t::HGCalMulticluster *cl)
std::vector< float > etas