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);
54  void analysisOnDemand(const edm::EventSetup &eSetup_,
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 {
77  ;
78  }
79  MonitorElement *ProfileDistr;
80  MonitorElement *CumulDistr;
81  MonitorElement *SummaryOfProfileDistr;
82  MonitorElement *SummaryOfCumulDistr;
83  MonitorElement *SummaryDistr;
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 
159  DQMStore *dqmStore_;
161 };
162 
163 #endif
std::map< uint32_t, ModMEs > ModMEsMap_
std::unique_ptr< TkHistoMap > Tk_HM_L
std::vector< uint32_t > ModulesToBeExcluded_
void bookSummaryMEs(SiStripBaseCondObjDQM::ModMEs &CondObj_ME, const uint32_t &detId_, const TrackerTopology *tTopo)
void selectModules(std::vector< uint32_t > &detIds_, const TrackerTopology *tTopo)
void bookTkMap(const std::string &TkMapname)
std::unique_ptr< TkHistoMap > Tk_HM_H
edm::ESHandle< SiStripDetCabling > detCablingHandle_
#define nullptr
SiStripFolderOrganizer folder_organizer
std::vector< int > tkMapScaler
void saveTkMap(const std::string &TkMapname, double minValue, double maxValue)
void getSummaryMEs(ModMEs &CondObj_ME, const uint32_t &detId_, const TrackerTopology *tTopo)
virtual void fillMEsForLayer(uint32_t selDetId_, const TrackerTopology *tTopo)=0
void fillTkMap(const uint32_t &detid, const float &value)
void bookSummaryProfileMEs(SiStripBaseCondObjDQM::ModMEs &CondObj_ME, const uint32_t &detId_, const TrackerTopology *tTopo)
std::map< uint32_t, ModMEs > SummaryMEsMap_
dqm::legacy::MonitorElement MonitorElement
std::vector< uint32_t > getCabledModules()
SiStripDetInfoFileReader * reader
unsigned long long cacheID_memory
void analysisOnDemand(const edm::EventSetup &eSetup_, uint32_t detIdOnDemand)
SiStripBaseCondObjDQM(const edm::EventSetup &eSetup, edm::RunNumber_t iRun, edm::ParameterSet const &hPSet, edm::ParameterSet const &fPSet)
std::vector< uint32_t > GetSameLayerDetId(const std::vector< uint32_t > &activeDetIds, uint32_t selDetId, const TrackerTopology *tTopo)
std::pair< std::string, uint32_t > getStringNameAndId(const uint32_t &detId_, const TrackerTopology *tTopo)
Definition: value.py:1
virtual void getConditionObject(const edm::EventSetup &eSetup_)=0
virtual void getActiveDetIds(const edm::EventSetup &eSetup)=0
void analysis(const edm::EventSetup &eSetup_)
std::vector< uint32_t > ModulesToBeIncluded_
virtual void fillMEsForDet(const ModMEs &selModME_, uint32_t selDetId_, const TrackerTopology *tTopo)=0
virtual unsigned long long getCache(const edm::EventSetup &eSetup_)=0
void bookProfileMEs(SiStripBaseCondObjDQM::ModMEs &CondObj_ME, const uint32_t &detId_, const TrackerTopology *tTopo)
virtual void fillSummaryMEs(const std::vector< uint32_t > &selectedDetIds, const edm::EventSetup &es)
void getModMEs(ModMEs &CondObj_ME, const uint32_t &detId_, const TrackerTopology *tTopo)
std::vector< uint32_t > all_DetIds
dqm::legacy::DQMStore DQMStore
std::pair< std::string, uint32_t > getLayerNameAndId(const uint32_t &detId_, const TrackerTopology *tTopo)
std::vector< uint32_t > activeDetIds
unsigned int RunNumber_t
void bookSummaryCumulMEs(SiStripBaseCondObjDQM::ModMEs &CondObj_ME, const uint32_t &detId_, const TrackerTopology *tTopo)
unsigned long long cacheID_current
void bookCumulMEs(SiStripBaseCondObjDQM::ModMEs &CondObj_ME, const uint32_t &detId_, const TrackerTopology *tTopo)
std::vector< std::string > SubDetectorsToBeExcluded_
std::unique_ptr< TkHistoMap > Tk_HM_
const edm::EventSetup & eSetup_
virtual void fillModMEs(const std::vector< uint32_t > &selectedDetIds, const edm::EventSetup &es)