/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
DQM/BeamMonitor/plugins/AlcaBeamMonitorClient.h
63 строки
2 KB
Christopher Jones
Converted remaining DQM modules to edm::one::EDAnalyzer
28 окт 2022, 00:31
28 окт 2022, 00:31
8a78bd0
Код
Авторство
О чём код?
#ifndef DQM_BeamMonitor_AlcaBeamMonitorClient_h #define DQM_BeamMonitor_AlcaBeamMonitorClient_h /** \class AlcaBeamMonitorClient * * * \author Lorenzo Uplegger/FNAL * */ // C++ #include <map> #include <vector> #include <string> // CMS #include "FWCore/Framework/interface/Frameworkfwd.h" #include "FWCore/Framework/interface/one/EDAnalyzer.h" #include "FWCore/Framework/interface/Event.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "DQMServices/Core/interface/DQMStore.h" #include "DataFormats/Provenance/interface/LuminosityBlockID.h" //#include "DataFormats/VertexReco/interface/Vertex.h" //#include "DataFormats/VertexReco/interface/VertexFwd.h" class AlcaBeamMonitorClient : public edm::one::EDAnalyzer<edm::one::SharedResources, edm::one::WatchRuns, edm::one::WatchLuminosityBlocks> { public: typedef dqm::legacy::MonitorElement MonitorElement; typedef dqm::legacy::DQMStore DQMStore; AlcaBeamMonitorClient(const edm::ParameterSet&); ~AlcaBeamMonitorClient() override; protected: void beginJob(void) override; void beginRun(const edm::Run& iRun, const edm::EventSetup& iSetup) override; void analyze(const edm::Event& iEvent, const edm::EventSetup& iSetup) override; void beginLuminosityBlock(const edm::LuminosityBlock& iLumi, const edm::EventSetup& iSetup) override {} void endLuminosityBlock(const edm::LuminosityBlock& iLumi, const edm::EventSetup& iSetup) override; void endRun(const edm::Run& iRun, const edm::EventSetup& iSetup) override; private: // x,y,z,sigmax(y,z)... [run,lumi] Histo name typedef std::map<std::string, std::map<std::string, std::map<std::string, MonitorElement*> > > HistosContainer; // x,y,z,sigmax(y,z)... [run,lumi] Histo name typedef std::map<std::string, std::map<std::string, std::map<std::string, int> > > PositionContainer; //Parameters edm::ParameterSet parameters_; std::string monitorName_; //Service variables int numberOfValuesToSave_; DQMStore* dbe_; //Containers HistosContainer histosMap_; std::vector<std::string> varNamesV_; //x,y,z,sigmax(y,z) std::multimap<std::string, std::string> histoByCategoryNames_; //run, lumi std::map<edm::LuminosityBlockNumber_t, std::vector<double> > valuesMap_; PositionContainer positionsMap_; }; #endif