5 #include "CLHEP/Units/GlobalSystemOfUnits.h" 19 edm::LogInfo(
"TrackerMapDDDtoID")<<
" Building the TrackerMapDDDtoID map.";
26 std::vector<const GeometricDet*> allDetectors;
33 for (
auto & allDetector : allDetectors){
35 path2id_.insert(std::pair<nav_type,uint32_t>(allDetector->navType(),(allDetector->geographicalID())()));
36 revpath2id_.insert(std::pair<uint32_t,nav_type>((allDetector->geographicalID())(),allDetector->navType()));
37 navVec.emplace_back(allDetector->navType());
39 edm::LogInfo(
"TrackerMapDDDtoID")<<
"Created TrackerMapDDDtoID; results in "<<allDetectors.size()<<
" detectors numbered.";
57 std::map<nav_type,uint32_t>::const_iterator it =
path2id_.find(n);
75 std::map<uint32_t,nav_type>::const_iterator it =
revpath2id_.find(num);
83 edm::LogInfo(
"TrackerMapDDDtoID")<<
" TrackerMapDDDtoID maps deleted from memory.";
unsigned int id(const nav_type &) const
calculate the id of a given node
void buildAllStep2(const GeometricDet *)
TrackerMapDDDtoID(const GeometricDet *iDet)
GeometricDet::nav_type nav_type
void buildAll(const GeometricDet *)
std::vector< nav_type > navVec
ConstGeometricDetContainer deepComponents() const
nav_type const & navType(uint32_t) const
std::vector< nav_type > const & allNavTypes() const