CMS 3D CMS Logo

Public Member Functions | Private Attributes

SiStripCablingTrackerMap Class Reference

#include <SiStripCablingTrackerMap.h>

Inheritance diagram for SiStripCablingTrackerMap:
edm::EDAnalyzer

List of all members.

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< SiStripDetCablingSiStripDetCabling_
TrackerMaptkMap_detCab

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.

                                                                             : 
  conf_(conf)
{
}
SiStripCablingTrackerMap::~SiStripCablingTrackerMap ( )

Definition at line 11 of file SiStripCablingTrackerMap.cc.

{}

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.

                                                                                 {
  
    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");
  
}

Member Data Documentation

Definition at line 32 of file SiStripCablingTrackerMap.h.

Definition at line 33 of file SiStripCablingTrackerMap.h.

Referenced by analyze(), and beginRun().

Definition at line 35 of file SiStripCablingTrackerMap.h.

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