00001 #ifndef OSCAR_UnitConverter_h 00002 #define OSCAR_UnitConverter_h 00003 00004 #include "Alignment/CocoaUtilities/interface/CocoaGlobals.h" 00005 00006 #include <iostream> 00007 #include <string> 00008 // inserts a multiplication '*' between a value and a unit 00009 // returned from G4BestUnit 00010 class CocoaBestUnit; 00011 class UnitConverter; 00012 00013 //ostream & operator<<(ostream &, const UnitConverter & ); 00014 00015 class UnitConverter 00016 { 00017 public: 00018 UnitConverter(ALIdouble val, const ALIstring & category); 00019 ~UnitConverter(); 00020 std::string ucstring(); 00021 //friend ostream& operator(std::ostream & ,const UnitConverter & VU); 00022 00023 CocoaBestUnit * bu_; 00024 bool angl_; 00025 }; 00026 00027 00028 #endif