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"
9 
10 #include <fstream>
11 #include <map>
12 #include <vector>
13 #include <string>
14 
15 class DQMStore;
16 class TkDetMap;
17 class TrackerMap;
18 class TrackerTopology;
19 class MonitorElement;
20 namespace edm { class EventSetup; }
21 
23 
24  public:
25 
26  // SiStripTrackerMapCreator();
29  bool readConfiguration();
30 
31  void create(const edm::ParameterSet & tkmapPset,
32  DQMStore* dqm_store, std::string& htype, const edm::EventSetup& eSetup);
33  void createForOffline(const edm::ParameterSet & tkmapPset,
34  DQMStore* dqm_store, std::string& htype, const edm::EventSetup& eSetup);
35 
36 
37  private:
38 
39  void paintTkMapFromAlarm(uint32_t det_id, const TrackerTopology* tTopo,
40  DQMStore* dqm_store, bool isBad=false, std::map<unsigned int,std::string>* badmodmap=0);
41  void paintTkMapFromHistogram(DQMStore* dqm_store, MonitorElement* me, std::string& map_type);
42  void setTkMapFromHistogram(DQMStore* dqm_store, std::string& htype);
43  void setTkMapFromAlarm(DQMStore* dqm_store, const edm::EventSetup& eSetup);
44  void setTkMapRange(std::string& map_type);
45  void setTkMapRangeOffline();
46  uint16_t getDetectorFlagAndComment(DQMStore* dqm_store, uint32_t det_id, const TrackerTopology* tTopo, std::ostringstream& comment);
47  void printBadModuleList(std::map<unsigned int,std::string>* badmodmap, const edm::EventSetup& eSetup);
48 
52 
53  float tkMapMax_;
54  float tkMapMin_;
58  int nDet;
62  // SiStripPsuDetIdMap psumap_;
63 };
64 #endif
void setTkMapFromHistogram(DQMStore *dqm_store, std::string &htype)
edm::ESHandle< SiStripDetCabling > detcabling_
void paintTkMapFromHistogram(DQMStore *dqm_store, MonitorElement *me, std::string &map_type)
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 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