CMS 3D CMS Logo

EnsembleCalibrationLA.h
Go to the documentation of this file.
1 #ifndef CalibTracker_SiStripLorentzAngle_EnsembleCalibrationLA_h
2 #define CalibTracker_SiStripLorentzAngle_EnsembleCalibrationLA_h
3 
8 
9 namespace sistrip {
10  class EnsembleCalibrationLA : public edm::one::EDAnalyzer<edm::one::WatchRuns> {
11  public:
13  void analyze(const edm::Event&, const edm::EventSetup&) override {}
14  void beginRun(const edm::Run&, const edm::EventSetup&) override;
15  void endRun(const edm::Run&, const edm::EventSetup&) override;
16  void endJob() override;
17 
18  ~EnsembleCalibrationLA() override;
19 
20  private:
21  void write_ensembles_text(const Book&);
22  void write_ensembles_plots(const Book&) const;
23  void write_samples_plots(const Book&) const;
24  void write_calibrations() const;
25 
26  const std::vector<std::string> inputFiles;
28  const unsigned maxEvents, samples, nbins;
29  const double lowBin, highBin;
30  std::vector<int> vMethods;
31 
34  : slopes(std::vector<float>(14, 0)), offsets(std::vector<float>(14, 10)), pulls(std::vector<float>(14, 0)) {}
35  std::vector<float> slopes;
36  std::vector<float> offsets;
37  std::vector<float> pulls;
38  };
39  std::map<std::string, MethodCalibrations> calibrations;
40 
43  };
44 } // namespace sistrip
45 #endif
std::map< std::string, MethodCalibrations > calibrations
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken_
void analyze(const edm::Event &, const edm::EventSetup &) override
sistrip classes
const std::vector< std::string > inputFiles
void write_samples_plots(const Book &) const
EnsembleCalibrationLA(const edm::ParameterSet &)
Definition: Book.h:16
void write_ensembles_plots(const Book &) const
void beginRun(const edm::Run &, const edm::EventSetup &) override
void endRun(const edm::Run &, const edm::EventSetup &) override
Definition: Run.h:45