CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
SiStripCablingTrackerMap Class Reference

#include <SiStripCablingTrackerMap.h>

Inheritance diagram for SiStripCablingTrackerMap:
edm::EDAnalyzer

Public Member Functions

void analyze (const edm::Event &e, const edm::EventSetup &c)
 
void beginRun (const edm::Run &run, const edm::EventSetup &es)
 
void endJob ()
 
 SiStripCablingTrackerMap (const edm::ParameterSet &conf)
 
 ~SiStripCablingTrackerMap ()
 
- Public Member Functions inherited from edm::EDAnalyzer
 EDAnalyzer ()
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 

Private Attributes

edm::ParameterSet conf_
 
edm::ESHandle< SiStripDetCablingSiStripDetCabling_
 
TrackerMaptkMap_detCab
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
typedef WorkerT< EDAnalyzerWorkerType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::EDAnalyzer
CurrentProcessingContext const * currentContext () const
 

Detailed Description

Definition at line 16 of file SiStripCablingTrackerMap.h.

Constructor & Destructor Documentation

SiStripCablingTrackerMap::SiStripCablingTrackerMap ( const edm::ParameterSet conf)

Definition at line 6 of file SiStripCablingTrackerMap.cc.

6  :
7  conf_(conf)
8 {
9 }
SiStripCablingTrackerMap::~SiStripCablingTrackerMap ( )

Definition at line 11 of file SiStripCablingTrackerMap.cc.

11 {}

Member Function Documentation

void SiStripCablingTrackerMap::analyze ( const edm::Event e,
const edm::EventSetup c 
)
virtual

Implements edm::EDAnalyzer.

Definition at line 28 of file SiStripCablingTrackerMap.cc.

References cond::rpcobgas::detid, TrackerMap::fill(), edm::EventSetup::get(), SiStripDetCabling_, and tkMap_detCab.

28  {
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 }
edm::ESHandle< SiStripDetCabling > SiStripDetCabling_
void fill(int layer, int ring, int nmod, float x)
Definition: TrackerMap.cc:2548
void SiStripCablingTrackerMap::beginRun ( const edm::Run run,
const edm::EventSetup es 
)
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 13 of file SiStripCablingTrackerMap.cc.

References edm::EventSetup::get(), SiStripDetCabling_, and tkMap_detCab.

13  {
14 
16  tkMap_detCab=new TrackerMap( "DetCabling" );
17 }
edm::ESHandle< SiStripDetCabling > SiStripDetCabling_
const T & get() const
Definition: EventSetup.h:55
void SiStripCablingTrackerMap::endJob ( void  )
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 21 of file SiStripCablingTrackerMap.cc.

References TrackerMap::print(), TrackerMap::save(), and tkMap_detCab.

21  {
22  tkMap_detCab->save(true,0,0,"DetCabling.png");
23  tkMap_detCab->print(true,0,0,"DetCabling");
24 
25 }
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:632
void print(bool print_total=true, float minval=0., float maxval=0., std::string s="svgmap")
Definition: TrackerMap.cc:2209

Member Data Documentation

edm::ParameterSet SiStripCablingTrackerMap::conf_
private

Definition at line 32 of file SiStripCablingTrackerMap.h.

edm::ESHandle<SiStripDetCabling> SiStripCablingTrackerMap::SiStripDetCabling_
private

Definition at line 33 of file SiStripCablingTrackerMap.h.

Referenced by analyze(), and beginRun().

TrackerMap* SiStripCablingTrackerMap::tkMap_detCab
private

Definition at line 35 of file SiStripCablingTrackerMap.h.

Referenced by analyze(), beginRun(), and endJob().