Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:08:13

0001 #include "DQMServices/Core/interface/DQMEDAnalyzer.h"
0002 #include "DQMServices/Core/interface/DQMStore.h"
0003 
0004 #include "FWCore/Framework/interface/ESHandle.h"
0005 #include "FWCore/Framework/interface/Event.h"
0006 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0007 
0008 #include <DataFormats/L1GlobalTrigger/interface/L1GlobalTriggerRecord.h>
0009 #include "DataFormats/L1GlobalTrigger/interface/L1GlobalTriggerReadoutSetupFwd.h"
0010 #include "DataFormats/L1GlobalTrigger/interface/L1GlobalTriggerReadoutSetup.h"
0011 #include "DataFormats/L1GlobalTrigger/interface/L1GlobalTriggerReadoutRecord.h"
0012 
0013 #include "DataFormats/L1GlobalMuonTrigger/interface/L1MuGMTReadoutCollection.h"
0014 #include "DataFormats/L1GlobalMuonTrigger/interface/L1MuRegionalCand.h"
0015 #include <DataFormats/L1GlobalMuonTrigger/interface/L1MuGMTExtendedCand.h>
0016 
0017 #include <DataFormats/L1GlobalTrigger/interface/L1GtTechnicalTrigger.h>
0018 #include <DataFormats/L1GlobalTrigger/interface/L1GtTechnicalTriggerRecord.h>
0019 
0020 class RPCTTUMonitor : public DQMEDAnalyzer {
0021 public:
0022   explicit RPCTTUMonitor(const edm::ParameterSet &);
0023   ~RPCTTUMonitor() override = default;
0024 
0025   int discriminateGMT(const edm::Event &iEvent, const edm::EventSetup &iSetup);
0026 
0027   void discriminateDecision(bool, bool, int);
0028 
0029 protected:
0030   void analyze(const edm::Event &, const edm::EventSetup &) override;
0031   void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
0032 
0033 private:
0034   MonitorElement *m_ttBitsDecisionData;
0035   MonitorElement *m_ttBitsDecisionEmulator;
0036   MonitorElement *m_bxDistDiffPac[8];
0037   MonitorElement *m_bxDistDiffDt[8];
0038   MonitorElement *m_dataVsemulator[8];
0039 
0040   std::string ttuFolder;
0041   std::string outputFile;
0042 
0043   int m_maxttBits;
0044   std::vector<unsigned> m_ttBits;
0045 
0046   bool m_dtTrigger;
0047   bool m_rpcTrigger;
0048 
0049   std::vector<int> m_GMTcandidatesBx;
0050   std::vector<int> m_DTcandidatesBx;
0051   std::vector<int> m_RPCcandidatesBx;
0052 
0053   //    edm::InputTag m_rpcDigiLabel;
0054 
0055   edm::EDGetTokenT<L1GlobalTriggerReadoutRecord> m_gtReadoutLabel;
0056   edm::EDGetTokenT<L1MuGMTReadoutCollection> m_gmtReadoutLabel;
0057   edm::EDGetTokenT<L1GtTechnicalTriggerRecord> m_rpcTechTrigEmu;
0058 };