File indexing completed on 2024-07-22 23:31:01
0001 #ifndef DQM_GEM_INTERFACE_GEMPadDigiClusterSource_h
0002 #define DQM_GEM_INTERFACE_GEMPadDigiClusterSource_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 #include "DataFormats/GEMDigi/interface/GEMPadDigiCluster.h"
0022 #include "DataFormats/GEMDigi/interface/GEMPadDigiClusterCollection.h"
0023 #include "DataFormats/Scalers/interface/LumiScalers.h"
0024
0025 #include "DQM/GEM/interface/GEMDQMBase.h"
0026
0027 #include <string>
0028
0029
0030
0031 class GEMPadDigiClusterSource : public GEMDQMBase {
0032 public:
0033 explicit GEMPadDigiClusterSource(const edm::ParameterSet& cfg);
0034 ~GEMPadDigiClusterSource() override{};
0035 static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
0036
0037 protected:
0038 void dqmBeginRun(edm::Run const&, edm::EventSetup const&) override{};
0039 void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
0040 void analyze(edm::Event const& e, edm::EventSetup const& eSetup) override;
0041
0042 private:
0043 int ProcessWithMEMap2WithEta(BookingHelper& bh, ME3IdsKey key) override;
0044 int ProcessWithMEMap2(BookingHelper& bh, ME2IdsKey key) override;
0045 int ProcessWithMEMap3(BookingHelper& bh, ME3IdsKey key) override;
0046
0047 int ProcessWithMEMap2WithChamber(BookingHelper& bh, ME3IdsKey key) override;
0048
0049
0050
0051 int ProcessWithMEMap4WithChamber(BookingHelper& bh, ME4IdsKey key) override;
0052
0053 const static int nNumBitDigiOcc_ = 16384;
0054
0055 edm::EDGetToken tagPadDigiCluster_;
0056
0057 edm::EDGetTokenT<LumiScalersCollection> lumiScalers_;
0058
0059 MEMap3Inf mapPadDiffPerCh_;
0060 MEMap3Inf mapBXDiffPerCh_;
0061 MEMap3Inf mapPadBXDiffPerCh_;
0062
0063 MEMap4Inf mapPadBXDiffPerEtaCh_;
0064 MEMap4Inf mapPadDigiOccPerCh_;
0065 MEMap4Inf mapPadBxPerCh_;
0066 MEMap4Inf mapPadCLSPerCh_;
0067 MEMap4Inf mapPadDiffPerEtaCh_;
0068 MEMap4Inf mapBXMidPerCh_;
0069 MEMap4Inf mapBXCLSPerCh_;
0070 std::string strFolderMain_;
0071
0072 Int_t nBXMin_, nBXMax_;
0073 Int_t nCLSMax_, nClusterSizeBinNum_;
0074 Float_t fRadiusMin_;
0075 Float_t fRadiusMax_;
0076 };
0077
0078 #endif