Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:10:47

0001 #ifndef DQM_L1TMONITORCLIENT_L1TRPCTFClient_H
0002 #define DQM_L1TMONITORCLIENT_L1TRPCTFClient_H
0003 
0004 #include "FWCore/Framework/interface/Frameworkfwd.h"
0005 #include "FWCore/Framework/interface/Event.h"
0006 #include "FWCore/Framework/interface/MakerMacros.h"
0007 #include "FWCore/Framework/interface/EDAnalyzer.h"
0008 #include "DQMServices/Core/interface/DQMStore.h"
0009 #include "DQMServices/Core/interface/DQMEDHarvester.h"
0010 
0011 #include <memory>
0012 #include <iostream>
0013 #include <fstream>
0014 #include <string>
0015 #include <vector>
0016 #include <map>
0017 #include <TH1F.h>
0018 #include <TH2F.h>
0019 #include <TProfile2D.h>
0020 
0021 class L1TRPCTFClient : public DQMEDHarvester {
0022 public:
0023   /// Constructor
0024   L1TRPCTFClient(const edm::ParameterSet &ps);
0025 
0026   /// Destructor
0027   ~L1TRPCTFClient() override;
0028 
0029 protected:
0030   void dqmEndLuminosityBlock(DQMStore::IBooker &ibooker,
0031                              DQMStore::IGetter &,
0032                              edm::LuminosityBlock const &,
0033                              edm::EventSetup const &) override;       //performed in the endLumi
0034   void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override;  //performed in the endJob
0035 
0036 private:
0037   void initialize();
0038   void book(DQMStore::IBooker &ibooker);
0039   void processHistograms(DQMStore::IGetter &igetter);
0040 
0041   MonitorElement *m_phipackedbad;
0042   MonitorElement *m_phipackeddead;
0043   MonitorElement *m_deadChannels;
0044   MonitorElement *m_noisyChannels;
0045 
0046   edm::ParameterSet parameters_;
0047   std::string monitorName_;
0048   std::string input_dir_;
0049   std::string output_dir_;
0050   int counterLS_;    ///counter
0051   int counterEvt_;   ///counter
0052   int prescaleLS_;   ///units of lumi sections
0053   int prescaleEvt_;  ///prescale on number of events
0054 
0055   bool verbose_;
0056 
0057   bool m_runInEventLoop;
0058   bool m_runInEndLumi;
0059   bool m_runInEndRun;
0060   bool m_runInEndJob;
0061 };
0062 
0063 #endif