/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
GeneratorInterface/RivetInterface/interface/DQMRivetClient.h
59 строк
2 KB
Shahzad Malik Muzaffar
[GENERATORS] Changes suggested by new llvm18 clang-format
05 сен 2024, 17:14
05 сен 2024, 17:14
f8c46a4
Код
Авторство
О чём код?
#ifndef GeneratorInterface_RivetInterface_DQMRivetClient_H #define GeneratorInterface_RivetInterface_DQMRivetClient_H #include "FWCore/Framework/interface/Frameworkfwd.h" #include "FWCore/Framework/interface/one/EDAnalyzer.h" #include "DQMServices/Core/interface/DQMStore.h" #include <set> #include <string> #include <vector> #include <TH1.h> class DQMRivetClient : public edm::one::EDAnalyzer<edm::one::SharedResources, edm::one::WatchRuns> { public: typedef dqm::legacy::DQMStore DQMStore; typedef dqm::legacy::MonitorElement MonitorElement; struct NormOption { std::string name, normHistName; }; DQMRivetClient(const edm::ParameterSet& pset); ~DQMRivetClient() override {} void analyze(const edm::Event& event, const edm::EventSetup& eventSetup) override {} void endJob() override; void beginRun(const edm::Run& r, const edm::EventSetup& c) override {} void endRun(const edm::Run& r, const edm::EventSetup& c) override; struct LumiOption { std::string name, normHistName; double xsection; }; struct ScaleFactorOption { std::string name; double scale; }; void normalizeToIntegral(const std::string& startDir, const std::string& histName, const std::string& normHistName); void normalizeToLumi(const std::string& startDir, const std::string& histName, const std::string& normHistName, double xsection); void scaleByFactor(const std::string& startDir, const std::string& histName, double factor); private: unsigned int verbose_; DQMStore* theDQM; std::vector<std::string> subDirs_; std::string outputFileName_; std::vector<NormOption> normOptions_; std::vector<LumiOption> lumiOptions_; std::vector<ScaleFactorOption> scaleOptions_; }; #endif