CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
29 
30 // helper files
31 #include <iostream>
32 #include <cstdlib>
33 #include <string>
34 #include <memory>
35 #include <vector>
36 #include <map>
37 #include <cassert>
38 #include <cstdint>
39 
40 #include "TString.h"
41 #include "TH1F.h"
42 #include "TH1S.h"
43 #include "TH1D.h"
44 #include "TH2F.h"
45 #include "TH2S.h"
46 #include "TH2D.h"
47 #include "TH3F.h"
48 #include "TProfile.h"
49 #include "TProfile2D.h"
50 #include "TObjString.h"
51 
52 namespace meedm {
53  struct Void {};
54 } // namespace meedm
55 
56 //Using RunCache and LuminosityBlockCache tells the framework the module is able to
57 // allow multiple concurrent Runs and LuminosityBlocks.
58 
59 class MEtoEDMConverter : public edm::one::EDProducer<edm::RunCache<meedm::Void>,
60  edm::LuminosityBlockCache<meedm::Void>,
61  edm::EndLuminosityBlockProducer,
62  edm::EndRunProducer,
63  edm::one::SharedResources> {
64 public:
67 
68  explicit MEtoEDMConverter(const edm::ParameterSet&);
69  ~MEtoEDMConverter() override;
70  void beginJob() override;
71  void produce(edm::Event&, const edm::EventSetup&) override;
72  std::shared_ptr<meedm::Void> globalBeginRun(edm::Run const&, const edm::EventSetup&) const override;
73  void globalEndRun(edm::Run const&, const edm::EventSetup&) override;
74  void endRunProduce(edm::Run&, const edm::EventSetup&) override;
77  std::shared_ptr<meedm::Void> globalBeginLuminosityBlock(edm::LuminosityBlock const&,
78  edm::EventSetup const&) const override;
79 
80  template <class T>
81  void putData(DQMStore::IGetter& g, T& iPutTo, bool iLumiOnly, uint32_t run, uint32_t lumi);
82 
83  using TagList = std::vector<uint32_t>;
84 
85 private:
87  int verbosity;
88  int frequency;
90 
91  // private statistics information
92  std::map<int, int> iCount;
93 
94 }; // end class declaration
95 
96 #endif
dqm::legacy::DQMStore DQMStore
~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
void produce(edm::Event &, const edm::EventSetup &) override
std::shared_ptr< meedm::Void > globalBeginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) const override
std::shared_ptr< meedm::Void > globalBeginRun(edm::Run const &, const edm::EventSetup &) const override
list lumi
Definition: dqmdumpme.py:53
void globalEndRun(edm::Run const &, const edm::EventSetup &) override
std::map< int, int > iCount
dqm::legacy::MonitorElement MonitorElement
MEtoEDMConverter(const edm::ParameterSet &)
void putData(DQMStore::IGetter &g, T &iPutTo, bool iLumiOnly, uint32_t run, uint32_t lumi)
long double T
void globalEndLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
void endLuminosityBlockProduce(edm::LuminosityBlock &, const edm::EventSetup &) override
Definition: Run.h:45