#include <SiStripCablingTrackerMap.h>
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 () | |
Private Attributes | |
edm::ParameterSet | conf_ |
edm::ESHandle< SiStripDetCabling > | SiStripDetCabling_ |
TrackerMap * | tkMap_detCab |
Definition at line 16 of file SiStripCablingTrackerMap.h.
SiStripCablingTrackerMap::SiStripCablingTrackerMap | ( | const edm::ParameterSet & | conf | ) |
Definition at line 6 of file SiStripCablingTrackerMap.cc.
: conf_(conf) { }
SiStripCablingTrackerMap::~SiStripCablingTrackerMap | ( | ) |
Definition at line 11 of file SiStripCablingTrackerMap.cc.
{}
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.
{ es.get<SiStripDetCablingRcd>().get( SiStripDetCabling_ ); //&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& // get list of active detectors from SiStripDetCabling //&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& std::vector<uint32_t> vdetId_; SiStripDetCabling_->addActiveDetectorsRawIds(vdetId_); for (std::vector<uint32_t>::const_iterator detid_iter=vdetId_.begin();detid_iter!=vdetId_.end();detid_iter++){ uint32_t detid = *detid_iter; tkMap_detCab->fill(detid,1); } }
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.
{ es.get<SiStripDetCablingRcd>().get( SiStripDetCabling_ ); tkMap_detCab=new TrackerMap( "DetCabling" ); }
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.
{ tkMap_detCab->save(true,0,0,"DetCabling.png"); tkMap_detCab->print(true,0,0,"DetCabling"); }
Definition at line 32 of file SiStripCablingTrackerMap.h.
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().