CMS 3D CMS Logo

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=nullptr);
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_;
66  int nDet;
70  // SiStripPsuDetIdMap psumap_;
72  int16_t cached_layer;
73  std::map<uint32_t, uint16_t> detflag_;
75  bool topModules;
76  uint32_t numTopModules;
78 };
79 #endif
uint16_t getDetectorFlag(uint32_t det_id)
def create(alignables, pedeDump, additionalData, outputFile, config)
edm::ESHandle< SiStripDetCabling > detcabling_
std::map< uint32_t, uint16_t > detflag_
const edm::EventSetup & eSetup_
Definition: DetId.h:18
HLT enums.
#define comment(par)
Definition: vmac.h:163