19 std::string n=s->GetName();
21 std::cout<<
" Detector "<<n<<
" already in store "<<std::endl;
28 std::string n=s->GetName();
30 std::cout<<
" Technology "<<n<<
" already in store "<<std::endl;
38 std::cout<<
"AGDDDetectorStore::PrintAllDetector"<<std::endl
39 <<
"[key] \t name \t subType \t tech"<<std::endl;
40 for( ; it!=end; ++it) {
41 std::cout<<
"["<<it->first<<
"] :"
42 <<
" "<<it->second->GetName()
43 <<
" "<<it->second->subType()
44 <<
" "<<it->second->tech
56 std::vector<AGDDDetector*> detectors;
58 detectorList::const_iterator it=theDetectors.begin();
59 for (;it!=theDetectors.end();++it)
62 if (dt==det->DetectorType()) detectors.push_back(det);
70 detectorList::const_iterator it=theDetectors.begin();
71 for (;it!=theDetectors.end();++it)
74 if (dt==det->DetectorID())
return det;
81 std::vector<T*> detectors;
83 detectorList::const_iterator it=theDetectors.begin();
84 for (;it!=theDetectors.end();++it)
86 T* det=
dynamic_cast<T*
>((*it).second);
87 if (det) detectors.push_back(det);
94 detectorList::const_iterator it=theDetectors.begin();
95 for (;it!=theDetectors.end();++it)
97 if (
id==(*it).second->DetectorID())
99 T* det=
dynamic_cast<T*
>((*it).second);
std::map< std::string, AGDDDetector * > detectorList
detectorList & GetDetectorList()
technologyList m_the_technologies
AGDDDetector * GetDetectorByID(const std::string &) const
void RegisterDetector(AGDDDetector *)
void RegisterTechnology(AGDDTechnology *)
std::vector< T * > GetDetectorsByType() const
detectorList m_the_detectors