CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HistSpec.h
Go to the documentation of this file.
1 #ifndef Validation_EcalClusters_HistSpec_h
2 #define Validation_EcalClusters_HistSpec_h
3 
5 
6 struct HistSpec {
7  double min;
8  double max;
9  int bins;
10 
11  HistSpec(edm::ParameterSet const& _ps, std::string const& _suffix)
12  {
13  min = _ps.getParameter<double>("hist_min_" + _suffix);
14  max = _ps.getParameter<double>("hist_max_" + _suffix);
15  bins = _ps.getParameter<int>("hist_bins_" + _suffix);
16  }
17 };
18 
19 #endif
T getParameter(std::string const &) const
int bins
Definition: HistSpec.h:9
double max
Definition: HistSpec.h:8
double min
Definition: HistSpec.h:7
HistSpec(edm::ParameterSet const &_ps, std::string const &_suffix)
Definition: HistSpec.h:11