16 nbinsX(ps.getUntrackedParameter<unsigned
int>(
"nbinsX", 0)),
17 nbinsY(ps.getUntrackedParameter<unsigned
int>(
"nbinsY", 0)),
18 xmin(ps.getUntrackedParameter<double>(
"xmin", 0)),
19 xmax(ps.getUntrackedParameter<double>(
"xmax", 0)),
20 ymin(ps.getUntrackedParameter<double>(
"ymin", 0)),
21 ymax(ps.getUntrackedParameter<double>(
"ymax", 0)),
24 binsX(binsXtmp.begin(), binsXtmp.
end()),
25 binsY(binsYtmp.begin(), binsYtmp.
end()) {}
30 const std::map<std::string, unsigned int> &
mapping) {
33 std::vector<unsigned int> map_values;
35 map_values.reserve(
mapping.size());
36 for (
auto const &imap :
mapping) {
37 map_values.push_back(imap.second);
39 unsigned int max_size = *std::max_element(map_values.begin(), map_values.end());
49 <<
"Could not find histogram definition for '" <<
name <<
"'" << std::endl;
T getParameter(std::string const &) const
std::vector< HistDefinition > HistDefinitions
Log< level::Error, false > LogError
const std::string names[nVars_]
std::vector< double > vdouble
HistDefinitions readHistDefinitions(const edm::ParameterSet &ps, const std::map< std::string, unsigned int > &mapping)
std::vector< std::string > getParameterNames() const