CMS 3D CMS Logo

MEtoEDMConverter.h
Go to the documentation of this file.
1 #ifndef MEtoEDMConverter_h
2 #define MEtoEDMConverter_h
3 
12 // framework & common header files
25 
26 //DQM services
30 
31 // helper files
32 #include <iostream>
33 #include <cstdlib>
34 #include <string>
35 #include <memory>
36 #include <vector>
37 #include <map>
38 #include <cassert>
39 #include <cstdint>
40 
41 #include "TString.h"
42 #include "TH1F.h"
43 #include "TH1S.h"
44 #include "TH1D.h"
45 #include "TH2F.h"
46 #include "TH2S.h"
47 #include "TH2D.h"
48 #include "TH3F.h"
49 #include "TProfile.h"
50 #include "TProfile2D.h"
51 #include "TObjString.h"
52 
53 class MEtoEDMConverter : public edm::one::EDProducer<edm::one::WatchRuns,
54  edm::one::WatchLuminosityBlocks,
55  edm::EndLuminosityBlockProducer,
56  edm::EndRunProducer,
57  edm::one::SharedResources>
58 {
59 public:
60  explicit MEtoEDMConverter(const edm::ParameterSet&);
61  ~MEtoEDMConverter() override;
62  void beginJob() override;
63  void endJob() override;
64  void produce(edm::Event&, const edm::EventSetup&) override;
65  void beginRun(edm::Run const&, const edm::EventSetup&) override;
66  void endRun(edm::Run const&, const edm::EventSetup&) override;
67  void endRunProduce(edm::Run&, const edm::EventSetup&) override;
69  void endLuminosityBlock(edm::LuminosityBlock const&, edm::EventSetup const&) override {};
70  void beginLuminosityBlock(edm::LuminosityBlock const&, edm::EventSetup const&) override {};
71 
72  template <class T>
73  void putData(DQMStore::IGetter &g, T& iPutTo, bool iLumiOnly, uint32_t run, uint32_t lumi);
74 
75  using TagList = std::vector<uint32_t>;
76 
77 private:
79  int verbosity;
80  int frequency;
84 
85  // private statistics information
86  std::map<int,int> iCount;
87 
88 }; // end class declaration
89 
90 #endif
void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
~MEtoEDMConverter() override
void endRunProduce(edm::Run &, const edm::EventSetup &) override
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
Definition: Activities.doc:4
std::vector< uint32_t > TagList
void beginJob() override
std::map< int, int > iCount
void produce(edm::Event &, const edm::EventSetup &) override
void endRun(edm::Run const &, const edm::EventSetup &) override
void endJob() override
MEtoEDMConverter(const edm::ParameterSet &)
void beginRun(edm::Run const &, const edm::EventSetup &) override
void putData(DQMStore::IGetter &g, T &iPutTo, bool iLumiOnly, uint32_t run, uint32_t lumi)
long double T
void endLuminosityBlockProduce(edm::LuminosityBlock &, const edm::EventSetup &) override
Definition: Run.h:44