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);
43  void setTkMapFromHistogram(DQMStore* dqm_store, std::string& htype);
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 
53 
54  float tkMapMax_;
55  float tkMapMin_;
59  int nDet;
63  // SiStripPsuDetIdMap psumap_;
64  uint32_t cached_detid;
65  int16_t cached_layer;
67 };
68 #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