153 std::map<G4String, std::vector<G4double> >::iterator it;
156 nLevels[it->first] = (it->second).size();
172 std::ostringstream oss;
173 oss <<
"Material name was not found in energyConstantMap. Problematic material is: "<<matNameModif;
174 G4Exception(
"G4DNAPTBIonisationStructure::IonisationEnergy",
"em0002",
192 std::ostringstream oss;
193 oss <<
"Material name was not found in energyConstantMap. Problematic material is: "<<matNameModif;
194 G4Exception(
"G4DNAPTBIonisationStructure::NumberOfLevels",
"em0002",
203 G4String materialNameModified (materialName);
205 if(materialName==
"backbone_THF") materialNameModified =
"THF";
206 else if(materialName==
"backbone_TMP") materialNameModified =
"TMP";
207 else if(materialName==
"adenine_PU") materialNameModified =
"PU";
208 else if(materialName==
"guanine_PU") materialNameModified =
"PU";
209 else if(materialName==
"thymine_PY") materialNameModified =
"PY";
210 else if(materialName==
"cytosine_PY") materialNameModified =
"PY";
212 return materialNameModified;
std::map< G4String, std::vector< G4double > > energyConstant
std::map< G4String, G4int > nLevels
G4String ReplaceMaterial(const G4String &materialName)
static constexpr double eV
G4double IonisationEnergy(G4int level, const G4String &materialName)
G4int NumberOfLevels(const G4String &materialName)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4DNAPTBIonisationStructure()
virtual ~G4DNAPTBIonisationStructure()