33std::ostream&
operator<<
34 (std::ostream& os,
const std::map<G4String,G4AttDef>* definitions)
38 os <<
"G4AttCheck: ERROR: zero definitions pointer." << endl;
43 os << storeKey <<
":";
45 std::map<G4String,G4AttDef>::const_iterator i;
46 for (i = definitions->begin(); i != definitions->end(); ++i) {
47 if (i->second.GetCategory() ==
"Physics") {
48 os <<
"\n " << i->second.GetDesc()
49 <<
" (" << i->
first <<
"): ";
50 if (!i->second.GetExtra().empty()) {
51 if (i->second.GetExtra() !=
"G4BestUnit") os <<
"unit: ";
52 os << i->second.GetExtra() <<
" (";
54 os << i->second.GetValueType();
55 if (!i->second.GetExtra().empty()) os <<
")";
G4bool GetStoreKey(const std::map< G4String, G4AttDef > *definitions, G4String &key)