86G4CrossSectionDataSetRegistry::G4CrossSectionDataSetRegistry()
96 size_t n = xSections.size();
97 for (
size_t i=0; i<n; ++i) {
103 xSections[i] =
nullptr;
106 n = xComponents.size();
107 for (
size_t i=0; i<n; ++i) {
113 xComponents[i] =
nullptr;
121 for (
auto xsec : xSections) {
122 if(xsec == p) {
return; }
126 xSections.push_back(p);
132 size_t n = xSections.size();
133 for (
size_t i=0; i<n; ++i) {
134 if(xSections[i] == p) {
137 xSections[i] =
nullptr;
146 for (
auto xsec : xComponents) {
147 if(xsec == p) {
return; }
151 xComponents.push_back(p);
157 size_t n = xComponents.size();
158 for (
size_t i=0; i<n; ++i) {
159 if(xComponents[i] == p) {
162 xComponents[i] =
nullptr;
172 size_t n = xComponents.size();
173 for (
size_t i=0; i<n; ++i) {
174 if(xComponents[i] == p) {
187 for (
auto xsec : xSections) {
188 if(xsec && xsec->GetName() == name) {
return xsec; }
208 for (
auto xsec : xComponents) {
209 if(xsec && xsec->GetName() == name) {
return xsec; }
#define G4_REFERENCE_XS_FACTORY(cross_section)
void DeRegister(G4VCrossSectionDataSet *)
~G4CrossSectionDataSetRegistry()
G4VCrossSectionDataSet * GetCrossSectionDataSet(const G4String &name, G4bool warning=true)
G4VComponentCrossSection * GetComponentCrossSection(const G4String &name)
void Register(G4VCrossSectionDataSet *)
static G4CrossSectionDataSetRegistry * Instance()
void DeleteComponent(G4VComponentCrossSection *)
static G4CrossSectionFactoryRegistry * Instance()
G4VBaseXSFactory * GetFactory(const G4String &name, G4bool abortIfNotFound=true) const
virtual G4VCrossSectionDataSet * Instantiate()=0