Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:07:23

0001 #ifndef ESDataCertificationTask_h
0002 #define ESDataCertificationTask_h
0003 
0004 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0005 #include "FWCore/Framework/interface/Event.h"
0006 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0007 #include "DQMServices/Core/interface/DQMStore.h"
0008 
0009 class ESDataCertificationTask
0010     : public edm::one::EDAnalyzer<edm::one::SharedResources, edm::one::WatchLuminosityBlocks> {
0011 public:
0012   typedef dqm::legacy::MonitorElement MonitorElement;
0013   typedef dqm::legacy::DQMStore DQMStore;
0014 
0015   ESDataCertificationTask(const edm::ParameterSet& ps);
0016   ~ESDataCertificationTask() override;
0017 
0018 protected:
0019   void analyze(const edm::Event& e, const edm::EventSetup& c) override;
0020   void beginJob(void) override;
0021   void endJob(void) override;
0022   void beginLuminosityBlock(const edm::LuminosityBlock& lumiBlock, const edm::EventSetup& iSetup) override;
0023   void endLuminosityBlock(const edm::LuminosityBlock&, const edm::EventSetup&) override;
0024   void reset(void);
0025 
0026 private:
0027   DQMStore* dqmStore_;
0028 
0029   std::string prefixME_;
0030 
0031   bool mergeRuns_;
0032 
0033   MonitorElement* meESDataCertificationSummary_;
0034   MonitorElement* meESDataCertificationSummaryMap_;
0035 };
0036 
0037 #endif