Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-05-31 22:35:53

0001 #ifndef RPCRecHitProbability_h
0002 #define RPCRecHitProbability_h
0003 
0004 #include "DQMServices/Core/interface/DQMEDAnalyzer.h"
0005 #include "DQMServices/Core/interface/DQMStore.h"
0006 
0007 #include "FWCore/Framework/interface/ESHandle.h"
0008 #include "FWCore/Framework/interface/Event.h"
0009 
0010 #include "DataFormats/Scalers/interface/DcsStatus.h"
0011 #include "DataFormats/RPCRecHit/interface/RPCRecHitCollection.h"
0012 #include "DataFormats/MuonReco/interface/Muon.h"
0013 
0014 #include <string>
0015 
0016 class RPCRecHitProbability : public DQMEDAnalyzer {
0017 public:
0018   explicit RPCRecHitProbability(const edm::ParameterSet &);
0019   ~RPCRecHitProbability() override = default;
0020 
0021 protected:
0022   void analyze(const edm::Event &, const edm::EventSetup &) override;
0023   void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
0024 
0025 private:
0026   void makeDcsInfo(const edm::Event &);
0027 
0028   std::string muonFolder_;
0029   int counter;
0030 
0031   bool dcs_;
0032   float muPtCut_, muEtaCut_;
0033 
0034   std::string globalFolder_;
0035   std::string subsystemFolder_;
0036 
0037   bool saveRootFile;
0038   std::string RootFileName;
0039 
0040   MonitorElement *NumberOfMuonPt_B_;
0041   MonitorElement *NumberOfMuonPhi_B_;
0042   MonitorElement *NumberOfMuonPt_EP_;
0043   MonitorElement *NumberOfMuonPhi_EP_;
0044   MonitorElement *NumberOfMuonPt_EM_;
0045   MonitorElement *NumberOfMuonPhi_EM_;
0046   MonitorElement *NumberOfMuonEta_;
0047   MonitorElement *RPCRecHitMuonEta_;
0048 
0049   MonitorElement *recHitEta_[6];
0050   MonitorElement *recHitPt_B_[6];
0051   MonitorElement *recHitPhi_B_[6];
0052   MonitorElement *recHitPt_EP_[6];
0053   MonitorElement *recHitPhi_EP_[6];
0054   MonitorElement *recHitPt_EM_[6];
0055   MonitorElement *recHitPhi_EM_[6];
0056 
0057   edm::EDGetTokenT<reco::CandidateView> muonLabel_;
0058   edm::EDGetTokenT<DcsStatusCollection> scalersRawToDigiLabel_;
0059 };
0060 
0061 #endif