Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef ESDcsInfoTask_h
0002 #define ESDcsInfoTask_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 
0008 #include "DataFormats/Scalers/interface/DcsStatus.h"
0009 #include "DQMServices/Core/interface/DQMStore.h"
0010 
0011 class ESDcsInfoTask : public edm::one::EDAnalyzer<edm::one::SharedResources, edm::one::WatchLuminosityBlocks> {
0012 public:
0013   typedef dqm::legacy::MonitorElement MonitorElement;
0014   typedef dqm::legacy::DQMStore DQMStore;
0015 
0016   /// Constructor
0017   ESDcsInfoTask(const edm::ParameterSet& ps);
0018 
0019   /// Destructor
0020   ~ESDcsInfoTask() override;
0021 
0022 protected:
0023   /// Analyze
0024   void analyze(const edm::Event& e, const edm::EventSetup& c) override;
0025 
0026   /// BeginJob
0027   void beginJob(void) override;
0028 
0029   /// EndJob
0030   void endJob(void) override;
0031 
0032   /// BeginLuminosityBlock
0033   void beginLuminosityBlock(const edm::LuminosityBlock& lumiBlock, const edm::EventSetup& iSetup) override;
0034 
0035   /// EndLuminosityBlock
0036   void endLuminosityBlock(const edm::LuminosityBlock&, const edm::EventSetup&) override;
0037 
0038   /// Reset
0039   void reset(void);
0040 
0041 private:
0042   DQMStore* dqmStore_;
0043 
0044   std::string prefixME_;
0045 
0046   bool mergeRuns_;
0047 
0048   edm::EDGetTokenT<DcsStatusCollection> dcsStatustoken_;
0049 
0050   MonitorElement* meESDcsFraction_;
0051   MonitorElement* meESDcsActiveMap_;
0052 
0053   int ievt_;
0054 };
0055 
0056 #endif