Changeset 961 for trunk/source/processes/cuts
- Timestamp:
- Apr 6, 2009, 12:21:12 PM (17 years ago)
- Location:
- trunk/source/processes/cuts
- Files:
-
- 27 edited
-
History (modified) (2 diffs)
-
include/G4MCCIndexConversionTable.hh (modified) (1 diff)
-
include/G4MaterialCutsCouple.hh (modified) (1 diff)
-
include/G4PhysicsTableHelper.hh (modified) (1 diff)
-
include/G4ProductionCuts.hh (modified) (1 diff)
-
include/G4ProductionCutsTable.hh (modified) (5 diffs)
-
include/G4RToEConvForAntiNeutron.hh (modified) (1 diff)
-
include/G4RToEConvForAntiProton.hh (modified) (1 diff)
-
include/G4RToEConvForElectron.hh (modified) (1 diff)
-
include/G4RToEConvForGamma.hh (modified) (1 diff)
-
include/G4RToEConvForNeutron.hh (modified) (1 diff)
-
include/G4RToEConvForPositron.hh (modified) (1 diff)
-
include/G4RToEConvForProton.hh (modified) (1 diff)
-
include/G4VRangeToEnergyConverter.hh (modified) (1 diff)
-
src/G4MCCIndexConversionTable.cc (modified) (1 diff)
-
src/G4MaterialCutsCouple.cc (modified) (1 diff)
-
src/G4PhysicsTableHelper.cc (modified) (1 diff)
-
src/G4ProductionCuts.cc (modified) (1 diff)
-
src/G4ProductionCutsTable.cc (modified) (11 diffs)
-
src/G4RToEConvForAntiNeutron.cc (modified) (1 diff)
-
src/G4RToEConvForAntiProton.cc (modified) (1 diff)
-
src/G4RToEConvForElectron.cc (modified) (1 diff)
-
src/G4RToEConvForGamma.cc (modified) (1 diff)
-
src/G4RToEConvForNeutron.cc (modified) (1 diff)
-
src/G4RToEConvForPositron.cc (modified) (1 diff)
-
src/G4RToEConvForProton.cc (modified) (1 diff)
-
src/G4VRangeToEnergyConverter.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/cuts/History
r819 r961 1 $Id: History,v 1.2 1 2007/06/06 14:50:38 gcosmoExp $1 $Id: History,v 1.22 2008/03/02 10:52:55 kurasige Exp $ 2 2 ------------------------------------------------------------------- 3 3 … … 17 17 * Reverse chronological order (last date on top), please * 18 18 ---------------------------------------------------------- 19 Mar. 2nd, 2008 - H.Kurashige (procuts-V09-01-00) 20 - Add ProductionCutsMessenger 21 - Suppress 'too big cut value' messsage for higher verbosity 19 22 20 23 June 6th, 2007 - L.Urban (procuts-V08-03-01) -
trunk/source/processes/cuts/include/G4MCCIndexConversionTable.hh
r819 r961 25 25 // 26 26 // $Id: G4MCCIndexConversionTable.hh,v 1.3 2006/06/29 19:29:42 gunter Exp $ 27 // GEANT4 tag $Name: $27 // GEANT4 tag $Name: geant4-09-02-ref-02 $ 28 28 // 29 29 // -
trunk/source/processes/cuts/include/G4MaterialCutsCouple.hh
r819 r961 26 26 // 27 27 // $Id: G4MaterialCutsCouple.hh,v 1.3 2006/06/29 19:29:44 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-02-ref-02 $ 29 29 // 30 30 // -
trunk/source/processes/cuts/include/G4PhysicsTableHelper.hh
r819 r961 26 26 // 27 27 // $Id: G4PhysicsTableHelper.hh,v 1.3 2006/06/29 19:29:46 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-02-ref-02 $ 29 29 // 30 30 // -
trunk/source/processes/cuts/include/G4ProductionCuts.hh
r819 r961 26 26 // 27 27 // $Id: G4ProductionCuts.hh,v 1.4 2006/06/29 19:29:48 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-02-ref-02 $ 29 29 // 30 30 // -
trunk/source/processes/cuts/include/G4ProductionCutsTable.hh
r819 r961 25 25 // 26 26 // 27 // $Id: G4ProductionCutsTable.hh,v 1. 8 2007/03/15 04:06:40kurasige Exp $28 // GEANT4 tag $Name: geant4-09-0 1-patch-02 $27 // $Id: G4ProductionCutsTable.hh,v 1.9 2008/03/02 10:52:55 kurasige Exp $ 28 // GEANT4 tag $Name: geant4-09-02-ref-02 $ 29 29 // 30 30 // … … 46 46 // Modify RetrieveCutsTable to allow materials and 47 47 // couples can be different from one in file (i.e. at storing) 48 // 48 // Modified 2 Mar. 2008 H.Kurashige 49 // add messenger 49 50 // ------------------------------------------------------------ 50 51 … … 57 58 class G4VPhysicalVolume; 58 59 class G4ProductionCuts; 60 61 class G4ProductionCutsTableMessenger; 59 62 60 63 #include "globals.hh" … … 227 230 228 231 private: 229 G4int verboseLevel; 232 G4int verboseLevel; 233 G4ProductionCutsTableMessenger* fMessenger; 230 234 231 235 }; … … 340 344 341 345 inline 342 void G4ProductionCutsTable::SetVerboseLevel(G4int value)343 {344 verboseLevel = value;345 }346 347 inline348 346 G4int G4ProductionCutsTable::GetVerboseLevel() const 349 347 { -
trunk/source/processes/cuts/include/G4RToEConvForAntiNeutron.hh
r819 r961 26 26 // 27 27 // $Id: G4RToEConvForAntiNeutron.hh,v 1.2 2006/06/29 19:29:52 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-02-ref-02 $ 29 29 // 30 30 // -
trunk/source/processes/cuts/include/G4RToEConvForAntiProton.hh
r819 r961 26 26 // 27 27 // $Id: G4RToEConvForAntiProton.hh,v 1.2 2006/06/29 19:29:54 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-02-ref-02 $ 29 29 // 30 30 // -
trunk/source/processes/cuts/include/G4RToEConvForElectron.hh
r819 r961 26 26 // 27 27 // $Id: G4RToEConvForElectron.hh,v 1.2 2006/06/29 19:29:56 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-02-ref-02 $ 29 29 // 30 30 // -
trunk/source/processes/cuts/include/G4RToEConvForGamma.hh
r819 r961 26 26 // 27 27 // $Id: G4RToEConvForGamma.hh,v 1.2 2006/06/29 19:29:58 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-02-ref-02 $ 29 29 // 30 30 // -
trunk/source/processes/cuts/include/G4RToEConvForNeutron.hh
r819 r961 26 26 // 27 27 // $Id: G4RToEConvForNeutron.hh,v 1.2 2006/06/29 19:30:00 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-02-ref-02 $ 29 29 // 30 30 // -
trunk/source/processes/cuts/include/G4RToEConvForPositron.hh
r819 r961 26 26 // 27 27 // $Id: G4RToEConvForPositron.hh,v 1.2 2006/06/29 19:30:02 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-02-ref-02 $ 29 29 // 30 30 // -
trunk/source/processes/cuts/include/G4RToEConvForProton.hh
r819 r961 26 26 // 27 27 // $Id: G4RToEConvForProton.hh,v 1.2 2006/06/29 19:30:04 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-02-ref-02 $ 29 29 // 30 30 // -
trunk/source/processes/cuts/include/G4VRangeToEnergyConverter.hh
r819 r961 26 26 // 27 27 // $Id: G4VRangeToEnergyConverter.hh,v 1.4 2006/06/29 19:30:06 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: geant4-09-02-ref-02 $ 29 29 // 30 30 // -
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.
