Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-08-30 02:10:34

0001 // -*- C++ -*-
0002 //
0003 // Package:    L1TMonitor/L1TCaloLayer1Summary
0004 // Class:      L1TCaloLayer1Summary
0005 //
0006 /**\class L1TCaloLayer1Summary L1TCaloLayer1Summary.cc Demo/L1TCaloLayer1Summary/plugins/L1TCaloLayer1Summary.cc
0007 
0008  Description: DQM Analyzer for CaloLayer1 regions and CICADAScore
0009 
0010  Implementation:
0011      This module uses emulator sequence for CaloLayer1.
0012 */
0013 //
0014 // Original Author:  Max Zhao <max.zhao@princeton.edu>
0015 //         Created:  31 Jul 2024
0016 //
0017 //
0018 
0019 // system include files
0020 #include <memory>
0021 #include <string>
0022 
0023 #include "DQMServices/Core/interface/DQMStore.h"
0024 #include "DQMServices/Core/interface/DQMEDAnalyzer.h"
0025 
0026 // user include files
0027 #include "FWCore/Framework/interface/Frameworkfwd.h"
0028 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0029 
0030 #include "FWCore/Framework/interface/Event.h"
0031 #include "FWCore/Framework/interface/MakerMacros.h"
0032 
0033 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0034 #include "FWCore/Utilities/interface/InputTag.h"
0035 
0036 #include "FWCore/ServiceRegistry/interface/Service.h"
0037 
0038 #include "DataFormats/L1CaloTrigger/interface/CICADA.h"
0039 #include "DataFormats/L1CaloTrigger/interface/L1CaloCollections.h"
0040 #include "DataFormats/FEDRawData/interface/FEDRawDataCollection.h"
0041 #include "EventFilter/L1TXRawToDigi/interface/UCTDAQRawData.h"
0042 #include "EventFilter/L1TXRawToDigi/interface/UCTAMCRawData.h"
0043 #include "DataFormats/FEDRawData/interface/FEDNumbering.h"
0044 
0045 class L1TCaloLayer1Summary : public DQMEDAnalyzer {
0046 public:
0047   explicit L1TCaloLayer1Summary(const edm::ParameterSet&);
0048 
0049   static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
0050 
0051 private:
0052   void analyze(const edm::Event&, const edm::EventSetup&) override;
0053   void bookHistograms(DQMStore::IBooker&, const edm::Run&, const edm::EventSetup&) override;
0054 
0055   // ----------member data ---------------------------
0056   edm::EDGetTokenT<l1t::CICADABxCollection> caloLayer1CICADAScoreToken_;
0057   edm::EDGetTokenT<l1t::CICADABxCollection> gtCICADAScoreToken_;
0058   edm::EDGetTokenT<l1t::CICADABxCollection> simCICADAScoreToken_;
0059   edm::EDGetTokenT<L1CaloRegionCollection> caloLayer1RegionsToken_;
0060   edm::EDGetTokenT<L1CaloRegionCollection> simRegionsToken_;
0061   edm::EDGetTokenT<FEDRawDataCollection> fedRawData_;
0062 
0063   dqm::reco::MonitorElement* histoCaloLayer1CICADAScore;
0064   dqm::reco::MonitorElement* histoGtCICADAScore;
0065   dqm::reco::MonitorElement* histoSimCICADAScore;
0066   dqm::reco::MonitorElement* histoCaloMinusSim;
0067   dqm::reco::MonitorElement* histoCaloMinusGt;
0068   dqm::reco::MonitorElement* histoSlot7MinusDaqBxid;
0069   dqm::reco::MonitorElement* histoCaloRegions;
0070   dqm::reco::MonitorElement* histoSimRegions;
0071   dqm::reco::MonitorElement* histoCaloMinusSimRegions;
0072 
0073   std::string histFolder_;
0074 };