#include <CalibTracker/SiStripESProducers/plugins/geom/SiStripHashedDetIdESModule.h>
Public Member Functions | |
SiStripHashedDetIdESModule (const edm::ParameterSet &) | |
virtual | ~SiStripHashedDetIdESModule () |
Private Member Functions | |
virtual SiStripHashedDetId * | make (const SiStripHashedDetIdRcd &) |
Builds hashed DetId map based on geometry. |
Builds hashed DetId map based on DetIds read from geometry database
Definition at line 15 of file SiStripHashedDetIdESModule.h.
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 }
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 }