Changeset 961 for trunk/source/processes/cuts/src
- Timestamp:
- Apr 6, 2009, 12:21:12 PM (17 years ago)
- Location:
- trunk/source/processes/cuts/src
- Files:
-
- 13 edited
-
G4MCCIndexConversionTable.cc (modified) (1 diff)
-
G4MaterialCutsCouple.cc (modified) (1 diff)
-
G4PhysicsTableHelper.cc (modified) (1 diff)
-
G4ProductionCuts.cc (modified) (1 diff)
-
G4ProductionCutsTable.cc (modified) (11 diffs)
-
G4RToEConvForAntiNeutron.cc (modified) (1 diff)
-
G4RToEConvForAntiProton.cc (modified) (1 diff)
-
G4RToEConvForElectron.cc (modified) (1 diff)
-
G4RToEConvForGamma.cc (modified) (1 diff)
-
G4RToEConvForNeutron.cc (modified) (1 diff)
-
G4RToEConvForPositron.cc (modified) (1 diff)
-
G4RToEConvForProton.cc (modified) (1 diff)
-
G4VRangeToEnergyConverter.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/cuts/src/G4MCCIndexConversionTable.cc
r819 r961 25 25 // 26 26 // $Id: G4MCCIndexConversionTable.cc,v 1.3 2006/06/29 19:30:08 gunter Exp $ 27 // GEANT4 tag $Name: $27 // GEANT4 tag $Name: geant4-09-02-ref-02 $ 28 28 // 29 29 // -
trunk/source/processes/cuts/src/G4MaterialCutsCouple.cc
r819 r961 26 26 // 27 27 // $Id: G4MaterialCutsCouple.cc,v 1.3 2006/06/29 19:30:10 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-02-ref-02 $ 29 29 // 30 30 // -
trunk/source/processes/cuts/src/G4PhysicsTableHelper.cc
r819 r961 25 25 // 26 26 // $Id: G4PhysicsTableHelper.cc,v 1.5 2006/06/29 19:30:12 gunter Exp $ 27 // GEANT4 tag $Name: $27 // GEANT4 tag $Name: geant4-09-02-ref-02 $ 28 28 // 29 29 // -
trunk/source/processes/cuts/src/G4ProductionCuts.cc
r819 r961 26 26 // 27 27 // $Id: G4ProductionCuts.cc,v 1.5 2006/06/29 19:30:14 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-02-ref-02 $ 29 29 // 30 30 // -
trunk/source/processes/cuts/src/G4ProductionCutsTable.cc
r819 r961 25 25 // 26 26 // 27 // $Id: G4ProductionCutsTable.cc,v 1.1 7 2007/05/30 08:22:20kurasige Exp $28 // GEANT4 tag $Name: geant4-09-0 1-patch-02 $27 // $Id: G4ProductionCutsTable.cc,v 1.18 2008/03/02 10:52:55 kurasige Exp $ 28 // GEANT4 tag $Name: geant4-09-02-ref-02 $ 29 29 // 30 30 // … … 32 32 // GEANT 4 class implementation file/ History: 33 33 // 06/Oct. 2002, M.Asai : First implementation 34 // 02/Mar. 2008, H.Kurashige : Add messenger 34 35 // -------------------------------------------------------------- 35 36 … … 37 38 #include "G4ProductionCuts.hh" 38 39 #include "G4MCCIndexConversionTable.hh" 40 #include "G4ProductionCutsTableMessenger.hh" 39 41 #include "G4ParticleDefinition.hh" 40 42 #include "G4ParticleTable.hh" … … 66 68 67 69 G4ProductionCutsTable::G4ProductionCutsTable() 68 : firstUse(true),verboseLevel(1) 70 : firstUse(true),verboseLevel(1),fMessenger(0) 69 71 { 70 72 for(size_t i=0;i< NumberOfG4CutIndex;i++) … … 78 80 fG4RegionStore = G4RegionStore::GetInstance(); 79 81 defaultProductionCuts = new G4ProductionCuts(); 82 83 // add messenger for UI 84 fMessenger = new G4ProductionCutsTableMessenger(this); 80 85 } 81 86 … … 103 108 } 104 109 fG4ProductionCutsTable =0; 110 111 if (fMessenger !=0) delete fMessenger; 112 fMessenger = 0; 105 113 } 106 114 … … 108 116 { 109 117 if(firstUse){ 110 if(G4ParticleTable::GetParticleTable()->FindParticle("gamma")) 111 { converters[0] = new G4RToEConvForGamma(); } 112 if(G4ParticleTable::GetParticleTable()->FindParticle("e-")) 113 { converters[1] = new G4RToEConvForElectron(); } 114 if(G4ParticleTable::GetParticleTable()->FindParticle("e+")) 115 { converters[2] = new G4RToEConvForPositron(); } 118 if(G4ParticleTable::GetParticleTable()->FindParticle("gamma")){ 119 converters[0] = new G4RToEConvForGamma(); 120 converters[0]->SetVerboseLevel(GetVerboseLevel()); 121 } 122 if(G4ParticleTable::GetParticleTable()->FindParticle("e-")){ 123 converters[1] = new G4RToEConvForElectron(); 124 converters[1]->SetVerboseLevel(GetVerboseLevel()); 125 } 126 if(G4ParticleTable::GetParticleTable()->FindParticle("e+")){ 127 converters[2] = new G4RToEConvForPositron(); 128 converters[2]->SetVerboseLevel(GetVerboseLevel()); 129 } 116 130 firstUse = false; 117 131 } … … 376 390 377 391 #ifdef G4VERBOSE 378 if (verboseLevel > 1) {392 if (verboseLevel >2) { 379 393 G4cout << "G4ProductionCutsTable::StoreCutsTable " ; 380 394 G4cout << " Material/Cuts information have been succesfully stored "; … … 396 410 if (!RetrieveCutsInfo(dir, ascii)) return false; 397 411 #ifdef G4VERBOSE 398 if (verboseLevel > 1) {412 if (verboseLevel >2) { 399 413 G4cout << "G4ProductionCutsTable::RetrieveCutsTable " ; 400 414 G4cout << " Material/Cuts information have been succesfully retreived "; … … 420 434 // isNeedForRestoreCoupleInfo = false; 421 435 if (!CheckMaterialInfo(directory, ascii)) return false; 422 if (verboseLevel > 1) {436 if (verboseLevel >2) { 423 437 G4cerr << "G4ProductionCutsTable::CheckMaterialInfo passed !!"<< G4endl; 424 438 } 425 439 if (!CheckMaterialCutsCoupleInfo(directory, ascii)) return false; 426 if (verboseLevel > 1) {440 if (verboseLevel >2) { 427 441 G4cerr << "G4ProductionCutsTable::CheckMaterialCutsCoupleInfo passed !!"<< G4endl; 428 442 } … … 1080 1094 return true; 1081 1095 } 1096 1097 // Set Verbose Level 1098 // set same verbosity to all registered RangeToEnergyConverters 1099 void G4ProductionCutsTable::SetVerboseLevel(G4int value) 1100 { 1101 verboseLevel = value; 1102 for (int ip=0; ip< NumberOfG4CutIndex; ip++) { 1103 if (converters[ip] !=0 ){ 1104 converters[ip]->SetVerboseLevel(value); 1105 } 1106 } 1107 } 1108 -
trunk/source/processes/cuts/src/G4RToEConvForAntiNeutron.cc
r819 r961 26 26 // 27 27 // $Id: G4RToEConvForAntiNeutron.cc,v 1.3 2006/06/29 19:30:18 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-02-ref-02 $ 29 29 // 30 30 // -
trunk/source/processes/cuts/src/G4RToEConvForAntiProton.cc
r819 r961 26 26 // 27 27 // $Id: G4RToEConvForAntiProton.cc,v 1.3 2006/06/29 19:30:20 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-02-ref-02 $ 29 29 // 30 30 // -
trunk/source/processes/cuts/src/G4RToEConvForElectron.cc
r819 r961 26 26 // 27 27 // $Id: G4RToEConvForElectron.cc,v 1.5 2006/06/29 19:30:22 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-02-ref-02 $ 29 29 // 30 30 // -
trunk/source/processes/cuts/src/G4RToEConvForGamma.cc
r819 r961 26 26 // 27 27 // $Id: G4RToEConvForGamma.cc,v 1.4 2006/06/29 19:30:24 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-02-ref-02 $ 29 29 // 30 30 // -
trunk/source/processes/cuts/src/G4RToEConvForNeutron.cc
r819 r961 26 26 // 27 27 // $Id: G4RToEConvForNeutron.cc,v 1.3 2006/06/29 19:30:26 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-02-ref-02 $ 29 29 // 30 30 // -
trunk/source/processes/cuts/src/G4RToEConvForPositron.cc
r819 r961 26 26 // 27 27 // $Id: G4RToEConvForPositron.cc,v 1.5 2006/06/29 19:30:28 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-02-ref-02 $ 29 29 // 30 30 // -
trunk/source/processes/cuts/src/G4RToEConvForProton.cc
r819 r961 26 26 // 27 27 // $Id: G4RToEConvForProton.cc,v 1.3 2006/06/29 19:30:30 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-02-ref-02 $ 29 29 // 30 30 // -
trunk/source/processes/cuts/src/G4VRangeToEnergyConverter.cc
r819 r961 25 25 // 26 26 // 27 // $Id: G4VRangeToEnergyConverter.cc,v 1. 8 2007/06/06 05:13:34 urbanExp $28 // GEANT4 tag $Name: geant4-09-0 1-patch-02 $27 // $Id: G4VRangeToEnergyConverter.cc,v 1.9 2008/03/02 10:52:56 kurasige Exp $ 28 // GEANT4 tag $Name: geant4-09-02-ref-02 $ 29 29 // 30 30 // … … 274 274 theLossTable->reserve(G4Element::GetNumberOfElements()); 275 275 #ifdef G4VERBOSE 276 if (GetVerboseLevel()> 2) {276 if (GetVerboseLevel()>3) { 277 277 G4cout << "G4VRangeToEnergyConverter::BuildLossTable() "; 278 278 G4cout << "Create theLossTable[" << theLossTable << "]"; … … 447 447 if ( theCutInLength >= rmax ) { 448 448 #ifdef G4VERBOSE 449 if (GetVerboseLevel()> 0) {449 if (GetVerboseLevel()>2) { 450 450 G4cout << "G4VRangeToEnergyConverter::ConvertCutToKineticEnergy "; 451 451 G4cout << " for " << theParticle->GetParticleName() << G4endl;
Note:
See TracChangeset
for help on using the changeset viewer.
