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
void createSummary(MonitorElement *me, const std::map< std::pair< int, int >, float > &map)
SiStripBadComponentInfo(edm::ParameterSet const &ps)
Constructor.
void endRun(edm::Run const &, edm::EventSetup const &) override
std::map< std::pair< int, int >, float > mapBadFiber
void fillBadComponentMaps(const SiStripQuality *siStripQuality)
void bookBadComponentHistos(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter)
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::unique_ptr< TrackerTopology > tTopo_
std::map< std::pair< int, int >, float > mapBadAPV
SiStripQualityWithFromFedErrorsHelper withFedErrHelper_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void checkBadComponents(edm::EventSetup const &eSetup)
std::map< std::pair< int, int >, float > mapBadStrip
static void fillDescription(edm::ParameterSetDescription &desc)
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken_
Definition: Run.h:45