| Report problems to ATLAS LXR Team (with time and IP address indicated) |
|
[ source navigation ] [ diff markup ] [ identifier search ] [ general search ] |
||||
|
||||||
| Links to LXR source navigation pages for stable releases | [ 12.*.* ] [ 13.*.* ] [ 14.*.* ] [ 15.*.* ] | |||||
001 #include "MuonGeoModel/FPVMAP.h" 002 #include <iostream> 003 004 #include "MuonGeoModel/Technology.h" 005 006 namespace MuonGM { 007 008 009 FPVMAP* FPVMAP::thePointer=0; 010 011 FPVMAP::FPVMAP() 012 { 013 m_nreused=0; 014 // std::cout<<"Creating the FPVMAP structure"<<std::endl; 015 } 016 017 FPVMAP* FPVMAP::GetPointer() 018 { 019 if (!thePointer) thePointer=new FPVMAP; 020 return thePointer; 021 } 022 023 GeoVPhysVol* FPVMAP::GetDetector(std::string name) 024 { 025 if (Detectors.find(name)!=Detectors.end()) 026 { 027 m_nreused++; 028 // std::cout<<"FPVMAP:: the pointer to "<<name 029 // <<" is already stored; saving memory "<<m_nreused<<std::endl; 030 return Detectors[name]; 031 } 032 else return 0; 033 } 034 035 void FPVMAP::StoreDetector(GeoVPhysVol* s, std::string name) 036 { 037 // std::cout<<"FPVMAP:: store the pointer to "<<name<<std::endl; 038 Detectors[name]=s; 039 } 040 041 void FPVMAP::PrintAllDetectors() 042 { 043 for (DetectorIterator it=Detectors.begin();it!=Detectors.end();it++) 044 { 045 std::string key=(*it).first; 046 std::cout<<"---> A PhysVol corresponds to "<<key<<std::endl; 047 } 048 } 049 050 } // namespace MuonGM 051
| [ source navigation ] | [ diff markup ] | [ identifier search ] | [ general search ] |
| Due to the LXR bug, the updates fail sometimes to remove references to deleted files. The Saturday's full rebuilds fix these problems | |
| This page was automatically generated by the LXR engine. |
|