CMS 3D CMS Logo

SiStripBaseCondObjDQM.h
Go to the documentation of this file.
1 #ifndef SiStripMonitorSummary_SiStripBaseCondObjDQM_h
2 #define SiStripMonitorSummary_SiStripBaseCondObjDQM_h
3 
9 
13 
15 
18 
20 
22 
25 
28 
30 
31 #include <map>
32 #include <sstream>
33 #include <string>
34 #include <vector>
35 
36 class TrackerTopology;
38 public:
41 
43  edm::RunNumber_t iRun,
44  edm::ParameterSet const &hPSet,
45  edm::ParameterSet const &fPSet);
46 
48 
49  virtual void getActiveDetIds(const edm::EventSetup &eSetup) = 0;
50 
51  void analysis(const edm::EventSetup &eSetup_);
52  void analysisOnDemand(const edm::EventSetup &eSetup_, uint32_t detIdOnDemand);
53  void analysisOnDemand(const edm::EventSetup &eSetup_, const std::vector<uint32_t> &detIdsOnDemand);
55  std::string requestedSubDetector,
56  uint32_t requestedSide,
57  uint32_t requestedLayer);
58 
59  std::vector<uint32_t> getCabledModules();
60  void selectModules(std::vector<uint32_t> &detIds_, const TrackerTopology *tTopo);
61 
62  // virtual void fillTopSummaryMEs()=0;
63 
64  virtual unsigned long long getCache(const edm::EventSetup &eSetup_) = 0;
65  virtual void getConditionObject(const edm::EventSetup &eSetup_) = 0;
66 
67  virtual void end();
68 
69 protected:
70  struct ModMEs {
72  : ProfileDistr(nullptr),
73  CumulDistr(nullptr),
74  SummaryOfProfileDistr(nullptr),
75  SummaryOfCumulDistr(nullptr),
76  SummaryDistr(nullptr) {
77  ;
78  }
84  };
85 
86  void getModMEs(ModMEs &CondObj_ME, const uint32_t &detId_, const TrackerTopology *tTopo);
87  void getSummaryMEs(ModMEs &CondObj_ME, const uint32_t &detId_, const TrackerTopology *tTopo);
88  std::pair<std::string, uint32_t> getLayerNameAndId(const uint32_t &detId_, const TrackerTopology *tTopo);
89  std::pair<std::string, uint32_t> getStringNameAndId(const uint32_t &detId_, const TrackerTopology *tTopo);
90  std::vector<uint32_t> GetSameLayerDetId(const std::vector<uint32_t> &activeDetIds,
91  uint32_t selDetId,
92  const TrackerTopology *tTopo);
93 
94  virtual void fillModMEs(const std::vector<uint32_t> &selectedDetIds, const edm::EventSetup &es);
95  virtual void fillSummaryMEs(const std::vector<uint32_t> &selectedDetIds, const edm::EventSetup &es);
96  virtual void fillMEsForDet(const ModMEs &selModME_, uint32_t selDetId_, const TrackerTopology *tTopo) = 0;
97  virtual void fillMEsForLayer(
98  /*std::map<uint32_t, ModMEs> selModMEsMap_, */ uint32_t selDetId_, const TrackerTopology *tTopo) = 0;
99 
100  void fillTkMap(const uint32_t &detid, const float &value);
101 
103 
107 
108  bool Mod_On_;
114  std::vector<int> tkMapScaler;
115 
116  // bool ActiveDetIds_On_;
117 
120 
121  std::map<uint32_t, ModMEs> ModMEsMap_;
122  std::map<uint32_t, ModMEs> SummaryMEsMap_;
123  std::vector<uint32_t> activeDetIds;
124  std::vector<uint32_t> all_DetIds;
125 
126  unsigned long long cacheID_memory;
127  unsigned long long cacheID_current;
128 
129  std::unique_ptr<TkHistoMap> Tk_HM_;
130  std::unique_ptr<TkHistoMap> Tk_HM_H;
131  std::unique_ptr<TkHistoMap> Tk_HM_L;
133 
134 private:
135  void bookProfileMEs(SiStripBaseCondObjDQM::ModMEs &CondObj_ME, const uint32_t &detId_, const TrackerTopology *tTopo);
136  void bookCumulMEs(SiStripBaseCondObjDQM::ModMEs &CondObj_ME, const uint32_t &detId_, const TrackerTopology *tTopo);
138  const uint32_t &detId_,
139  const TrackerTopology *tTopo);
141  const uint32_t &detId_,
142  const TrackerTopology *tTopo);
143  void bookSummaryMEs(SiStripBaseCondObjDQM::ModMEs &CondObj_ME, const uint32_t &detId_, const TrackerTopology *tTopo);
144 
145  void bookTkMap(const std::string &TkMapname);
146 
147  void saveTkMap(const std::string &TkMapname, double minValue, double maxValue);
148 
149  std::vector<uint32_t> ModulesToBeExcluded_;
150  std::vector<uint32_t> ModulesToBeIncluded_;
151  std::vector<std::string> SubDetectorsToBeExcluded_;
152 
154 
156 
161 };
162 
163 #endif
SiStripBaseCondObjDQM::Tk_HM_L
std::unique_ptr< TkHistoMap > Tk_HM_L
Definition: SiStripBaseCondObjDQM.h:131
edm::RunNumber_t
unsigned int RunNumber_t
Definition: RunLumiEventNumber.h:14
SiStripBaseCondObjDQM::hidmanager
SiStripHistoId hidmanager
Definition: SiStripBaseCondObjDQM.h:157
SiStripBaseCondObjDQM::folder_organizer
SiStripFolderOrganizer folder_organizer
Definition: SiStripBaseCondObjDQM.h:158
SiStripBaseCondObjDQM::saveTkMap
void saveTkMap(const std::string &TkMapname, double minValue, double maxValue)
Definition: SiStripBaseCondObjDQM.cc:1147
SiStripBaseCondObjDQM::getActiveDetIds
virtual void getActiveDetIds(const edm::EventSetup &eSetup)=0
MessageLogger.h
SiStripFolderOrganizer.h
SiStripHistoId.h
SiStripBaseCondObjDQM::ModMEs::CumulDistr
MonitorElement * CumulDistr
Definition: SiStripBaseCondObjDQM.h:80
SiStripBaseCondObjDQM::ModMEs::ProfileDistr
MonitorElement * ProfileDistr
Definition: SiStripBaseCondObjDQM.h:79
SiStripBaseCondObjDQM::ModMEsMap_
std::map< uint32_t, ModMEs > ModMEsMap_
Definition: SiStripBaseCondObjDQM.h:121
ESHandle.h
SiStripBaseCondObjDQM::analysisOnDemand
void analysisOnDemand(const edm::EventSetup &eSetup_, uint32_t detIdOnDemand)
Definition: SiStripBaseCondObjDQM.cc:129
SiStripBaseCondObjDQM::bookSummaryProfileMEs
void bookSummaryProfileMEs(SiStripBaseCondObjDQM::ModMEs &CondObj_ME, const uint32_t &detId_, const TrackerTopology *tTopo)
Definition: SiStripBaseCondObjDQM.cc:545
SiStripBaseCondObjDQM::bookSummaryMEs
void bookSummaryMEs(SiStripBaseCondObjDQM::ModMEs &CondObj_ME, const uint32_t &detId_, const TrackerTopology *tTopo)
Definition: SiStripBaseCondObjDQM.cc:831
TrackerTopology
Definition: TrackerTopology.h:16
SiStripBaseCondObjDQM::activeDetIds
std::vector< uint32_t > activeDetIds
Definition: SiStripBaseCondObjDQM.h:123
SiStripBaseCondObjDQM::getConditionObject
virtual void getConditionObject(const edm::EventSetup &eSetup_)=0
SiStripBaseCondObjDQM::ModulesToBeIncluded_
std::vector< uint32_t > ModulesToBeIncluded_
Definition: SiStripBaseCondObjDQM.h:150
SiStripBaseCondObjDQM::eSetup_
const edm::EventSetup & eSetup_
Definition: SiStripBaseCondObjDQM.h:104
SiStripBaseCondObjDQM::analysis
void analysis(const edm::EventSetup &eSetup_)
Definition: SiStripBaseCondObjDQM.cc:53
DQMStore.h
SiStripDetId.h
dqm::legacy::MonitorElement
Definition: MonitorElement.h:461
SiStripBaseCondObjDQM::ModMEs::SummaryOfProfileDistr
MonitorElement * SummaryOfProfileDistr
Definition: SiStripBaseCondObjDQM.h:81
DetIdSelector.h
SiStripBaseCondObjDQM::HistoMaps_On_
bool HistoMaps_On_
Definition: SiStripBaseCondObjDQM.h:109
SiStripBaseCondObjDQM::tkMapScaler
std::vector< int > tkMapScaler
Definition: SiStripBaseCondObjDQM.h:114
SiStripDetInfoFileReader
Definition: SiStripDetInfoFileReader.h:30
SiStripBaseCondObjDQM::SummaryOnLayerLevel_On_
bool SummaryOnLayerLevel_On_
Definition: SiStripBaseCondObjDQM.h:110
SiStripBaseCondObjDQM
Definition: SiStripBaseCondObjDQM.h:37
SiStripBaseCondObjDQM::tkMap
TrackerMap * tkMap
Definition: SiStripBaseCondObjDQM.h:132
SiStripBaseCondObjDQM::SummaryMEsMap_
std::map< uint32_t, ModMEs > SummaryMEsMap_
Definition: SiStripBaseCondObjDQM.h:122
SiStripBaseCondObjDQM::ModulesToBeExcluded_
std::vector< uint32_t > ModulesToBeExcluded_
Definition: SiStripBaseCondObjDQM.h:149
SiStripBaseCondObjDQM::bookTkMap
void bookTkMap(const std::string &TkMapname)
Definition: SiStripBaseCondObjDQM.cc:1141
SiStripBaseCondObjDQM::reader
SiStripDetInfoFileReader * reader
Definition: SiStripBaseCondObjDQM.h:102
SiStripBaseCondObjDQM::fillMEsForLayer
virtual void fillMEsForLayer(uint32_t selDetId_, const TrackerTopology *tTopo)=0
SiStripBaseCondObjDQM::Tk_HM_H
std::unique_ptr< TkHistoMap > Tk_HM_H
Definition: SiStripBaseCondObjDQM.h:130
SiStripBaseCondObjDQM::ModMEs::SummaryDistr
MonitorElement * SummaryDistr
Definition: SiStripBaseCondObjDQM.h:83
SiStripBaseCondObjDQM::fillTkMap
void fillTkMap(const uint32_t &detid, const float &value)
Definition: SiStripBaseCondObjDQM.cc:1144
SiStripBaseCondObjDQM::bookProfileMEs
void bookProfileMEs(SiStripBaseCondObjDQM::ModMEs &CondObj_ME, const uint32_t &detId_, const TrackerTopology *tTopo)
Definition: SiStripBaseCondObjDQM.cc:465
SiStripBaseCondObjDQM::getLayerNameAndId
std::pair< std::string, uint32_t > getLayerNameAndId(const uint32_t &detId_, const TrackerTopology *tTopo)
Definition: SiStripBaseCondObjDQM.cc:913
TrackerTopology.h
SiStripBaseCondObjDQM::GrandSummary_On_
bool GrandSummary_On_
Definition: SiStripBaseCondObjDQM.h:112
SiStripDetCabling.h
TrackerTopologyRcd.h
dqm::legacy::DQMStore
Definition: DQMStore.h:727
SiStripBaseCondObjDQM::Mod_On_
bool Mod_On_
Definition: SiStripBaseCondObjDQM.h:108
Service.h
SiStripBaseCondObjDQM::all_DetIds
std::vector< uint32_t > all_DetIds
Definition: SiStripBaseCondObjDQM.h:124
SiStripBaseCondObjDQM::Tk_HM_
std::unique_ptr< TkHistoMap > Tk_HM_
Definition: SiStripBaseCondObjDQM.h:129
edm::ESHandle< SiStripDetCabling >
SiStripBaseCondObjDQM::~SiStripBaseCondObjDQM
virtual ~SiStripBaseCondObjDQM()
Definition: SiStripBaseCondObjDQM.h:47
SiStripBaseCondObjDQM::cacheID_memory
unsigned long long cacheID_memory
Definition: SiStripBaseCondObjDQM.h:126
SiStripDetInfoFileReader.h
TrackerMap
Definition: TrackerMap.h:76
TkHistoMap.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
SiStripBaseCondObjDQM::CondObj_fillId_
std::string CondObj_fillId_
Definition: SiStripBaseCondObjDQM.h:118
SiStripBaseCondObjDQM::getStringNameAndId
std::pair< std::string, uint32_t > getStringNameAndId(const uint32_t &detId_, const TrackerTopology *tTopo)
Definition: SiStripBaseCondObjDQM.cc:997
edm::ParameterSet
Definition: ParameterSet.h:36
SiStripBaseCondObjDQM::selectModules
void selectModules(std::vector< uint32_t > &detIds_, const TrackerTopology *tTopo)
Definition: SiStripBaseCondObjDQM.cc:173
SiStripBaseCondObjDQM::MonitorElement
dqm::legacy::MonitorElement MonitorElement
Definition: SiStripBaseCondObjDQM.h:40
value
Definition: value.py:1
SiStripBaseCondObjDQM::fillMEsForDet
virtual void fillMEsForDet(const ModMEs &selModME_, uint32_t selDetId_, const TrackerTopology *tTopo)=0
edm::EventSetup
Definition: EventSetup.h:57
TrackerMap.h
SiStripBaseCondObjDQM::ModMEs::ModMEs
ModMEs()
Definition: SiStripBaseCondObjDQM.h:71
SiStripBaseCondObjDQM::maxValue
double maxValue
Definition: SiStripBaseCondObjDQM.h:113
SiStripBaseCondObjDQM::getModMEs
void getModMEs(ModMEs &CondObj_ME, const uint32_t &detId_, const TrackerTopology *tTopo)
Definition: SiStripBaseCondObjDQM.cc:363
SiStripBaseCondObjDQM::end
virtual void end()
Definition: SiStripBaseCondObjDQM.cc:1193
SiStripBaseCondObjDQM::ModMEs
Definition: SiStripBaseCondObjDQM.h:70
SiStripHistoId
Definition: SiStripHistoId.h:25
SiStripBaseCondObjDQM::getCabledModules
std::vector< uint32_t > getCabledModules()
Definition: SiStripBaseCondObjDQM.cc:159
SiStripBaseCondObjDQM::bookSummaryCumulMEs
void bookSummaryCumulMEs(SiStripBaseCondObjDQM::ModMEs &CondObj_ME, const uint32_t &detId_, const TrackerTopology *tTopo)
Definition: SiStripBaseCondObjDQM.cc:771
SiStripBaseCondObjDQM::detCablingHandle_
edm::ESHandle< SiStripDetCabling > detCablingHandle_
Definition: SiStripBaseCondObjDQM.h:153
DetId.h
SiStripBaseCondObjDQM::CondObj_name_
std::string CondObj_name_
Definition: SiStripBaseCondObjDQM.h:119
SiStripBaseCondObjDQM::SummaryOnStringLevel_On_
bool SummaryOnStringLevel_On_
Definition: SiStripBaseCondObjDQM.h:111
SiStripBaseCondObjDQM::bookCumulMEs
void bookCumulMEs(SiStripBaseCondObjDQM::ModMEs &CondObj_ME, const uint32_t &detId_, const TrackerTopology *tTopo)
Definition: SiStripBaseCondObjDQM.cc:509
SiStripFolderOrganizer
Definition: SiStripFolderOrganizer.h:27
SiStripBaseCondObjDQM::ModMEs::SummaryOfCumulDistr
MonitorElement * SummaryOfCumulDistr
Definition: SiStripBaseCondObjDQM.h:82
SiStripBaseCondObjDQM::SiStripBaseCondObjDQM
SiStripBaseCondObjDQM(const edm::EventSetup &eSetup, edm::RunNumber_t iRun, edm::ParameterSet const &hPSet, edm::ParameterSet const &fPSet)
Definition: SiStripBaseCondObjDQM.cc:10
SiStripBaseCondObjDQM::fPSet_
edm::ParameterSet fPSet_
Definition: SiStripBaseCondObjDQM.h:106
EventSetup.h
SiStripBaseCondObjDQM::getSummaryMEs
void getSummaryMEs(ModMEs &CondObj_ME, const uint32_t &detId_, const TrackerTopology *tTopo)
Definition: SiStripBaseCondObjDQM.cc:399
SiStripBaseCondObjDQM::hPSet_
edm::ParameterSet hPSet_
Definition: SiStripBaseCondObjDQM.h:105
SiStripBaseCondObjDQM::SubDetectorsToBeExcluded_
std::vector< std::string > SubDetectorsToBeExcluded_
Definition: SiStripBaseCondObjDQM.h:151
SiStripBaseCondObjDQM::DQMStore
dqm::legacy::DQMStore DQMStore
Definition: SiStripBaseCondObjDQM.h:39
SiStripBaseCondObjDQM::minValue
double minValue
Definition: SiStripBaseCondObjDQM.h:113
SiStripBaseCondObjDQM::fillModMEs
virtual void fillModMEs(const std::vector< uint32_t > &selectedDetIds, const edm::EventSetup &es)
Definition: SiStripBaseCondObjDQM.cc:1198
SiStripBaseCondObjDQM::condDataMonitoringMode_
std::string condDataMonitoringMode_
Definition: SiStripBaseCondObjDQM.h:155
SiStripBaseCondObjDQM::getCache
virtual unsigned long long getCache(const edm::EventSetup &eSetup_)=0
SiStripDetCablingRcd.h
SiStripBaseCondObjDQM::runNumber_
edm::RunNumber_t runNumber_
Definition: SiStripBaseCondObjDQM.h:160
ParameterSet.h
SiStripBaseCondObjDQM::fillSummaryMEs
virtual void fillSummaryMEs(const std::vector< uint32_t > &selectedDetIds, const edm::EventSetup &es)
Definition: SiStripBaseCondObjDQM.cc:1213
SiStripBaseCondObjDQM::dqmStore_
DQMStore * dqmStore_
Definition: SiStripBaseCondObjDQM.h:159
SiStripBaseCondObjDQM::GetSameLayerDetId
std::vector< uint32_t > GetSameLayerDetId(const std::vector< uint32_t > &activeDetIds, uint32_t selDetId, const TrackerTopology *tTopo)
Definition: SiStripBaseCondObjDQM.cc:1114
SiStripBaseCondObjDQM::cacheID_current
unsigned long long cacheID_current
Definition: SiStripBaseCondObjDQM.h:127