CMS 3D CMS Logo

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  min = _ps.getParameter<double>("hist_min_" + _suffix);
13  max = _ps.getParameter<double>("hist_max_" + _suffix);
14  bins = _ps.getParameter<int>("hist_bins_" + _suffix);
15  }
16 };
17 
18 #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