38 if(
nullptr == instance) {
45 G4HadronicInteractionRegistry::G4HadronicInteractionRegistry()
58 size_t nModels = allModels.size();
61 for (
size_t i=0; i<nModels; ++i) {
63 const char* xxx = (allModels[i]->GetModelName()).c_str();
64 G4int len = (allModels[i]->GetModelName()).length();
70 if(mname !=
"NeutronHP" && mname !=
"ParticleH") {
82 size_t nModels = allModels.size();
83 for (
size_t i=0; i<nModels; ++i) {
84 if( allModels[i] ) { allModels[i]->InitialiseModel(); }
91 if(!aModel) {
return; }
92 size_t nModels = allModels.size();
93 for (
size_t i=0; i<nModels; ++i) {
94 if( aModel == allModels[i] ) {
return; }
98 allModels.push_back(aModel);
104 if(!aModel) {
return; }
105 size_t nModels = allModels.size();
106 for (
size_t i=0; i<nModels; ++i) {
107 if( aModel == allModels[i] ) {
121 size_t nModels = allModels.size();
122 for (
size_t i=0; i<nModels; ++i) {
134 std::vector<G4HadronicInteraction*>
137 std::vector<G4HadronicInteraction*> models;
139 size_t nModels = allModels.size();
140 for (
size_t i=0; i<nModels; ++i) {
std::vector< G4HadronicInteraction * > FindAllModels(const G4String &name)
void RemoveMe(G4HadronicInteraction *aModel)
const G4String & GetModelName() const
void RegisterMe(G4HadronicInteraction *aModel)
G4HadronicInteraction * FindModel(const G4String &name)
static G4HadronicInteractionRegistry * Instance()
T min(const T t1, const T t2)
brief Return the smallest of the two arguments
const XML_Char XML_Content * model
~G4HadronicInteractionRegistry()