| 74 | |
| 75 | template <typename T> |
| 76 | void |
| 77 | G4ModelColourMap<T>::Set(const T& quantity, const G4String& colour) |
| 78 | { |
| 79 | G4Colour myColour; |
| 80 | |
| 81 | // Will not setup the map if colour key does not exist |
| 82 | if (!G4Colour::GetColour(colour, myColour)) { |
| 83 | G4ExceptionDescription ed; |
| 84 | ed << "G4Colour with key "<<colour<<" does not exist "; |
| 85 | G4Exception |
| 86 | ("G4ColourMap::Set(Charge charge, const G4String& colour)", |
| 87 | "modeling0108", JustWarning, ed); |
| 88 | return; |
| 89 | } |
| 90 | |
| 91 | |
| 92 | // Will not modify myColour if colour key does not exist |
| 93 | Set(quantity, myColour); |
| 94 | } |
| 95 | |
| 96 | template <typename T> |
| 97 | void |
no test coverage detected