CMS 3D CMS Logo

SiStripCablingTrackerMap.cc
Go to the documentation of this file.
3 
4 #include <sstream>
5 
7 
9 
12  tkMap_detCab = new TrackerMap("DetCabling");
13 }
14 
15 //------------------------------------------------------------------------------------------
16 
18  tkMap_detCab->save(true, 0, 0, "DetCabling.png");
19  tkMap_detCab->print(true, 0, 0, "DetCabling");
20 }
21 //------------------------------------------------------------------------------------------
22 
25  //&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
26  // get list of active detectors from SiStripDetCabling
27  //&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
28  std::vector<uint32_t> vdetId_;
30  for (std::vector<uint32_t>::const_iterator detid_iter = vdetId_.begin(); detid_iter != vdetId_.end(); detid_iter++) {
31  uint32_t detid = *detid_iter;
32  tkMap_detCab->fill(detid, 1);
33  }
34 }
void addActiveDetectorsRawIds(std::vector< uint32_t > &) const
SiStripCablingTrackerMap(const edm::ParameterSet &conf)
edm::ESHandle< SiStripDetCabling > SiStripDetCabling_
void save(bool print_total=true, float minval=0., float maxval=0., std::string s="svgmap.svg", int width=1500, int height=800)
Definition: TrackerMap.cc:811
void beginRun(const edm::Run &run, const edm::EventSetup &es) override
void analyze(const edm::Event &e, const edm::EventSetup &c) override
T get() const
Definition: EventSetup.h:73
void print(bool print_total=true, float minval=0., float maxval=0., std::string s="svgmap")
Definition: TrackerMap.cc:2943
void fill(int layer, int ring, int nmod, float x)
Definition: TrackerMap.cc:3289
Definition: Run.h:45