test
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 #include <TTree.h>
16 
17 class DQMStore;
18 class TkDetMap;
19 class TrackerMap;
20 class TrackerTopology;
21 class MonitorElement;
22 namespace edm { class EventSetup; }
23 
25 
26  public:
27 
28  // SiStripTrackerMapCreator();
31  bool readConfiguration();
32 
33  void create(const edm::ParameterSet & tkmapPset,
34  DQMStore* dqm_store, std::string& htype, const edm::EventSetup& eSetup);
35  void createForOffline(const edm::ParameterSet & tkmapPset,
36  DQMStore* dqm_store, std::string& htype, const edm::EventSetup& eSetup);
37  void createInfoFile(std::vector<std::string> map_names, TTree* tkinfo_tree, DQMStore* dqm_store, std::vector<uint32_t> detidList);
38 
39 
40  private:
41 
42  void paintTkMapFromAlarm(uint32_t det_id, const TrackerTopology* tTopo,
43  DQMStore* dqm_store, bool isBad=false, std::map<unsigned int,std::string>* badmodmap=0);
44  void paintTkMapFromHistogram(DQMStore* dqm_store, MonitorElement* me, std::string& map_type, std::vector<std::pair<float,uint32_t> >* topNmodVec);
45  void setTkMapFromHistogram(DQMStore* dqm_store, std::string& htype, const edm::EventSetup& eSetup);
46  void setTkMapFromAlarm(DQMStore* dqm_store, const edm::EventSetup& eSetup);
47  void setTkMapRange(std::string& map_type);
48  void setTkMapRangeOffline();
49  uint16_t getDetectorFlagAndComment(DQMStore* dqm_store, uint32_t det_id, const TrackerTopology* tTopo, std::ostringstream& comment);
50  uint16_t getDetectorFlag(uint32_t det_id) { return detflag_.find(det_id) != detflag_.end() ? detflag_[det_id] : 0; }
51  void printBadModuleList(std::map<unsigned int,std::string>* badmodmap, const edm::EventSetup& eSetup);
52  void printTopModules(std::vector<std::pair<float,uint32_t> >* topNmodVec, const edm::EventSetup& eSetup);
53 
54 
59 
60  float tkMapMax_;
61  float tkMapMin_;
65  int nDet;
69  // SiStripPsuDetIdMap psumap_;
70  uint32_t cached_detid;
71  int16_t cached_layer;
72  std::map<uint32_t, uint16_t> detflag_;
74  bool topModules;
75  uint32_t numTopModules;
77 };
78 #endif
uint16_t getDetectorFlag(uint32_t det_id)
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)
std::map< uint32_t, uint16_t > detflag_
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 createInfoFile(std::vector< std::string > map_names, TTree *tkinfo_tree, DQMStore *dqm_store, std::vector< uint32_t > detidList)
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