32 #ifndef DicomPhantomZSliceHeader_h
33 #define DicomPhantomZSliceHeader_h 1
124 void AddValue(
const std::vector<std::vector<G4double> >& val) {
125 for(
unsigned int i = 0; i < val.size(); ++i) {
fValues.push_back(val.at(i)); }
130 void AddMateID(
const std::vector<std::vector<G4int> >& val) {
131 for(
unsigned int i = 0; i < val.size(); ++i) {
fMateIDs.push_back(val.at(i)); }
146 template <
typename T>
inline void print(std::ostream&,
const std::vector<T>&,
const G4String&,
G4int breakLine = -1);
182 return (str.find_first_not_of(
"0123456789") == std::string::npos) ?
true :
false;
185 template <
typename T>
188 std::istringstream iss(str);
194 template <
typename T>
197 G4Exception(
"DicomPhantomSliceZHeader::CheckConsistency",
"Consistency Mismatch : Keeping previous value if nonzero",
204 template <
typename T>
207 for(
unsigned int i = 0; i < val.size(); ++i) {
210 if(i+1 < val.size()) { out << delim; }
213 ((i != 0 && i%breakLine == 0) ? (out <<
G4endl) : (out << delim)); }
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)