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 
35 
36 #include <fstream>
37 #include <iostream>
38 #include <map>
39 #include <string>
40 #include <vector>
41 
43 public:
46  ~SiStripBadComponentInfo() override;
47 
48  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions) {
51  descriptions.add("siStripBadComponentInfo", desc);
52  }
53 
54 protected:
55  void endRun(edm::Run const&, edm::EventSetup const&) override;
57  DQMStore::IGetter&) override; // performed in the endJob
58 
59 private:
60  void checkBadComponents(edm::EventSetup const& eSetup);
62  void fillBadComponentMaps(const SiStripQuality* siStripQuality);
63  void fillBadComponentMaps(int xbin, int component, SiStripQuality::BadComponent const& BC);
64  void createSummary(MonitorElement* me, const std::map<std::pair<int, int>, float>& map);
65 
69 
70  std::map<std::pair<int, int>, float> mapBadAPV;
71  std::map<std::pair<int, int>, float> mapBadFiber;
72  std::map<std::pair<int, int>, float> mapBadStrip;
73 
76 
78  std::unique_ptr<TrackerTopology> tTopo_;
80 };
81 #endif
SiStripQualityWithFromFedErrorsHelper::fillDescription
static void fillDescription(edm::ParameterSetDescription &desc)
Definition: SiStripQualityWithFromFedErrorsHelper.h:62
ConfigurationDescriptions.h
DQMEDHarvester.h
SiStripBadComponentInfo::bookedStatus_
bool bookedStatus_
Definition: SiStripBadComponentInfo.h:74
SiStripBadComponentInfo::tTopoToken_
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken_
Definition: SiStripBadComponentInfo.h:77
SiStripQualityWithFromFedErrorsHelper
Definition: SiStripQualityWithFromFedErrorsHelper.h:42
SiStripBadComponentInfo::SiStripBadComponentInfo
SiStripBadComponentInfo(edm::ParameterSet const &ps)
Constructor.
Definition: SiStripBadComponentInfo.cc:23
edm::Run
Definition: Run.h:45
LuminosityBlock.h
SiStripBadComponentInfo::~SiStripBadComponentInfo
~SiStripBadComponentInfo() override
Definition: SiStripBadComponentInfo.cc:32
SiStripBadComponentInfo::endRun
void endRun(edm::Run const &, edm::EventSetup const &) override
Definition: SiStripBadComponentInfo.cc:39
SiStripBadComponentInfo::createSummary
void createSummary(MonitorElement *me, const std::map< std::pair< int, int >, float > &map)
Definition: SiStripBadComponentInfo.cc:229
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
SiStripBadComponentInfo::badStripME_
MonitorElement * badStripME_
Definition: SiStripBadComponentInfo.h:68
DQMStore.h
dqm::legacy::MonitorElement
Definition: MonitorElement.h:462
SiStripBadComponentInfo::mapBadFiber
std::map< std::pair< int, int >, float > mapBadFiber
Definition: SiStripBadComponentInfo.h:71
TrackerTopologyRcd.h
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
SiStripBadComponentInfo::fillBadComponentMaps
void fillBadComponentMaps(const SiStripQuality *siStripQuality)
Definition: SiStripBadComponentInfo.cc:50
SiStripBadComponentInfo::dqmEndJob
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
Definition: SiStripBadComponentInfo.cc:142
SiStripBadComponentInfo::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: SiStripBadComponentInfo.h:48
SiStripBadComponentInfo::tTopo_
std::unique_ptr< TrackerTopology > tTopo_
Definition: SiStripBadComponentInfo.h:78
SiStripQualityWithFromFedErrorsHelper.h
Run.h
SiStripBadComponentInfo::bookBadComponentHistos
void bookBadComponentHistos(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter)
Definition: SiStripBadComponentInfo.cc:155
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
SiStripBadComponentInfo::mapBadAPV
std::map< std::pair< int, int >, float > mapBadAPV
Definition: SiStripBadComponentInfo.h:70
edm::ParameterSet
Definition: ParameterSet.h:47
SiStripBadComponentInfo::badFiberME_
MonitorElement * badFiberME_
Definition: SiStripBadComponentInfo.h:67
SiStripBadComponentInfo
Definition: SiStripBadComponentInfo.h:42
edm::EventSetup
Definition: EventSetup.h:58
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd >
DQMEDHarvester
Definition: DQMEDHarvester.py:1
SiStripBadComponentInfo::nSubSystem_
int nSubSystem_
Definition: SiStripBadComponentInfo.h:75
SiStripBadComponentInfo::withFedErrHelper_
SiStripQualityWithFromFedErrorsHelper withFedErrHelper_
Definition: SiStripBadComponentInfo.h:79
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
SiStripQuality::BadComponent
Definition: SiStripQuality.h:34
dqm::implementation::IGetter
Definition: DQMStore.h:484
SiStripBadComponentInfo::checkBadComponents
void checkBadComponents(edm::EventSetup const &eSetup)
SiStripQuality.h
EventSetup.h
SiStripBadComponentInfo::mapBadStrip
std::map< std::pair< int, int >, float > mapBadStrip
Definition: SiStripBadComponentInfo.h:72
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:66
SiStripQuality
Definition: SiStripQuality.h:32