CMS 3D CMS Logo

SiStripHashedDetIdESModule Class Reference

Author:
R.Bainbridge
More...

#include <CalibTracker/SiStripESProducers/plugins/geom/SiStripHashedDetIdESModule.h>

Inheritance diagram for SiStripHashedDetIdESModule:

SiStripHashedDetIdESProducer edm::ESProducer edm::ESProducer edm::ESProxyFactoryProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider edm::eventsetup::DataProxyProvider

List of all members.

Public Member Functions

 SiStripHashedDetIdESModule (const edm::ParameterSet &)
virtual ~SiStripHashedDetIdESModule ()

Private Member Functions

virtual SiStripHashedDetIdmake (const SiStripHashedDetIdRcd &)
 Builds hashed DetId map based on geometry.


Detailed Description

Author:
R.Bainbridge

Builds hashed DetId map based on DetIds read from geometry database

Definition at line 15 of file SiStripHashedDetIdESModule.h.


Constructor & Destructor Documentation

SiStripHashedDetIdESModule::SiStripHashedDetIdESModule ( const edm::ParameterSet pset  ) 

Definition at line 13 of file SiStripHashedDetIdESModule.cc.

00014   : SiStripHashedDetIdESProducer( pset )
00015 {
00016   edm::LogVerbatim("HashedDetId") 
00017     << "[SiStripHashedDetIdESSourceFromGeom::" << __func__ << "]"
00018     << " Constructing object...";
00019 }

SiStripHashedDetIdESModule::~SiStripHashedDetIdESModule (  )  [virtual]

Definition at line 23 of file SiStripHashedDetIdESModule.cc.

00023                                                         {
00024   edm::LogVerbatim("HashedDetId")
00025     << "[SiStripHashedDetIdESSourceFromGeom::" << __func__ << "]"
00026     << " Destructing object...";
00027 }


Member Function Documentation

SiStripHashedDetId * SiStripHashedDetIdESModule::make ( const SiStripHashedDetIdRcd rcd  )  [private, virtual]

Builds hashed DetId map based on geometry.

Implements SiStripHashedDetIdESProducer.

Definition at line 31 of file SiStripHashedDetIdESModule.cc.

References lat::endl(), StripGeomDetUnit::geographicalId(), edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), iter, LogTrace, sistrip::mlDqmCommon_, and strip().

00031                                                                                        {
00032   edm::LogVerbatim("HashedDetId")
00033     << "[SiStripHashedDetIdFakeESSource::" << __func__ << "]"
00034     << " Building \"fake\" hashed DetId map from geometry";
00035   
00036   edm::ESHandle<TrackerGeometry> geom;
00037   rcd.getRecord<TrackerDigiGeometryRecord>().get( geom );
00038   
00039   std::vector<uint32_t> dets;
00040   dets.reserve(16000);
00041 
00042   TrackerGeometry::DetUnitContainer::const_iterator iter = geom->detUnits().begin();
00043   for( ; iter != geom->detUnits().end(); ++iter ) {
00044     const StripGeomDetUnit* strip = dynamic_cast<StripGeomDetUnit*>(*iter);
00045     if ( strip ) { dets.push_back( (strip->geographicalId()).rawId() ); }
00046   }
00047   edm::LogVerbatim(mlDqmCommon_)
00048     << "[SiStripHashedDetIdESModule::" << __func__ << "]"
00049     << " Retrieved " << dets.size()
00050     << " sistrip DetIds from geometry!";
00051   
00052   // Create hash map object
00053   SiStripHashedDetId* hash = new SiStripHashedDetId( dets );
00054   LogTrace(mlDqmCommon_)
00055     << "[SiStripHashedDetIdESModule::" << __func__ << "]"
00056     << " DetId hash map: " << std::endl
00057     << *hash;
00058   
00059   return hash;
00060 
00061 }


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:32:24 2009 for CMSSW by  doxygen 1.5.4