File indexing completed on 2024-04-06 12:08:53
0001 #ifndef SiStripMonitorSummary_SiStripMonitorCondDataOnDemandExample_h
0002 #define SiStripMonitorSummary_SiStripMonitorCondDataOnDemandExample_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #include <memory>
0013 #include <iostream>
0014 #include <string>
0015 #include <vector>
0016
0017
0018 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0019 #include "FWCore/Framework/interface/ESHandle.h"
0020 #include "FWCore/Framework/interface/Frameworkfwd.h"
0021 #include "FWCore/Framework/interface/Event.h"
0022 #include "FWCore/Framework/interface/MakerMacros.h"
0023 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0024
0025 class SiStripClassToMonitorCondData;
0026
0027 class SiStripMonitorCondDataOnDemandExample : public edm::one::EDAnalyzer<edm::one::WatchRuns> {
0028 public:
0029 explicit SiStripMonitorCondDataOnDemandExample(const edm::ParameterSet &);
0030
0031 ~SiStripMonitorCondDataOnDemandExample() override = default;
0032
0033 void beginJob() override;
0034 void beginRun(edm::Run const &run, edm::EventSetup const &eSetup) override;
0035 void analyze(const edm::Event &, const edm::EventSetup &) override;
0036 void endRun(edm::Run const &run, edm::EventSetup const &eSetup) override;
0037 void endJob() override;
0038
0039 private:
0040 int eventCounter_;
0041 std::unique_ptr<SiStripClassToMonitorCondData> condDataMonitoring_;
0042 };
0043
0044 #endif