Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef DQM_L1TMonitor_L1TStage2uGMTInputBxDistributions_h
0002 #define DQM_L1TMonitor_L1TStage2uGMTInputBxDistributions_h
0003 
0004 #include "DataFormats/L1Trigger/interface/Muon.h"
0005 #include "DataFormats/L1TMuon/interface/RegionalMuonCand.h"
0006 #include "DataFormats/L1Trigger/interface/MuonShower.h"
0007 #include "DataFormats/L1TMuon/interface/RegionalMuonShower.h"
0008 #include "L1Trigger/L1TMuon/interface/MicroGMTConfiguration.h"
0009 
0010 #include "DQMServices/Core/interface/DQMEDAnalyzer.h"
0011 #include "DQMServices/Core/interface/DQMStore.h"
0012 
0013 #include "FWCore/Framework/interface/Event.h"
0014 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0015 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0016 #include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h"
0017 #include "FWCore/ParameterSet/interface/ParameterSetDescription.h"
0018 
0019 class L1TStage2uGMTInputBxDistributions : public DQMEDAnalyzer {
0020 public:
0021   L1TStage2uGMTInputBxDistributions(const edm::ParameterSet& ps);
0022   ~L1TStage2uGMTInputBxDistributions() override;
0023   static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
0024 
0025 protected:
0026   void bookHistograms(DQMStore::IBooker&, const edm::Run&, const edm::EventSetup&) override;
0027   void analyze(const edm::Event&, const edm::EventSetup&) override;
0028 
0029 private:
0030   edm::EDGetTokenT<l1t::RegionalMuonCandBxCollection> ugmtBMTFToken_;
0031   edm::EDGetTokenT<l1t::RegionalMuonCandBxCollection> ugmtOMTFToken_;
0032   edm::EDGetTokenT<l1t::RegionalMuonCandBxCollection> ugmtEMTFToken_;
0033   edm::EDGetTokenT<l1t::MuonBxCollection> ugmtMuonToken_;
0034   edm::EDGetTokenT<l1t::RegionalMuonShowerBxCollection> ugmtEMTFShowerToken_;
0035   edm::EDGetTokenT<l1t::MuonShowerBxCollection> ugmtMuonShowerToken_;
0036   std::string monitorDir_;
0037   bool emul_;
0038   bool verbose_;
0039   bool hadronicShowers_;
0040 
0041   MonitorElement* ugmtBMTFBX;
0042 
0043   MonitorElement* ugmtOMTFBX;
0044 
0045   MonitorElement* ugmtEMTFBX;
0046 
0047   MonitorElement* ugmtEMTFShowerTypeOccupancyPerBx;
0048   MonitorElement* ugmtEMTFShowerSectorOccupancyPerBx;
0049 
0050   MonitorElement* ugmtBMTFBXvsProcessor;
0051   MonitorElement* ugmtOMTFBXvsProcessor;
0052   MonitorElement* ugmtEMTFBXvsProcessor;
0053   MonitorElement* ugmtBXvsLink;
0054 
0055   static constexpr unsigned IDX_LOOSE_SHOWER{3};
0056   static constexpr unsigned IDX_TIGHT_SHOWER{2};
0057   static constexpr unsigned IDX_NOMINAL_SHOWER{1};
0058 };
0059 
0060 #endif