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 
61 
62  struct SubDetMEs {
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
ESHandle.h
SiStripDaqInfo
Definition: SiStripDaqInfo.h:41
edm::Run
Definition: Run.h:45
SiStripDaqInfo::fedCabling_
edm::ESHandle< SiStripFedCabling > fedCabling_
Definition: SiStripDaqInfo.h:73
LuminosityBlock.h
TrackerTopology
Definition: TrackerTopology.h:16
SiStripDaqInfo::findExcludedModule
void findExcludedModule(DQMStore &dqm_store, unsigned short fed_id, TrackerTopology const *tTopo)
Definition: SiStripDaqInfo.cc:225
SiStripDaqInfo::m_cacheID_
unsigned long long m_cacheID_
Definition: SiStripDaqInfo.h:69
SiStripDaqInfo::subDetFedMap_
std::map< std::string, std::vector< unsigned short > > subDetFedMap_
Definition: SiStripDaqInfo.h:58
DQMStore.h
dqm::legacy::MonitorElement
Definition: MonitorElement.h:461
EDAnalyzer.h
SiStripFedCabling
Contains cabling info at the device level, including DetId, APV pair numbers, hardware addresses,...
Definition: SiStripFedCabling.h:25
edm::EDAnalyzer
Definition: EDAnalyzer.h:29
dqm::legacy::DQMStore
Definition: DQMStore.h:727
SiStripDaqInfo::SiStripDaqInfo
SiStripDaqInfo(edm::ParameterSet const &ps)
Definition: SiStripDaqInfo.cc:32
SiStripDaqInfo::daqFraction_
MonitorElement * daqFraction_
Definition: SiStripDaqInfo.h:60
Run.h
edm::ESHandle< SiStripFedCabling >
SiStripDaqInfo::analyze
void analyze(edm::Event const &, edm::EventSetup const &) override
Definition: SiStripDaqInfo.cc:143
SiStripDaqInfo::DQMStore
dqm::harvesting::DQMStore DQMStore
Definition: SiStripDaqInfo.h:44
SiStripDaqInfo::bookedStatus_
bool bookedStatus_
Definition: SiStripDaqInfo.h:71
SiStripDaqInfo::fillDummyStatus
void fillDummyStatus(DQMStore &dqm_store)
Definition: SiStripDaqInfo.cc:79
SiStripDaqInfo::SubDetMEs::daqFractionME
MonitorElement * daqFractionME
Definition: SiStripDaqInfo.h:63
edm::ParameterSet
Definition: ParameterSet.h:36
SiStripDaqInfo::SubDetMEs
Definition: SiStripDaqInfo.h:62
SiStripDaqInfo::nFedTotal_
int nFedTotal_
Definition: SiStripDaqInfo.h:70
SiStripDaqInfo::readSubdetFedFractions
void readSubdetFedFractions(DQMStore &dqm_store, std::vector< int > const &fed_ids, edm::EventSetup const &iSetup)
Definition: SiStripDaqInfo.cc:175
edm::EventSetup
Definition: EventSetup.h:57
SiStripDaqInfo::MonitorElement
dqm::harvesting::MonitorElement MonitorElement
Definition: SiStripDaqInfo.h:43
writedatasetfile.run
run
Definition: writedatasetfile.py:27
EventSetup.h
SiStripDaqInfo::subDetMEsMap_
std::map< std::string, SubDetMEs > subDetMEsMap_
Definition: SiStripDaqInfo.h:67
SiStripDaqInfo::beginRun
void beginRun(edm::Run const &run, edm::EventSetup const &eSetup) override
Definition: SiStripDaqInfo.cc:93
ParameterSet.h
SiStripDaqInfo::SubDetMEs::connectedFeds
int connectedFeds
Definition: SiStripDaqInfo.h:64
SiStripDaqInfo::bookStatus
void bookStatus(DQMStore &dqm_store)
Definition: SiStripDaqInfo.cc:39
edm::Event
Definition: Event.h:73
SiStripDaqInfo::readFedIds
void readFedIds(edm::ESHandle< SiStripFedCabling > const &fedcabling, edm::EventSetup const &iSetup)
Definition: SiStripDaqInfo.cc:148