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 
21 
23 
26 
29 
31 
32 #include <map>
33 #include <sstream>
34 #include <string>
35 #include <vector>
36 
37 class TrackerTopology;
39 public:
41  edm::RunNumber_t iRun,
42  edm::ParameterSet const &hPSet,
43  edm::ParameterSet const &fPSet);
44 
46 
47  virtual void getActiveDetIds(const edm::EventSetup &eSetup) = 0;
48 
49  void analysis(const edm::EventSetup &eSetup_);
50  void analysisOnDemand(const edm::EventSetup &eSetup_, uint32_t detIdOnDemand);
51  void analysisOnDemand(const edm::EventSetup &eSetup_, const std::vector<uint32_t> &detIdsOnDemand);
52  void analysisOnDemand(const edm::EventSetup &eSetup_,
53  std::string requestedSubDetector,
54  uint32_t requestedSide,
55  uint32_t requestedLayer);
56 
57  std::vector<uint32_t> getCabledModules();
58  void selectModules(std::vector<uint32_t> &detIds_, const TrackerTopology *tTopo);
59 
60  // virtual void fillTopSummaryMEs()=0;
61 
62  virtual unsigned long long getCache(const edm::EventSetup &eSetup_) = 0;
63  virtual void getConditionObject(const edm::EventSetup &eSetup_) = 0;
64 
65  virtual void end();
66 
67 protected:
68  struct ModMEs {
75  ;
76  }
82  };
83 
84  void getModMEs(ModMEs &CondObj_ME, const uint32_t &detId_, const TrackerTopology *tTopo);
85  void getSummaryMEs(ModMEs &CondObj_ME, const uint32_t &detId_, const TrackerTopology *tTopo);
86  std::pair<std::string, uint32_t> getLayerNameAndId(const uint32_t &detId_, const TrackerTopology *tTopo);
87  std::pair<std::string, uint32_t> getStringNameAndId(const uint32_t &detId_, const TrackerTopology *tTopo);
88  std::vector<uint32_t> GetSameLayerDetId(const std::vector<uint32_t> &activeDetIds,
89  uint32_t selDetId,
90  const TrackerTopology *tTopo);
91 
92  virtual void fillModMEs(const std::vector<uint32_t> &selectedDetIds, const edm::EventSetup &es);
93  virtual void fillSummaryMEs(const std::vector<uint32_t> &selectedDetIds, const edm::EventSetup &es);
94  virtual void fillMEsForDet(const ModMEs &selModME_, uint32_t selDetId_, const TrackerTopology *tTopo) = 0;
95  virtual void fillMEsForLayer(
96  /*std::map<uint32_t, ModMEs> selModMEsMap_, */ uint32_t selDetId_, const TrackerTopology *tTopo) = 0;
97 
98  void fillTkMap(const uint32_t &detid, const float &value);
99 
101 
105 
106  bool Mod_On_;
112  std::vector<int> tkMapScaler;
113 
114  // bool ActiveDetIds_On_;
115 
118 
119  std::map<uint32_t, ModMEs> ModMEsMap_;
120  std::map<uint32_t, ModMEs> SummaryMEsMap_;
121  std::vector<uint32_t> activeDetIds;
122  std::vector<uint32_t> all_DetIds;
123 
124  unsigned long long cacheID_memory;
125  unsigned long long cacheID_current;
126 
127  std::unique_ptr<TkHistoMap> Tk_HM_;
128  std::unique_ptr<TkHistoMap> Tk_HM_H;
129  std::unique_ptr<TkHistoMap> Tk_HM_L;
131 
132 private:
133  void bookProfileMEs(SiStripBaseCondObjDQM::ModMEs &CondObj_ME, const uint32_t &detId_, const TrackerTopology *tTopo);
134  void bookCumulMEs(SiStripBaseCondObjDQM::ModMEs &CondObj_ME, const uint32_t &detId_, const TrackerTopology *tTopo);
136  const uint32_t &detId_,
137  const TrackerTopology *tTopo);
139  const uint32_t &detId_,
140  const TrackerTopology *tTopo);
141  void bookSummaryMEs(SiStripBaseCondObjDQM::ModMEs &CondObj_ME, const uint32_t &detId_, const TrackerTopology *tTopo);
142 
143  void bookTkMap(const std::string &TkMapname);
144 
145  void saveTkMap(const std::string &TkMapname, double minValue, double maxValue);
146 
147  std::vector<uint32_t> ModulesToBeExcluded_;
148  std::vector<uint32_t> ModulesToBeIncluded_;
149  std::vector<std::string> SubDetectorsToBeExcluded_;
150 
152 
154 
159 };
160 
161 #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_
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
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)