CMS 3D CMS Logo

SiStripDcsInfo.h
Go to the documentation of this file.
1 #ifndef SiStripMonitorClient_SiStripDcsInfo_h
2 #define SiStripMonitorClient_SiStripDcsInfo_h
3 // -*- C++ -*-
4 //
5 // Package: SiStripMonitorClient
6 // Class : SiStripDcsInfo
7 //
17 //
18 // Author: Suchandra Dutta
19 // Created: Mon Feb 16 19:00:00 CET 2009
20 //
21 
22 #include <string>
23 
31 
38 
39 #include <iostream>
40 #include <fstream>
41 #include <string>
42 #include <vector>
43 #include <map>
44 #include <unordered_map>
45 
46 class SiStripDetVOff;
47 class SiStripDetCabling;
48 class RunInfo;
49 
51 public:
54 
56 
57 private:
58  void beginJob() override;
59  void beginRun(edm::Run const& run, edm::EventSetup const& eSetup) override;
60  void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& eSetup) override;
61  void endLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& iSetup) override;
62  void endRun(edm::Run const& run, edm::EventSetup const& eSetup) override;
63  void analyze(edm::Event const&, edm::EventSetup const&) override;
64 
65  void bookStatus(DQMStore& dqm_store);
66  void readStatus(edm::EventSetup const&, int transition);
67  void readCabling(edm::EventSetup const&);
68  void addBadModules(DQMStore& dqm_store);
69  void fillStatus(DQMStore& dqm_store);
70  void fillDummyStatus(DQMStore& dqm_store);
71 
73 
74  struct SubDetMEs {
78  std::vector<uint32_t> FaultyDetectors;
79  std::unordered_map<uint32_t, uint16_t> NLumiDetectorIsFaulty;
80  };
81 
82  std::map<std::string, SubDetMEs> SubDetMEsMap{};
83  unsigned long long m_cacheIDDcs_{};
84  bool bookedStatus_{false};
85 
87 
89 
90  bool IsLumiGoodDcs_{false};
92  static constexpr float MinAcceptableDcsDetFrac_{0.90};
93  static constexpr float MaxAcceptableBadDcsLumi_{2};
94 
101 };
102 #endif
SiStripDcsInfo
Definition: SiStripDcsInfo.h:50
RunSummaryRcd.h
SiStripDcsInfo::SubDetMEs::NLumiDetectorIsFaulty
std::unordered_map< uint32_t, uint16_t > NLumiDetectorIsFaulty
Definition: SiStripDcsInfo.h:79
edm::ESWatcher< SiStripFedCablingRcd >
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
edm::Run
Definition: Run.h:45
LuminosityBlock.h
SiStripDcsInfo::SubDetMEs
Definition: SiStripDcsInfo.h:74
SiStripDcsInfo::beginJob
void beginJob() override
Definition: SiStripDcsInfo.cc:35
DQMStore.h
dqm::legacy::MonitorElement
Definition: MonitorElement.h:462
SiStripDcsInfo::nGoodDcsLumi_
int nGoodDcsLumi_
Definition: SiStripDcsInfo.h:91
SiStripDcsInfo::m_cacheIDDcs_
unsigned long long m_cacheIDDcs_
Definition: SiStripDcsInfo.h:83
EDAnalyzer.h
edm::EDAnalyzer
Definition: EDAnalyzer.h:28
SiStripDcsInfo::endRun
void endRun(edm::Run const &run, edm::EventSetup const &eSetup) override
Definition: SiStripDcsInfo.cc:101
SiStripDcsInfo::MaxAcceptableBadDcsLumi_
static constexpr float MaxAcceptableBadDcsLumi_
Definition: SiStripDcsInfo.h:93
SiStripDcsInfo::readCabling
void readCabling(edm::EventSetup const &)
Definition: SiStripDcsInfo.cc:145
SiStripDcsInfo::tTopoToken2_
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken2_
Definition: SiStripDcsInfo.h:96
SiStripDcsInfo::detVOffToken0_
edm::ESGetToken< SiStripDetVOff, SiStripDetVOffRcd > detVOffToken0_
Definition: SiStripDcsInfo.h:97
SiStripDcsInfo::nFEDConnected_
int nFEDConnected_
Definition: SiStripDcsInfo.h:86
SiStripDcsInfo::detVOffToken1_
edm::ESGetToken< SiStripDetVOff, SiStripDetVOffRcd > detVOffToken1_
Definition: SiStripDcsInfo.h:97
SiStripDcsInfo::readStatus
void readStatus(edm::EventSetup const &, int transition)
Definition: SiStripDcsInfo.cc:181
SiStripDcsInfo::tTopoToken3_
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken3_
Definition: SiStripDcsInfo.h:96
RunInfo
Definition: RunInfo.h:18
SiStripDetCabling.h
SiStripDcsInfo::beginRun
void beginRun(edm::Run const &run, edm::EventSetup const &eSetup) override
Definition: SiStripDcsInfo.cc:48
TrackerTopologyRcd.h
dqm::legacy::DQMStore
Definition: DQMStore.h:727
SiStripDcsInfo::bookedStatus_
bool bookedStatus_
Definition: SiStripDcsInfo.h:84
SiStripDetCabling
Definition: SiStripDetCabling.h:21
SiStripDcsInfo::bookStatus
void bookStatus(DQMStore &dqm_store)
Definition: SiStripDcsInfo.cc:117
SiStripDcsInfo::addBadModules
void addBadModules(DQMStore &dqm_store)
Definition: SiStripDcsInfo.cc:265
Run.h
SiStripDcsInfo::SubDetMEs::TotalDetectors
int TotalDetectors
Definition: SiStripDcsInfo.h:77
SiStripDcsInfo::nLumiAnalysed_
int nLumiAnalysed_
Definition: SiStripDcsInfo.h:88
SiStripDcsInfo::fedCablingWatcher_
edm::ESWatcher< SiStripFedCablingRcd > fedCablingWatcher_
Definition: SiStripDcsInfo.h:98
SiStripDcsInfo::runInfoToken_
edm::ESGetToken< RunInfo, RunInfoRcd > runInfoToken_
Definition: SiStripDcsInfo.h:100
SiStripDcsInfo::SubDetMEsMap
std::map< std::string, SubDetMEs > SubDetMEsMap
Definition: SiStripDcsInfo.h:82
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
SiStripDcsInfo::beginLuminosityBlock
void beginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &eSetup) override
Definition: SiStripDcsInfo.cc:77
SiStripDcsInfo::tTopoToken0_
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken0_
Definition: SiStripDcsInfo.h:96
edm::ParameterSet
Definition: ParameterSet.h:47
SiStripCondDataRecords.h
SiStripDcsInfo::fillStatus
void fillStatus(DQMStore &dqm_store)
Definition: SiStripDcsInfo.cc:209
SiStripDcsInfo::SubDetMEs::FaultyDetectors
std::vector< uint32_t > FaultyDetectors
Definition: SiStripDcsInfo.h:78
SiStripDcsInfo::fillDummyStatus
void fillDummyStatus(DQMStore &dqm_store)
Definition: SiStripDcsInfo.cc:252
SiStripDcsInfo::IsLumiGoodDcs_
bool IsLumiGoodDcs_
Definition: SiStripDcsInfo.h:90
SiStripDcsInfo::DcsFraction_
MonitorElement * DcsFraction_
Definition: SiStripDcsInfo.h:72
SiStripDcsInfo::SubDetMEs::folder_name
std::string folder_name
Definition: SiStripDcsInfo.h:75
SiStripDetVOff
Definition: SiStripDetVOff.h:31
SiStripDcsInfo::endLuminosityBlock
void endLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &iSetup) override
Definition: SiStripDcsInfo.cc:91
SiStripDcsInfo::DQMStore
dqm::harvesting::DQMStore DQMStore
Definition: SiStripDcsInfo.h:53
edm::EventSetup
Definition: EventSetup.h:58
SiStripDcsInfo::SiStripDcsInfo
SiStripDcsInfo(const edm::ParameterSet &ps)
Definition: SiStripDcsInfo.cc:22
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd >
SiStripDcsInfo::MonitorElement
dqm::harvesting::MonitorElement MonitorElement
Definition: SiStripDcsInfo.h:52
writedatasetfile.run
run
Definition: writedatasetfile.py:27
ESWatcher.h
SiStripDcsInfo::tTopoToken1_
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken1_
Definition: SiStripDcsInfo.h:96
SiStripDcsInfo::detCabling_
const SiStripDetCabling * detCabling_
Definition: SiStripDcsInfo.h:95
EventSetup.h
SiStripDcsInfo::analyze
void analyze(edm::Event const &, edm::EventSetup const &) override
Definition: SiStripDcsInfo.cc:75
SiStripDcsInfo::MinAcceptableDcsDetFrac_
static constexpr float MinAcceptableDcsDetFrac_
Definition: SiStripDcsInfo.h:92
SiStripDetCablingRcd.h
ParameterSet.h
SiStripDetVOff.h
SiStripDcsInfo::detCablingToken_
edm::ESGetToken< SiStripDetCabling, SiStripDetCablingRcd > detCablingToken_
Definition: SiStripDcsInfo.h:99
SiStripDcsInfo::detVOffToken2_
edm::ESGetToken< SiStripDetVOff, SiStripDetVOffRcd > detVOffToken2_
Definition: SiStripDcsInfo.h:97
SiStripDcsInfo::SubDetMEs::DcsFractionME
MonitorElement * DcsFractionME
Definition: SiStripDcsInfo.h:76
edm::Event
Definition: Event.h:73