5 #include "CLHEP/Units/GlobalSystemOfUnits.h" 19 edm::LogInfo(
"MTDMapDDDtoID")<<
" Building the MTDMapDDDtoID map.";
26 std::vector<const GeometricTimingDet*> 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(
"MTDMapDDDtoID")<<
"Created MTDMapDDDtoID; results in "<<allDetectors.size()<<
" detectors numbered.";
44 std::map<nav_type,uint32_t>::const_iterator it =
path2id_.find(n);
62 std::map<uint32_t,nav_type>::const_iterator it =
revpath2id_.find(num);
70 edm::LogInfo(
"MTDMapDDDtoID")<<
" MTDMapDDDtoID maps deleted from memory.";
std::vector< nav_type > navVec
std::vector< nav_type > const & allNavTypes() const
MTDMapDDDtoID(const GeometricTimingDet *iDet)
ConstGeometricTimingDetContainer deepComponents() const
nav_type const & navType(uint32_t) const
void buildAllStep2(const GeometricTimingDet *)
GeometricTimingDet::nav_type nav_type
unsigned int id(const nav_type &) const
calculate the id of a given node
void buildAll(const GeometricTimingDet *)