CMS 3D CMS Logo

SiStripDaqInfo.h
Go to the documentation of this file.
1 #ifndef SiStripMonitorClient_SiStripDaqInfo_h
2 #define SiStripMonitorClient_SiStripDaqInfo_h
3 // -*- C++ -*-
4 //
5 // Package: SiStripMonitorClient
6 // Class : SiStripDaqInfo
7 //
17 //
18 // Author: Suchandra Dutta
19 // Created: Thu Dec 11 17:50:00 CET 2008
20 //
21 
22 #include <string>
23 
31 
32 #include <iostream>
33 #include <fstream>
34 #include <string>
35 #include <vector>
36 #include <map>
37 
38 class SiStripFedCabling;
39 class TrackerTopology;
40 
42 public:
45 
47 
48 private:
49  void beginRun(edm::Run const& run, edm::EventSetup const& eSetup) override;
50  void analyze(edm::Event const&, edm::EventSetup const&) override;
51 
52  void readFedIds(edm::ESHandle<SiStripFedCabling> const& fedcabling, edm::EventSetup const& iSetup);
53  void readSubdetFedFractions(DQMStore& dqm_store, std::vector<int> const& fed_ids, edm::EventSetup const& iSetup);
54  void bookStatus(DQMStore& dqm_store);
55  void fillDummyStatus(DQMStore& dqm_store);
56  void findExcludedModule(DQMStore& dqm_store, unsigned short fed_id, TrackerTopology const* tTopo);
57 
58  std::map<std::string, std::vector<unsigned short>> subDetFedMap_;
59 
60  MonitorElement* daqFraction_{nullptr};
61 
62  struct SubDetMEs {
63  MonitorElement* daqFractionME;
65  };
66 
67  std::map<std::string, SubDetMEs> subDetMEsMap_;
68 
69  unsigned long long m_cacheID_{};
70  int nFedTotal_{};
71  bool bookedStatus_{false};
72 
74 };
75 #endif
void findExcludedModule(DQMStore &dqm_store, unsigned short fed_id, TrackerTopology const *tTopo)
void readSubdetFedFractions(DQMStore &dqm_store, std::vector< int > const &fed_ids, edm::EventSetup const &iSetup)
void beginRun(edm::Run const &run, edm::EventSetup const &eSetup) override
void bookStatus(DQMStore &dqm_store)
MonitorElement * daqFractionME
std::map< std::string, std::vector< unsigned short > > subDetFedMap_
dqm::harvesting::MonitorElement MonitorElement
void readFedIds(edm::ESHandle< SiStripFedCabling > const &fedcabling, edm::EventSetup const &iSetup)
void analyze(edm::Event const &, edm::EventSetup const &) override
dqm::harvesting::DQMStore DQMStore
SiStripDaqInfo(edm::ParameterSet const &ps)
std::map< std::string, SubDetMEs > subDetMEsMap_
Contains cabling info at the device level, including DetId, APV pair numbers, hardware addresses...
MonitorElement * daqFraction_
void fillDummyStatus(DQMStore &dqm_store)
unsigned long long m_cacheID_
Definition: Run.h:45
edm::ESHandle< SiStripFedCabling > fedCabling_