CMS 3D CMS Logo

SiStripBadComponentInfo.h
Go to the documentation of this file.
1 #ifndef SiStripMonitorClient_SiStripBadComponentInfo_h
2 #define SiStripMonitorClient_SiStripBadComponentInfo_h
3 // -*- C++ -*-
4 //
5 // Package: SiStripMonitorClient
6 // Class : SiStripBadComponentInfo
7 //
17 //
18 // Author: Suchandra Dutta
19 // Created: Fri Jan 26 10:00:00 CET 2018
20 //
21 
22 #include <string>
23 
30 
34 
35 #include <fstream>
36 #include <iostream>
37 #include <map>
38 #include <string>
39 #include <vector>
40 
42 public:
45  ~SiStripBadComponentInfo() override;
46 
47 protected:
48  void endRun(edm::Run const&, edm::EventSetup const&) override;
50  DQMStore::IGetter&) override; // performed in the endJob
51 
52 private:
53  void checkBadComponents(edm::EventSetup const& eSetup);
55  void fillBadComponentMaps(const SiStripQuality* siStripQuality);
56  void fillBadComponentMaps(int xbin, int component, SiStripQuality::BadComponent const& BC);
57  void createSummary(MonitorElement* me, const std::map<std::pair<int, int>, float>& map);
58 
62 
63  std::map<std::pair<int, int>, float> mapBadAPV;
64  std::map<std::pair<int, int>, float> mapBadFiber;
65  std::map<std::pair<int, int>, float> mapBadStrip;
66 
69 
78 };
79 #endif
DQMEDHarvester.h
SiStripBadComponentInfo::bookedStatus_
bool bookedStatus_
Definition: SiStripBadComponentInfo.h:67
SiStripBadComponentInfo::tTopoToken_
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken_
Definition: SiStripBadComponentInfo.h:74
SiStripBadComponentInfo::SiStripBadComponentInfo
SiStripBadComponentInfo(edm::ParameterSet const &ps)
Constructor.
Definition: SiStripBadComponentInfo.cc:25
SiStripBadComponentInfo::qualityToken_
edm::ESGetToken< SiStripQuality, SiStripQualityRcd > qualityToken_
Definition: SiStripBadComponentInfo.h:73
SiStripBadComponentInfo::siStripQuality_
const SiStripQuality * siStripQuality_
Definition: SiStripBadComponentInfo.h:70
ESHandle.h
edm::Run
Definition: Run.h:45
LuminosityBlock.h
TrackerTopology
Definition: TrackerTopology.h:16
SiStripBadComponentInfo::~SiStripBadComponentInfo
~SiStripBadComponentInfo() override
Definition: SiStripBadComponentInfo.cc:38
SiStripBadComponentInfo::endRun
void endRun(edm::Run const &, edm::EventSetup const &) override
Definition: SiStripBadComponentInfo.cc:150
SiStripBadComponentInfo::createSummary
void createSummary(MonitorElement *me, const std::map< std::pair< int, int >, float > &map)
Definition: SiStripBadComponentInfo.cc:247
SiStripBadComponentInfo::badStripME_
MonitorElement * badStripME_
Definition: SiStripBadComponentInfo.h:61
DQMStore.h
dqm::legacy::MonitorElement
Definition: MonitorElement.h:462
SiStripFedCabling
Contains cabling info at the device level, including DetId, APV pair numbers, hardware addresses,...
Definition: SiStripFedCabling.h:25
SiStripBadComponentInfo::mapBadFiber
std::map< std::pair< int, int >, float > mapBadFiber
Definition: SiStripBadComponentInfo.h:64
TrackerTopologyRcd.h
SiStripBadComponentInfo::fillBadComponentMaps
void fillBadComponentMaps(const SiStripQuality *siStripQuality)
Definition: SiStripBadComponentInfo.cc:58
SiStripBadComponentInfo::dqmEndJob
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
Definition: SiStripBadComponentInfo.cc:155
Run.h
SiStripBadComponentInfo::bookBadComponentHistos
void bookBadComponentHistos(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter)
Definition: SiStripBadComponentInfo.cc:173
SiStripBadComponentInfo::mapBadAPV
std::map< std::pair< int, int >, float > mapBadAPV
Definition: SiStripBadComponentInfo.h:63
edm::ParameterSet
Definition: ParameterSet.h:47
SiStripBadComponentInfo::badFiberME_
MonitorElement * badFiberME_
Definition: SiStripBadComponentInfo.h:60
SiStripBadComponentInfo
Definition: SiStripBadComponentInfo.h:41
edm::EventSetup
Definition: EventSetup.h:58
SiStripBadComponentInfo::addBadCompFromFedErr_
bool addBadCompFromFedErr_
Definition: SiStripBadComponentInfo.h:76
edm::ESGetToken< SiStripQuality, SiStripQualityRcd >
SiStripBadComponentInfo::fedErrCutoff_
float fedErrCutoff_
Definition: SiStripBadComponentInfo.h:77
DQMEDHarvester
Definition: DQMEDHarvester.py:1
SiStripBadComponentInfo::fedCabling_
const SiStripFedCabling * fedCabling_
Definition: SiStripBadComponentInfo.h:72
SiStripBadComponentInfo::nSubSystem_
int nSubSystem_
Definition: SiStripBadComponentInfo.h:68
SiStripQuality::BadComponent
Definition: SiStripQuality.h:34
SiStripBadComponentInfo::tTopo_
const TrackerTopology * tTopo_
Definition: SiStripBadComponentInfo.h:71
dqm::implementation::IGetter
Definition: DQMStore.h:484
SiStripBadComponentInfo::fedCablingToken_
edm::ESGetToken< SiStripFedCabling, SiStripFedCablingRcd > fedCablingToken_
Definition: SiStripBadComponentInfo.h:75
SiStripBadComponentInfo::checkBadComponents
void checkBadComponents(edm::EventSetup const &eSetup)
Definition: SiStripBadComponentInfo.cc:45
SiStripQuality.h
EventSetup.h
SiStripBadComponentInfo::mapBadStrip
std::map< std::pair< int, int >, float > mapBadStrip
Definition: SiStripBadComponentInfo.h:65
dqm::implementation::IBooker
Definition: DQMStore.h:43
genParticles_cff.map
map
Definition: genParticles_cff.py:11
ParameterSet.h
hlt_dqm_clientPB-live_cfg.me
me
Definition: hlt_dqm_clientPB-live_cfg.py:61
SiStripBadComponentInfo::badAPVME_
MonitorElement * badAPVME_
Definition: SiStripBadComponentInfo.h:59
SiStripQuality
Definition: SiStripQuality.h:32