32 #ifndef DicomPhantomZSliceHeader_h
33 #define DicomPhantomZSliceHeader_h 1
120 fMateIDs.push_back(std::vector<G4int>(0)); }
123 fValues.back().push_back(val) :
124 fValues.push_back(std::vector<G4double>(1,val)); }
126 void AddValue(
const std::vector<std::vector<G4double> >& val) {
127 for(
unsigned int i = 0; i < val.size(); ++i) {
fValues.push_back(val.at(i)); }
132 fMateIDs.push_back(std::vector<G4int>(1,val)); }
134 void AddMateID(
const std::vector<std::vector<G4int> >& val) {
135 for(
unsigned int i = 0; i < val.size(); ++i) {
fMateIDs.push_back(val.at(i)); }
151 template <
typename T>
152 inline void Print(std::ostream&,
const std::vector<T>&,
const G4String&,
153 G4int breakLine = -1);
189 return (str.find_first_not_of(
"0123456789") == std::string::npos) ?
true :
false;
192 template <
typename T>
195 std::istringstream iss(str);
202 template <
typename T>
206 G4Exception(
"DicomPhantomSliceZHeader::CheckConsistency",
207 "Consistency Mismatch : Keeping previous value if nonzero",
214 template <
typename T>
218 for(
unsigned int i = 0; i < val.size(); ++i) {
221 if(i+1 < val.size()) { out << delim; }
224 ((i != 0 && i%breakLine == 0) ? (out <<
G4endl) : (out << delim)); }
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)