Changeset 1228 for trunk/source/processes/hadronic/models/management
- Timestamp:
- Jan 8, 2010, 11:56:51 AM (14 years ago)
- Location:
- trunk/source/processes/hadronic/models/management
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/hadronic/models/management/History
r1196 r1228 14 14 * Please list in reverse chronological order (last date on top) 15 15 --------------------------------------------------------------- 16 17 2 December 2009 - V.Ivanchenko (hadr-modman-V09-02-08) 18 ------------------------------------------------------ 19 - G4HadronicInteractionRegistry - more accurate model deletion 16 20 17 21 19 November 2009 Gunter Folger (hadr-modman-V09-02-07) -
trunk/source/processes/hadronic/models/management/include/G4HadronicInteraction.hh
r1196 r1228 26 26 // 27 27 // $Id: G4HadronicInteraction.hh,v 1.13 2009/10/02 17:18:33 vnivanch Exp $ 28 // GEANT4 tag $Name: geant4-09-03 -cand-01$28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 // Hadronic Interaction abstract base class -
trunk/source/processes/hadronic/models/management/include/G4HadronicInteractionRegistry.hh
r1196 r1228 25 25 // 26 26 // $Id: G4HadronicInteractionRegistry.hh,v 1.5 2009/08/30 16:12:34 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-03 -cand-01$27 // GEANT4 tag $Name: geant4-09-03 $ 28 28 // 29 29 // 23-Jan-2009 V.Ivanchenko make the class to be a singleton -
trunk/source/processes/hadronic/models/management/include/G4InelasticInteraction.hh
r1196 r1228 26 26 // 27 27 // $Id: G4InelasticInteraction.hh,v 1.7 2009/08/30 16:12:13 vnivanch Exp $ 28 // GEANT4 tag $Name: geant4-09-03 -cand-01$28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 // Hadronic Process: Inelastic Interaction -
trunk/source/processes/hadronic/models/management/include/G4V3DNucleus.hh
r1196 r1228 26 26 // 27 27 // $Id: G4V3DNucleus.hh,v 1.7 2009/11/19 14:29:05 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-03 -cand-01$28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 #ifndef G4V3DNucleus_h -
trunk/source/processes/hadronic/models/management/include/G4VHighEnergyGenerator.hh
r1196 r1228 26 26 // 27 27 // $Id: G4VHighEnergyGenerator.hh,v 1.4 2006/06/29 20:45:41 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-03 -cand-01$28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 #ifndef G4VHighEnergyGenerator_h -
trunk/source/processes/hadronic/models/management/include/G4VIntraNuclearTransportModel.hh
r1196 r1228 26 26 // 27 27 // $Id: G4VIntraNuclearTransportModel.hh,v 1.4 2007/01/11 05:29:46 dennis Exp $ 28 // GEANT4 tag $Name: geant4-09-03 -cand-01$28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 // $Id: G4IntraNuclearTransportMode.hh,v 1.0 1998/06/30 -
trunk/source/processes/hadronic/models/management/include/G4VKineticNucleon.hh
r1196 r1228 26 26 // 27 27 // $Id: G4VKineticNucleon.hh,v 1.4 2006/06/29 20:45:47 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-03 -cand-01$28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 #ifndef G4VKineticNucleon_h -
trunk/source/processes/hadronic/models/management/include/G4VNuclearDensity.hh
r1196 r1228 26 26 // 27 27 // $Id: G4VNuclearDensity.hh,v 1.4 2006/06/29 20:45:49 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-03 -cand-01$28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 #ifndef G4VNuclearDensity_h -
trunk/source/processes/hadronic/models/management/include/G4VPreCompoundModel.hh
r1196 r1228 26 26 // 27 27 // $Id: G4VPreCompoundModel.hh,v 1.5 2007/01/11 05:29:34 dennis Exp $ 28 // GEANT4 tag $Name: geant4-09-03 -cand-01$28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 -
trunk/source/processes/hadronic/models/management/src/G4HadronicInteraction.cc
r1196 r1228 25 25 // 26 26 // $Id: G4HadronicInteraction.cc,v 1.6 2009/08/30 16:12:34 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-03 -cand-01$27 // GEANT4 tag $Name: geant4-09-03 $ 28 28 // 29 29 // Hadronic Interaction base class -
trunk/source/processes/hadronic/models/management/src/G4HadronicInteractionRegistry.cc
r1196 r1228 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4HadronicInteractionRegistry.cc,v 1. 8 2009/08/30 16:12:34vnivanch Exp $27 // GEANT4 tag $Name: geant4-09-03 -cand-01$26 // $Id: G4HadronicInteractionRegistry.cc,v 1.9 2009/12/02 15:57:57 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-03 $ 28 28 // 29 29 // 23-Jan-2009 V.Ivanchenko make the class to be a singleton … … 53 53 void G4HadronicInteractionRegistry::Clean() 54 54 { 55 size_t nModels = allModels.size(); 55 56 //G4cout << "G4HadronicInteractionRegistry::Clean() start " << nModels << G4endl; 56 size_t nModels = allModels.size();57 57 if(0 < nModels) { 58 58 for (size_t i=0; i<nModels; ++i) { … … 60 60 //G4cout << "delete " << i << G4endl; 61 61 //G4cout << allModels[i]->GetModelName() << G4endl; 62 deleteallModels[i];62 G4HadronicInteraction * model = allModels[i]; 63 63 allModels[i] = 0; 64 delete model; 64 65 } 65 66 } 67 allModels.clear(); 66 68 } 67 allModels.clear();68 69 //G4cout << "G4HadronicInteractionRegistry::Clean() is done " << G4endl; 69 70 } … … 72 73 RegisterMe(G4HadronicInteraction * aModel) 73 74 { 75 if(!aModel) { return; } 74 76 size_t nModels = allModels.size(); 75 77 if(nModels > 0) { 76 78 for (size_t i=0; i<nModels; ++i) { 77 if( aModel == allModels[i] ) return;79 if( aModel == allModels[i] ) { return; } 78 80 } 79 81 } … … 86 88 RemoveMe(G4HadronicInteraction * aModel) 87 89 { 90 if(!aModel) { return; } 88 91 size_t nModels = allModels.size(); 89 if(0 == nModels) return;92 if(0 == nModels) { return; } 90 93 for (size_t i=0; i<nModels; ++i) { 91 94 if( aModel == allModels[i] ) { -
trunk/source/processes/hadronic/models/management/src/G4InelasticInteraction.cc
r1196 r1228 25 25 // 26 26 // $Id: G4InelasticInteraction.cc,v 1.12 2009/01/24 11:56:27 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-03 -cand-01$27 // GEANT4 tag $Name: geant4-09-03 $ 28 28 // 29 29 // Hadronic Process: Inelastic Interaction -
trunk/source/processes/hadronic/models/management/src/G4V3DNucleus.cc
r1196 r1228 26 26 // 27 27 // $Id: G4V3DNucleus.cc,v 1.5 2006/06/29 20:45:59 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-03 -cand-01$28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 #include "G4V3DNucleus.hh" -
trunk/source/processes/hadronic/models/management/src/G4VHighEnergyGenerator.cc
r1196 r1228 26 26 // 27 27 // $Id: G4VHighEnergyGenerator.cc,v 1.5 2006/06/29 20:46:03 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-03 -cand-01$28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 // G4VHighEnergyGenerator -
trunk/source/processes/hadronic/models/management/src/G4VIntraNuclearTransportModel.cc
r1196 r1228 26 26 // 27 27 // $Id: G4VIntraNuclearTransportModel.cc,v 1.5 2007/01/11 05:28:56 dennis Exp $ 28 // GEANT4 tag $Name: geant4-09-03 -cand-01$28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 // $Id: G4VIntraNuclearTransportModel.cc,v 1.0 1998/06/30 -
trunk/source/processes/hadronic/models/management/src/G4VKineticNucleon.cc
r1196 r1228 26 26 // 27 27 // $Id: G4VKineticNucleon.cc,v 1.3 2006/06/29 20:46:07 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-03 -cand-01$28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 #include "G4VKineticNucleon.hh" -
trunk/source/processes/hadronic/models/management/src/G4VNuclearDensity.cc
r1196 r1228 26 26 // 27 27 // $Id: G4VNuclearDensity.cc,v 1.3 2006/06/29 20:46:09 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-03 -cand-01$28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 -
trunk/source/processes/hadronic/models/management/src/G4VPreCompoundModel.cc
r1196 r1228 26 26 // 27 27 // $Id: G4VPreCompoundModel.cc,v 1.6 2007/01/11 05:29:10 dennis Exp $ 28 // GEANT4 tag $Name: geant4-09-03 -cand-01$28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30
Note: See TracChangeset
for help on using the changeset viewer.