17#include <G4AnalysisUtilities.hh>
24G4bool Contains(
const G4String& name,
const G4String& nameList)
31 G4String checkName(name);
32 checkName.append(
" ");
34 G4String checkNameList(nameList);
35 checkNameList.append(
" ");
37 return (checkNameList.find(checkName) != std::string::npos);
40void PrintNamesVector(
const std::vector<G4String> names)
42 std::vector<G4String>::const_iterator it;
43 for (it = names.begin(); it != names.end(); it++) {
44 G4cout << (*it) <<
" ";
52 : fModelName(modelName),
56 fFastSimulationModel(0)
69 std::vector<G4String> mediaVector;
70 if (regionsMedia.size()) {
72 G4Analysis::Tokenize(regionsMedia, mediaVector);
99 G4cout <<
"Model configuration: " <<
fModelName << G4endl;
100 G4cout <<
"particles: " <<
fParticles << G4endl;
104 G4cout <<
"regions: ";
Definition of the TG4ModelConfiguration class.
void SetOneRegionMedium(const G4String ®ionMedium)
std::vector< G4String > fRegionsMedia
the vector of regions media
G4String fParticles
the list of particle names
void SetRegionsMedia(const G4String ®ionsMedia)
TG4ModelConfiguration(const G4String &modelName)
std::vector< G4String > fRegions
the vector of created regions (per materials)
void SetOneRegion(const G4String ®ion)
G4String fModelName
the EM model name
G4bool HasParticle(const G4String &particleName)
G4bool HasRegion(const G4String ®ionName)