60 for (
size_t i=0; i<nModels; ++i) {
62 const char* xxx = (
allModels[i]->GetModelName()).c_str();
69 if(mname !=
"NeutronHP" && mname !=
"ParticleH") {
82 if(!aModel) {
return; }
84 for (
size_t i=0; i<nModels; ++i) {
95 if(!aModel) {
return; }
97 for (
size_t i=0; i<nModels; ++i) {
113 for (
size_t i=0; i<nModels; ++i) {
125 std::vector<G4HadronicInteraction*>
128 std::vector<G4HadronicInteraction*> models;
131 for (
size_t i=0; i<nModels; ++i) {
std::vector< G4HadronicInteraction * > FindAllModels(const G4String &name)
static G4ThreadLocal G4HadronicInteractionRegistry * instance
void RemoveMe(G4HadronicInteraction *aModel)
std::vector< G4HadronicInteraction * > allModels
const G4String & GetModelName() const
void RegisterMe(G4HadronicInteraction *aModel)
G4HadronicInteractionRegistry()
G4HadronicInteraction * FindModel(const G4String &name)
static G4HadronicInteractionRegistry * Instance()
T min(const T t1, const T t2)
brief Return the smallest of the two arguments
~G4HadronicInteractionRegistry()