00001 #include "SimHelpers/DetectorGeometryHelper.h" 00002 #include <iostream> 00003 00004 DetectorMap DetectorGeometryHelper::theMap; 00005 00006 DetectorGeometryHelper::DetectorGeometryHelper(std::string n, DetectorType t) 00007 { 00008 theMap[n]=t; 00009 } 00010 00011 DetectorType DetectorGeometryHelper::GeometryType(std::string n) 00012 { 00013 if (theMap.find(n) != theMap.end()) return theMap[n]; 00014 else return Standard; 00015 } 00016 00017 void DetectorGeometryHelper::SetDetectorType(std::string n, DetectorType t) 00018 { 00019 theMap[n]=t; 00020 }