CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiStripTrackerMapCreator.h
Go to the documentation of this file.
1 #ifndef _SiStripTrackerMapCreator_h_
2 #define _SiStripTrackerMapCreator_h_
3 
8 //#include "CalibTracker/SiStripDCS/interface/SiStripPsuDetIdMap.h"
10 
11 #include <fstream>
12 #include <map>
13 #include <vector>
14 #include <string>
15 
16 class DQMStore;
17 class TkDetMap;
18 class TrackerMap;
19 class TrackerTopology;
20 class MonitorElement;
21 namespace edm { class EventSetup; }
22 
24 
25  public:
26 
27  // SiStripTrackerMapCreator();
30  bool readConfiguration();
31 
32  void create(const edm::ParameterSet & tkmapPset,
33  DQMStore* dqm_store, std::string& htype, const edm::EventSetup& eSetup);
34  void createForOffline(const edm::ParameterSet & tkmapPset,
35  DQMStore* dqm_store, std::string& htype, const edm::EventSetup& eSetup);
36 
37 
38  private:
39 
40  void paintTkMapFromAlarm(uint32_t det_id, const TrackerTopology* tTopo,
41  DQMStore* dqm_store, bool isBad=false, std::map<unsigned int,std::string>* badmodmap=0);
42  void paintTkMapFromHistogram(DQMStore* dqm_store, MonitorElement* me, std::string& map_type, std::vector<std::pair<float,uint32_t> >* topNmodVec);
43  void setTkMapFromHistogram(DQMStore* dqm_store, std::string& htype, const edm::EventSetup& eSetup);
44  void setTkMapFromAlarm(DQMStore* dqm_store, const edm::EventSetup& eSetup);
45  void setTkMapRange(std::string& map_type);
46  void setTkMapRangeOffline();
47  uint16_t getDetectorFlagAndComment(DQMStore* dqm_store, uint32_t det_id, const TrackerTopology* tTopo, std::ostringstream& comment);
48  void printBadModuleList(std::map<unsigned int,std::string>* badmodmap, const edm::EventSetup& eSetup);
49  void printTopModules(std::vector<std::pair<float,uint32_t> >* topNmodVec, const edm::EventSetup& eSetup);
50 
51 
56 
57  float tkMapMax_;
58  float tkMapMin_;
62  int nDet;
66  // SiStripPsuDetIdMap psumap_;
67  uint32_t cached_detid;
68  int16_t cached_layer;
70  bool topModules;
71  uint32_t numTopModules;
73 };
74 #endif
edm::ESHandle< SiStripDetCabling > detcabling_
uint16_t getDetectorFlagAndComment(DQMStore *dqm_store, uint32_t det_id, const TrackerTopology *tTopo, std::ostringstream &comment)
void printBadModuleList(std::map< unsigned int, std::string > *badmodmap, const edm::EventSetup &eSetup)
void paintTkMapFromAlarm(uint32_t det_id, const TrackerTopology *tTopo, DQMStore *dqm_store, bool isBad=false, std::map< unsigned int, std::string > *badmodmap=0)
void setTkMapFromAlarm(DQMStore *dqm_store, const edm::EventSetup &eSetup)
const edm::EventSetup & eSetup_
void setTkMapFromHistogram(DQMStore *dqm_store, std::string &htype, const edm::EventSetup &eSetup)
void paintTkMapFromHistogram(DQMStore *dqm_store, MonitorElement *me, std::string &map_type, std::vector< std::pair< float, uint32_t > > *topNmodVec)
void printTopModules(std::vector< std::pair< float, uint32_t > > *topNmodVec, const edm::EventSetup &eSetup)
void createForOffline(const edm::ParameterSet &tkmapPset, DQMStore *dqm_store, std::string &htype, const edm::EventSetup &eSetup)
SiStripTrackerMapCreator(const edm::EventSetup &eSetup)
void setTkMapRange(std::string &map_type)
void create(const edm::ParameterSet &tkmapPset, DQMStore *dqm_store, std::string &htype, const edm::EventSetup &eSetup)
#define comment(par)
Definition: vmac.h:161