Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-06-07 22:22:29

0001 #ifndef DQM_GEM_INTERFACE_GEMDigiSource_h
0002 #define DQM_GEM_INTERFACE_GEMDigiSource_h
0003 
0004 #include "FWCore/Framework/interface/ESHandle.h"
0005 #include "FWCore/Framework/interface/MakerMacros.h"
0006 #include "FWCore/PluginManager/interface/ModuleDef.h"
0007 #include "FWCore/Framework/interface/Event.h"
0008 #include "FWCore/Framework/interface/EventSetup.h"
0009 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0010 #include "FWCore/Utilities/interface/InputTag.h"
0011 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0012 
0013 #include "DQMServices/Core/interface/DQMEDAnalyzer.h"
0014 #include "DQMServices/Core/interface/DQMEDAnalyzer.h"
0015 #include "DQMServices/Core/interface/DQMStore.h"
0016 #include "DQMServices/Core/interface/MonitorElement.h"
0017 
0018 #include "Validation/MuonGEMHits/interface/GEMValidationUtils.h"
0019 
0020 #include "DataFormats/GEMDigi/interface/GEMDigiCollection.h"
0021 
0022 #include "DataFormats/Scalers/interface/LumiScalers.h"
0023 
0024 #include "DQM/GEM/interface/GEMDQMBase.h"
0025 
0026 #include <string>
0027 
0028 //----------------------------------------------------------------------------------------------------
0029 
0030 class GEMDigiSource : public GEMDQMBase {
0031 public:
0032   explicit GEMDigiSource(const edm::ParameterSet& cfg);
0033   ~GEMDigiSource() override{};
0034   static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
0035 
0036 protected:
0037   void dqmBeginRun(edm::Run const&, edm::EventSetup const&) override{};
0038   void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
0039   void analyze(edm::Event const& e, edm::EventSetup const& eSetup) override;
0040 
0041 private:
0042   int ProcessWithMEMap2WithEta(BookingHelper& bh, ME3IdsKey key) override;
0043   int ProcessWithMEMap2(BookingHelper& bh, ME2IdsKey key) override;
0044   int ProcessWithMEMap3(BookingHelper& bh, ME3IdsKey key) override;
0045   int ProcessWithMEMap3WithChamber(BookingHelper& bh, ME4IdsKey key) override;
0046 
0047   const static int nNumBitDigiOcc_ = 16384;
0048 
0049   edm::EDGetToken tagDigi_;
0050 
0051   edm::EDGetTokenT<LumiScalersCollection> lumiScalers_;
0052 
0053   MEMap3Inf mapTotalDigi_layer_;
0054   MEMap3Inf mapDigiWheel_layer_;
0055   MEMap3Inf mapDigiOcc_ieta_;
0056   MEMap3Inf mapDigiOcc_phi_;
0057   MEMap3Inf mapTotalDigiPerEvtLayer_;
0058   MEMap3Inf mapTotalDigiPerEvtIEta_;
0059   MEMap2Inf mapBX_;
0060 
0061   MEMap4Inf mapDigiOccPerCh_;
0062 
0063   std::string strFolderMain_;
0064 
0065   Int_t nBXMin_, nBXMax_;
0066   Float_t fRadiusMin_;
0067   Float_t fRadiusMax_;
0068 };
0069 
0070 #endif  // DQM_GEM_INTERFACE_GEMDigiSource_h