Changeset 1007 for trunk/source/processes/hadronic/management
- Timestamp:
- Apr 20, 2009, 5:54:05 PM (17 years ago)
- Location:
- trunk/source/processes/hadronic/management
- Files:
-
- 8 edited
-
History (modified) (1 diff)
-
include/G4EnergyRangeManager.hh (modified) (1 diff)
-
include/G4HadLeadBias.hh (modified) (1 diff)
-
include/G4HadronicProcessStore.hh (modified) (2 diffs)
-
include/G4HadronicProcessType.hh (modified) (1 diff)
-
include/G4VLeadingParticleBiasing.hh (modified) (1 diff)
-
src/G4EnergyRangeManager.cc (modified) (1 diff)
-
src/G4HadronicProcessStore.cc (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/hadronic/management/History
r962 r1007 14 14 * Please list in reverse chronological order (last date on top) 15 15 --------------------------------------------------------------- 16 17 25 February 2009 Vladimir Ivanchenko (hadr-man-V09-02-04)18 ---------------------------------------------------------19 - G4HadronicProcessStore - added protection to the Clean method20 21 22 February 2009 Vladimir Ivanchenko (hadr-man-V09-02-03)22 ---------------------------------------------------------23 24 14 February 2009 Vladimir Ivanchenko (hadr-man-V09-02-02)25 ---------------------------------------------------------26 - G4HadronicProcessStore - added Clean method and cleanup of model27 and cross section stores28 29 06 February 2009 Vladimir Ivanchenko (hadr-man-V09-02-01)30 ---------------------------------------------------------31 32 24 January 2009 Vladimir Ivanchenko (hadr-man-V09-02-00)33 -------------------------------------------------------34 - G4HadronicProcessStore - added destruction of processes35 16 36 17 01 December 2008 Dennis Wright (hadr-man-V09-01-10) -
trunk/source/processes/hadronic/management/include/G4EnergyRangeManager.hh
r962 r1007 26 26 // 27 27 // $Id: G4EnergyRangeManager.hh,v 1.9 2006/06/29 19:58:05 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-02 -ref-02$28 // GEANT4 tag $Name: geant4-09-02 $ 29 29 // 30 30 // Hadronic Process: Energy Range Manager -
trunk/source/processes/hadronic/management/include/G4HadLeadBias.hh
r962 r1007 24 24 // ******************************************************************** 25 25 // 26 // GEANT4 tag $Name: geant4-09-02 -ref-02$26 // GEANT4 tag $Name: geant4-09-02 $ 27 27 // 28 28 // -------------------------------------------------------------------- -
trunk/source/processes/hadronic/management/include/G4HadronicProcessStore.hh
r966 r1007 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4HadronicProcessStore.hh,v 1. 5 2009/02/15 16:50:15vnivanch Exp $27 // GEANT4 tag $Name: geant4-09-02 -ref-02$26 // $Id: G4HadronicProcessStore.hh,v 1.3 2008/10/22 07:58:20 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-02 $ 28 28 // 29 29 // … … 72 72 ~G4HadronicProcessStore(); 73 73 74 void Clean();75 76 74 G4double GetInelasticCrossSectionPerVolume( 77 75 const G4ParticleDefinition *aParticle, -
trunk/source/processes/hadronic/management/include/G4HadronicProcessType.hh
r966 r1007 26 26 // 27 27 // $Id: G4HadronicProcessType.hh,v 1.1 2008/10/02 19:02:03 dennis Exp $ 28 // GEANT4 tag $Name: geant4-09-02 -ref-02$28 // GEANT4 tag $Name: geant4-09-02 $ 29 29 // 30 30 // -
trunk/source/processes/hadronic/management/include/G4VLeadingParticleBiasing.hh
r962 r1007 25 25 // 26 26 // $Id: G4VLeadingParticleBiasing.hh,v 1.6 2006/06/29 19:58:19 gunter Exp $ 27 // GEANT4 tag $Name: geant4-09-02 -ref-02$27 // GEANT4 tag $Name: geant4-09-02 $ 28 28 // 29 29 // -------------------------------------------------------------------- -
trunk/source/processes/hadronic/management/src/G4EnergyRangeManager.cc
r962 r1007 26 26 // 27 27 // $Id: G4EnergyRangeManager.cc,v 1.15 2006/06/29 19:58:21 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-02 -ref-02$28 // GEANT4 tag $Name: geant4-09-02 $ 29 29 // 30 30 // Hadronic Process: Energy Range Manager -
trunk/source/processes/hadronic/management/src/G4HadronicProcessStore.cc
r968 r1007 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4HadronicProcessStore.cc,v 1. 12 2009/02/25 16:29:03vnivanch Exp $27 // GEANT4 tag $Name: geant4-09-02 -ref-02$26 // $Id: G4HadronicProcessStore.cc,v 1.7 2008/10/22 07:58:20 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-02 $ 28 28 // 29 29 // ------------------------------------------------------------------- … … 39 39 // 40 40 // Modifications: 41 // 23.01.2009 V.Ivanchenko add destruction of processes41 // 42 42 // 43 43 // Class Description: 44 // Singleton to store hadronic processes, to provide access to processes45 // and to printout information about processes46 44 // 47 45 // ------------------------------------------------------------------- … … 55 53 #include "G4Electron.hh" 56 54 #include "G4Proton.hh" 57 #include "G4HadronicInteractionRegistry.hh"58 #include "G4CrossSectionDataSetRegistry.hh"59 55 60 56 G4HadronicProcessStore* G4HadronicProcessStore::theInstance = 0; … … 75 71 G4HadronicProcessStore::~G4HadronicProcessStore() 76 72 { 77 Clean(); 78 G4HadronicInteractionRegistry::Instance()->Clean(); 79 G4CrossSectionDataSetRegistry::Instance()->Clean(); 80 } 81 82 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo..... 83 84 void G4HadronicProcessStore::Clean() 85 { 86 G4int i; 87 //G4cout << "G4HadronicProcessStore::Clean() Nproc= " << n_proc 88 // << " Nextra= " << n_extra << G4endl; 89 if(n_proc > 0) { 90 for (i=0; i<n_proc; i++) { 91 if( process[i] ) { 92 //G4cout << "G4HadronicProcessStore::Clean() delete hadronic " << i << G4endl; 93 //G4cout << process[i]->GetProcessName() << G4endl; 94 delete process[i]; 95 process[i] = 0; 96 } 97 } 98 } 99 if(n_extra > 0) { 100 for(i=0; i<n_extra; i++) { 101 if(extraProcess[i]) { 102 //G4cout << "G4HadronicProcessStore::Clean() delete extra " 103 // << i << G4endl; 104 //G4cout << extraProcess[i]->GetProcessName() << G4endl; 105 delete extraProcess[i]; 106 extraProcess[i] = 0; 107 } 108 } 109 } 110 //G4cout << "G4HadronicProcessStore::Clean() done" << G4endl; 111 n_extra = 0; 112 n_proc = 0; 73 /* 74 for (G4int i=0; i<n_proc; i++) { 75 if( process[i] ) delete process[i]; 76 } 77 */ 113 78 } 114 79 … … 360 325 void G4HadronicProcessStore::Register(G4HadronicProcess* proc) 361 326 { 362 if(0 < n_proc) { 363 for(G4int i=0; i<n_proc; i++) { 364 if(process[i] == proc) return; 365 } 366 } 367 //G4cout << "G4HadronicProcessStore::Register hadronic " << n_proc 368 // << " " << proc->GetProcessName() << G4endl; 327 for(G4int i=0; i<n_proc; i++) {if(process[i] == proc) return;} 328 369 329 n_proc++; 370 330 process.push_back(proc); … … 424 384 void G4HadronicProcessStore::DeRegister(G4HadronicProcess* proc) 425 385 { 426 if(0 == n_proc) return;427 386 for(G4int i=0; i<n_proc; i++) { 428 387 if(process[i] == proc) { 429 388 process[i] = 0; 430 return;389 break; 431 390 } 432 391 } … … 437 396 void G4HadronicProcessStore::RegisterExtraProcess(G4VProcess* proc) 438 397 { 439 if(0 < n_extra) { 440 for(G4int i=0; i<n_extra; i++) { 441 if(extraProcess[i] == proc) return; 442 } 443 } 444 //G4cout << "Extra Process: " << n_extra << " " << proc->GetProcessName() 445 // << " " << proc << G4endl; 398 for(G4int i=0; i<n_extra; i++) {if(extraProcess[i] == proc) return;} 446 399 447 400 n_extra++; … … 484 437 void G4HadronicProcessStore::DeRegisterExtraProcess(G4VProcess* proc) 485 438 { 486 //G4cout << "Deregister Extra Process: " << proc << " " << proc->GetProcessName() << G4endl;487 if(0 == n_extra) return;488 439 for(G4int i=0; i<n_extra; i++) { 489 440 if(extraProcess[i] == proc) { 490 441 extraProcess[i] = 0; 491 //G4cout << "Extra Process: " << i << " is deregisted " << G4endl; 492 return; 442 break; 493 443 } 494 444 }
Note:
See TracChangeset
for help on using the changeset viewer.
