File indexing completed on 2024-04-06 12:07:31
0001 #ifndef FCDTask_h
0002 #define FCDTask_h
0003
0004
0005
0006
0007
0008
0009
0010
0011 #include "DQM/HcalCommon/interface/ElectronicsMap.h"
0012
0013 class FCDTask : public DQMEDAnalyzer {
0014 public:
0015 struct FCDChannel {
0016 int crate;
0017 int slot;
0018 int fiber;
0019 int fiberChannel;
0020 };
0021
0022 public:
0023 FCDTask(edm::ParameterSet const&);
0024 ~FCDTask() override {}
0025
0026 void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
0027
0028 protected:
0029 void analyze(edm::Event const&, edm::EventSetup const&) override;
0030
0031
0032 edm::InputTag _tagQIE10;
0033 edm::EDGetTokenT<QIE10DigiCollection> _tokQIE10;
0034 edm::ESGetToken<HcalDbService, HcalDbRecord> hcalDbServiceToken_;
0035
0036
0037 std::map<HcalElectronicsId, MonitorElement*> _cADC;
0038 std::map<HcalElectronicsId, MonitorElement*> _cADC_vs_TS;
0039 std::map<HcalElectronicsId, MonitorElement*> _cTDC;
0040 std::map<HcalElectronicsId, MonitorElement*> _cTDCTime;
0041
0042 std::vector<HcalElectronicsId> _fcd_eids;
0043 std::vector<FCDChannel> _channels;
0044 HcalElectronicsMap const* _emap;
0045 hcaldqm::electronicsmap::ElectronicsMap _ehashmap;
0046 };
0047
0048 #endif