Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:42:16

0001 #ifndef DQM_HcalTasks_DigiRunSummary_h
0002 #define DQM_HcalTasks_DigiRunSummary_h
0003 
0004 #include "DQM/HcalCommon/interface/DQClient.h"
0005 #include "DQM/HcalCommon/interface/ElectronicsMap.h"
0006 #include "DataFormats/HcalDetId/interface/HcalSubdetector.h"
0007 
0008 namespace hcaldqm {
0009   class DigiRunSummary : public DQClient {
0010   public:
0011     DigiRunSummary(std::string const &, std::string const &, edm::ParameterSet const &, edm::ConsumesCollector &iC);
0012     ~DigiRunSummary() override {}
0013 
0014     void beginRun(edm::Run const &, edm::EventSetup const &) override;
0015     void endLuminosityBlock(DQMStore::IBooker &,
0016                             DQMStore::IGetter &,
0017                             edm::LuminosityBlock const &,
0018                             edm::EventSetup const &) override;
0019     std::vector<flag::Flag> endJob(DQMStore::IBooker &, DQMStore::IGetter &) override;
0020 
0021   protected:
0022     std::vector<LSSummary> _vflagsLS;
0023 
0024     double _thresh_unihf;
0025 
0026     electronicsmap::ElectronicsMap _ehashmap;
0027 
0028     std::vector<uint32_t> _vhashVME, _vhashuTCA, _vhashFEDHF;
0029     std::vector<int> _vFEDsVME, _vFEDsuTCA;
0030     filter::HashFilter _filter_VME, _filter_uTCA, _filter_FEDHF;
0031 
0032     Container2D _cOccupancy_depth;
0033     bool _booked;
0034     MonitorElement *_meNumEvents;  // number of events vs LS
0035 
0036     ContainerXXX<uint32_t> _xDead, _xDigiSize, _xUniHF, _xUni, _xNChs, _xNChsNominal;
0037 
0038     std::map<HcalSubdetector, uint32_t> _refDigiSize;
0039 
0040     //  flag enum
0041     enum DigiLSFlag {
0042       fDigiSize = 0,
0043       fNChsHF = 1,
0044       fUnknownIds = 2,
0045       fLED = 3,
0046       nLSFlags = 4,  // defines the boundary between lumi-based and run-based flags
0047       fUniHF = 5,
0048       fDead = 6,
0049       nDigiFlag = 7
0050     };
0051   };
0052 }  // namespace hcaldqm
0053 
0054 #endif