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
RunSummaryRcd.h
edm::ESWatcher< SiStripFedCablingRcd >
SiStripDaqInfo
Definition: SiStripDaqInfo.h:47
edm::Run
Definition: Run.h:45
LuminosityBlock.h
TrackerTopology
Definition: TrackerTopology.h:16
SiStripDaqInfo::findExcludedModule
void findExcludedModule(DQMStore &dqm_store, unsigned short fed_id, TrackerTopology const *tTopo)
Definition: SiStripDaqInfo.cc:210
SiStripDaqInfo::runInfoToken_
edm::ESGetToken< RunInfo, RunInfoRcd > runInfoToken_
Definition: SiStripDaqInfo.h:82
SiStripFedCabling.h
SiStripDaqInfo::subDetFedMap_
std::map< std::string, std::vector< unsigned short > > subDetFedMap_
Definition: SiStripDaqInfo.h:64
DQMStore.h
dqm::legacy::MonitorElement
Definition: MonitorElement.h:462
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:28
RunInfo
Definition: RunInfo.h:18
TrackerTopologyRcd.h
dqm::legacy::DQMStore
Definition: DQMStore.h:728
SiStripDaqInfo::SiStripDaqInfo
SiStripDaqInfo(edm::ParameterSet const &ps)
Definition: SiStripDaqInfo.cc:26
SiStripDaqInfo::daqFraction_
MonitorElement * daqFraction_
Definition: SiStripDaqInfo.h:66
Run.h
SiStripDaqInfo::analyze
void analyze(edm::Event const &, edm::EventSetup const &) override
Definition: SiStripDaqInfo.cc:132
SiStripDaqInfo::DQMStore
dqm::harvesting::DQMStore DQMStore
Definition: SiStripDaqInfo.h:50
SiStripDaqInfo::bookedStatus_
bool bookedStatus_
Definition: SiStripDaqInfo.h:76
SiStripDaqInfo::fillDummyStatus
void fillDummyStatus(DQMStore &dqm_store)
Definition: SiStripDaqInfo.cc:76
SiStripDaqInfo::SubDetMEs::daqFractionME
MonitorElement * daqFractionME
Definition: SiStripDaqInfo.h:69
edm::ParameterSet
Definition: ParameterSet.h:47
SiStripCondDataRecords.h
SiStripDaqInfo::tTopoToken_
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken_
Definition: SiStripDaqInfo.h:81
SiStripDaqInfo::readFedIds
void readFedIds(const SiStripFedCabling *fedcabling, edm::EventSetup const &iSetup)
Definition: SiStripDaqInfo.cc:137
SiStripDaqInfo::fedCablingWatcher_
edm::ESWatcher< SiStripFedCablingRcd > fedCablingWatcher_
Definition: SiStripDaqInfo.h:79
SiStripDaqInfo::fedCabling_
const SiStripFedCabling * fedCabling_
Definition: SiStripDaqInfo.h:78
SiStripDaqInfo::fedCablingToken_
edm::ESGetToken< SiStripFedCabling, SiStripFedCablingRcd > fedCablingToken_
Definition: SiStripDaqInfo.h:80
SiStripDaqInfo::SubDetMEs
Definition: SiStripDaqInfo.h:68
SiStripDaqInfo::nFedTotal_
int nFedTotal_
Definition: SiStripDaqInfo.h:75
SiStripDaqInfo::readSubdetFedFractions
void readSubdetFedFractions(DQMStore &dqm_store, std::vector< int > const &fed_ids, edm::EventSetup const &iSetup)
Definition: SiStripDaqInfo.cc:162
edm::EventSetup
Definition: EventSetup.h:58
edm::ESGetToken< SiStripFedCabling, SiStripFedCablingRcd >
SiStripDaqInfo::MonitorElement
dqm::harvesting::MonitorElement MonitorElement
Definition: SiStripDaqInfo.h:49
writedatasetfile.run
run
Definition: writedatasetfile.py:27
ESWatcher.h
EventSetup.h
SiStripDaqInfo::subDetMEsMap_
std::map< std::string, SubDetMEs > subDetMEsMap_
Definition: SiStripDaqInfo.h:73
SiStripDaqInfo::beginRun
void beginRun(edm::Run const &run, edm::EventSetup const &eSetup) override
Definition: SiStripDaqInfo.cc:90
ParameterSet.h
SiStripDaqInfo::SubDetMEs::connectedFeds
int connectedFeds
Definition: SiStripDaqInfo.h:70
SiStripDaqInfo::bookStatus
void bookStatus(DQMStore &dqm_store)
Definition: SiStripDaqInfo.cc:36
edm::Event
Definition: Event.h:73