CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiStripCablingTrackerMap.cc
Go to the documentation of this file.
3 
4 #include <sstream>
5 
7  conf_(conf)
8 {
9 }
10 
12 
14 
16  tkMap_detCab=new TrackerMap( "DetCabling" );
17 }
18 
19 //------------------------------------------------------------------------------------------
20 
22  tkMap_detCab->save(true,0,0,"DetCabling.png");
23  tkMap_detCab->print(true,0,0,"DetCabling");
24 
25 }
26 //------------------------------------------------------------------------------------------
27 
29 
31  //&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
32  // get list of active detectors from SiStripDetCabling
33  //&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
34  std::vector<uint32_t> vdetId_;
35  SiStripDetCabling_->addActiveDetectorsRawIds(vdetId_);
36  for (std::vector<uint32_t>::const_iterator detid_iter=vdetId_.begin();detid_iter!=vdetId_.end();detid_iter++){
37  uint32_t detid = *detid_iter;
38  tkMap_detCab->fill(detid,1);
39  }
40 }
41 
42 
SiStripCablingTrackerMap(const edm::ParameterSet &conf)
void analyze(const edm::Event &e, const edm::EventSetup &c)
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:699
const T & get() const
Definition: EventSetup.h:56
void print(bool print_total=true, float minval=0., float maxval=0., std::string s="svgmap")
Definition: TrackerMap.cc:2433
void beginRun(const edm::Run &run, const edm::EventSetup &es)
void fill(int layer, int ring, int nmod, float x)
Definition: TrackerMap.cc:2777
Definition: Run.h:43