File indexing completed on 2024-04-06 12:32:01
0001 #ifndef Validation_EcalClusters_HistSpec_h
0002 #define Validation_EcalClusters_HistSpec_h
0003
0004 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0005
0006 struct HistSpec {
0007 double min;
0008 double max;
0009 int bins;
0010
0011 HistSpec(edm::ParameterSet const &_ps, std::string const &_suffix) {
0012 min = _ps.getParameter<double>("hist_min_" + _suffix);
0013 max = _ps.getParameter<double>("hist_max_" + _suffix);
0014 bins = _ps.getParameter<int>("hist_bins_" + _suffix);
0015 }
0016 };
0017
0018 #endif