00001 // $Header: /bes/bes/BossCvs/Calibration/CalibData/src/CalibModelSvc.cxx,v 1.2 2006/11/17 02:37:06 huangb Exp $ 00002 00003 #include "CalibData/CalibModelSvc.h" 00004 #include "CalibData/CalibModel.h" 00005 00006 // extern const CLID& CLID_Calib_CalibCLIDNode; 00007 00008 namespace CalibData { 00009 const std::vector<CalibModelSvc::CalibPair>& CalibModelSvc::getPairs() 00010 const { 00011 return pairs; 00012 } 00013 00014 CLID CalibModelSvc::getCLIDNodeCLID() const { 00015 return CLID_Calib_CalibCLIDNode; 00016 } 00017 00018 00019 std::string CalibModelSvc::getCalibType(const std::string& fullpath) { 00020 unsigned lastSlash = fullpath.rfind("/"); 00021 return fullpath.substr(lastSlash+1, fullpath.size() - lastSlash); 00022 00023 } 00024 00025 00026 }