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 
36 
37 #include <iostream>
38 #include <fstream>
39 #include <string>
40 #include <vector>
41 #include <map>
42 
43 class SiStripFedCabling;
44 class TrackerTopology;
45 class RunInfo;
46 
48 public:
51 
53 
54 private:
55  void beginRun(edm::Run const& run, edm::EventSetup const& eSetup) override;
56  void analyze(edm::Event const&, edm::EventSetup const&) override;
57 
58  void readFedIds(const SiStripFedCabling* fedcabling, edm::EventSetup const& iSetup);
59  void readSubdetFedFractions(DQMStore& dqm_store, std::vector<int> const& fed_ids, edm::EventSetup const& iSetup);
60  void bookStatus(DQMStore& dqm_store);
61  void fillDummyStatus(DQMStore& dqm_store);
62  void findExcludedModule(DQMStore& dqm_store, unsigned short fed_id, TrackerTopology const* tTopo);
63 
64  std::map<std::string, std::vector<unsigned short>> subDetFedMap_;
65 
67 
68  struct SubDetMEs {
71  };
72 
73  std::map<std::string, SubDetMEs> subDetMEsMap_;
74 
75  int nFedTotal_{};
76  bool bookedStatus_{false};
77 
83 };
84 #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)
edm::ESGetToken< RunInfo, RunInfoRcd > runInfoToken_
void beginRun(edm::Run const &run, edm::EventSetup const &eSetup) override
edm::ESGetToken< SiStripFedCabling, SiStripFedCablingRcd > fedCablingToken_
void bookStatus(DQMStore &dqm_store)
void readFedIds(const SiStripFedCabling *fedcabling, edm::EventSetup const &iSetup)
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken_
MonitorElement * daqFractionME
std::map< std::string, std::vector< unsigned short > > subDetFedMap_
dqm::harvesting::MonitorElement MonitorElement
void analyze(edm::Event const &, edm::EventSetup const &) override
dqm::harvesting::DQMStore DQMStore
SiStripDaqInfo(edm::ParameterSet const &ps)
edm::ESWatcher< SiStripFedCablingRcd > fedCablingWatcher_
std::map< std::string, SubDetMEs > subDetMEsMap_
Contains cabling info at the device level, including DetId, APV pair numbers, hardware addresses...
const SiStripFedCabling * fedCabling_
MonitorElement * daqFraction_
void fillDummyStatus(DQMStore &dqm_store)
Definition: Run.h:45