- Timestamp:
- Jun 18, 2010, 11:42:07 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/physics_lists/builders/src/G4HadronQElasticPhysics.cc
r1228 r1315 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4HadronQElasticPhysics.cc,v 1. 7 2008/05/19 10:21:34vnivanch Exp $27 // GEANT4 tag $Name: geant4-09-0 3$26 // $Id: G4HadronQElasticPhysics.cc,v 1.9 2010/06/03 14:28:32 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-04-beta-cand-01 $ 28 28 // 29 29 //--------------------------------------------------------------------------- … … 34 34 // 35 35 // Modified: 36 // 03.06.2010 V.Ivanchenko cleanup constructors and ConstructProcess method 36 37 // 37 38 //---------------------------------------------------------------------------- 38 39 // 40 // CHIPS x-sections and generator (G4QElastic) for n and p 41 // LHEP x-section and generator for the rest 39 42 40 43 #include "G4HadronQElasticPhysics.hh" … … 54 57 #include "G4IonConstructor.hh" 55 58 56 G4HadronQElasticPhysics::G4HadronQElasticPhysics( 57 const G4String& name, G4int ver)58 : G4VPhysicsConstructor(name), verbose(ver),wasActivated(false)59 G4HadronQElasticPhysics::G4HadronQElasticPhysics(G4int ver) 60 : G4VPhysicsConstructor("hElasticCHIPS_LHEP"), verbose(ver), 61 wasActivated(false) 59 62 { 60 if(verbose > 1) G4cout << "### HadronQElasticPhysics" << G4endl; 63 if(verbose > 1) { 64 G4cout << "### G4HadronQElasticPhysics: " << GetPhysicsName() 65 << G4endl; 66 } 67 model = 0; 68 } 69 70 G4HadronQElasticPhysics::G4HadronQElasticPhysics(const G4String&, G4int ver) 71 : G4VPhysicsConstructor("hElasticCHIPS_UELAST"), verbose(ver), 72 wasActivated(false) 73 { 74 if(verbose > 1) { 75 G4cout << "### G4HadronQElasticPhysics: " << GetPhysicsName() 76 << G4endl; 77 } 61 78 model = 0; 62 79 } … … 82 99 void G4HadronQElasticPhysics::ConstructProcess() 83 100 { 84 if(wasActivated) return;101 if(wasActivated) { return; } 85 102 wasActivated = true; 86 103 87 104 G4double elimit = DBL_MAX; 88 105 89 if(verbose > 1) 106 if(verbose > 1) { 90 107 G4cout << "### HadronQElasticPhysics: use HE limit " << elimit << " MeV" 91 108 << G4endl; 92 109 } 93 110 process = new G4QElastic(); 94 111
Note: See TracChangeset
for help on using the changeset viewer.