CMS 3D CMS Logo

AlcaBeamMonitorClient.h
Go to the documentation of this file.
1 #ifndef DQM_BeamMonitor_AlcaBeamMonitorClient_h
2 #define DQM_BeamMonitor_AlcaBeamMonitorClient_h
3 
9 // C++
10 #include <map>
11 #include <vector>
12 #include <string>
13 // CMS
20 //#include "DataFormats/VertexReco/interface/Vertex.h"
21 //#include "DataFormats/VertexReco/interface/VertexFwd.h"
22 
24  : public edm::one::EDAnalyzer<edm::one::SharedResources, edm::one::WatchRuns, edm::one::WatchLuminosityBlocks> {
25 public:
28 
30  ~AlcaBeamMonitorClient() override;
31 
32 protected:
33  void beginJob(void) override;
34  void beginRun(const edm::Run& iRun, const edm::EventSetup& iSetup) override;
35  void analyze(const edm::Event& iEvent, const edm::EventSetup& iSetup) override;
36  void beginLuminosityBlock(const edm::LuminosityBlock& iLumi, const edm::EventSetup& iSetup) override {}
37  void endLuminosityBlock(const edm::LuminosityBlock& iLumi, const edm::EventSetup& iSetup) override;
38  void endRun(const edm::Run& iRun, const edm::EventSetup& iSetup) override;
39 
40 private:
41  // x,y,z,sigmax(y,z)... [run,lumi] Histo name
42  typedef std::map<std::string, std::map<std::string, std::map<std::string, MonitorElement*> > > HistosContainer;
43 
44  // x,y,z,sigmax(y,z)... [run,lumi] Histo name
45  typedef std::map<std::string, std::map<std::string, std::map<std::string, int> > > PositionContainer;
46 
47  //Parameters
50 
51  //Service variables
54 
55  //Containers
57  std::vector<std::string> varNamesV_; //x,y,z,sigmax(y,z)
58  std::multimap<std::string, std::string> histoByCategoryNames_; //run, lumi
59  std::map<edm::LuminosityBlockNumber_t, std::vector<double> > valuesMap_;
61 };
62 
63 #endif
void beginJob(void) override
dqm::legacy::DQMStore DQMStore
PositionContainer positionsMap_
void beginRun(const edm::Run &iRun, const edm::EventSetup &iSetup) override
std::multimap< std::string, std::string > histoByCategoryNames_
void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup) override
std::map< std::string, std::map< std::string, std::map< std::string, int > > > PositionContainer
int iEvent
Definition: GenABIO.cc:224
void beginLuminosityBlock(const edm::LuminosityBlock &iLumi, const edm::EventSetup &iSetup) override
void endRun(const edm::Run &iRun, const edm::EventSetup &iSetup) override
dqm::legacy::MonitorElement MonitorElement
std::map< edm::LuminosityBlockNumber_t, std::vector< double > > valuesMap_
edm::ParameterSet parameters_
AlcaBeamMonitorClient(const edm::ParameterSet &)
std::vector< std::string > varNamesV_
std::map< std::string, std::map< std::string, std::map< std::string, MonitorElement * > > > HistosContainer
void endLuminosityBlock(const edm::LuminosityBlock &iLumi, const edm::EventSetup &iSetup) override
Definition: Run.h:45