Changeset 1340 for trunk/source/processes/hadronic/models/management
- Timestamp:
- Nov 5, 2010, 3:45:55 PM (14 years ago)
- Location:
- trunk/source/processes/hadronic/models/management
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/hadronic/models/management/History
r1337 r1340 14 14 * Please list in reverse chronological order (last date on top) 15 15 --------------------------------------------------------------- 16 17 8 September 2010 - G.Folger (hadr-modman-V09-03-04) 18 ------------------------------------------------------ 19 - G4V3DNucleus; use integer for A and Z 20 21 28 August 2010 - V.Ivanchenko (hadr-modman-V09-03-03) 22 ------------------------------------------------------ 23 - G4VPreCompoundModel - make deexcited G4Fragment non-const 24 - G4VIntraNuclearTransportModel - moved constructor and destructor 25 to the source 16 26 17 27 11 June 2010 - V.Ivanchenko (hadr-modman-V09-03-02) -
trunk/source/processes/hadronic/models/management/include/G4HadronicInteraction.hh
r1337 r1340 26 26 // 27 27 // $Id: G4HadronicInteraction.hh,v 1.14 2010/04/03 00:40:45 dennis Exp $ 28 // GEANT4 tag $Name: geant4-09-0 4-beta-01$28 // GEANT4 tag $Name: geant4-09-03-ref-09 $ 29 29 // 30 30 // Hadronic Interaction abstract base class -
trunk/source/processes/hadronic/models/management/include/G4HadronicInteractionRegistry.hh
r1337 r1340 25 25 // 26 26 // $Id: G4HadronicInteractionRegistry.hh,v 1.5 2009/08/30 16:12:34 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-0 4-beta-01$27 // GEANT4 tag $Name: geant4-09-03-ref-09 $ 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
r1337 r1340 26 26 // 27 27 // $Id: G4InelasticInteraction.hh,v 1.7 2009/08/30 16:12:13 vnivanch Exp $ 28 // GEANT4 tag $Name: geant4-09-0 4-beta-01$28 // GEANT4 tag $Name: geant4-09-03-ref-09 $ 29 29 // 30 30 // Hadronic Process: Inelastic Interaction -
trunk/source/processes/hadronic/models/management/include/G4V3DNucleus.hh
r1337 r1340 25 25 // 26 26 // 27 // $Id: G4V3DNucleus.hh,v 1. 7 2009/11/19 14:29:05gunter Exp $28 // GEANT4 tag $Name: geant4-09-0 4-beta-01$27 // $Id: G4V3DNucleus.hh,v 1.8 2010/09/08 16:39:22 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-03-ref-09 $ 29 29 // 30 30 #ifndef G4V3DNucleus_h … … 52 52 53 53 public: 54 virtual void Init(G4 double theA, G4doubletheZ) = 0;54 virtual void Init(G4int theA, G4int theZ) = 0; 55 55 virtual G4bool StartLoop() = 0; 56 56 virtual G4Nucleon * GetNextNucleon() = 0; -
trunk/source/processes/hadronic/models/management/include/G4VHighEnergyGenerator.hh
r1337 r1340 26 26 // 27 27 // $Id: G4VHighEnergyGenerator.hh,v 1.4 2006/06/29 20:45:41 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 4-beta-01$28 // GEANT4 tag $Name: geant4-09-03-ref-09 $ 29 29 // 30 30 #ifndef G4VHighEnergyGenerator_h -
trunk/source/processes/hadronic/models/management/include/G4VIntraNuclearTransportModel.hh
r1337 r1340 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4VIntraNuclearTransportModel.hh,v 1.5 2010/08/28 15:53:50 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-03-ref-09 $ 26 28 // 27 // $Id: G4VIntraNuclearTransportModel.hh,v 1.4 2007/01/11 05:29:46 dennis Exp $28 // GEANT4 tag $Name: geant4-09-04-beta-01 $29 //30 // $Id: G4IntraNuclearTransportMode.hh,v 1.0 1998/06/3031 29 // ----------------------------------------------------------------------------- 32 30 // GEANT 4 class header file … … 55 53 #include "G4HadProjectile.hh" 56 54 #include "G4HadFinalState.hh" 55 57 56 class G4KineticTrackVector; 58 57 58 class G4VIntraNuclearTransportModel : public G4HadronicInteraction 59 { 60 public: 59 61 60 class G4VIntraNuclearTransportModel : public G4HadronicInteraction 62 G4VIntraNuclearTransportModel(const G4String& modelName = "CascadeModel"); 61 63 62 { 63 public: 64 virtual ~G4VIntraNuclearTransportModel(); 64 65 65 G4VIntraNuclearTransportModel(const G4String& modelName = "CascadeModel"); 66 virtual 67 G4ReactionProductVector* Propagate(G4KineticTrackVector* theSecondaries, 68 G4V3DNucleus* theNucleus) = 0; 66 69 67 G4VIntraNuclearTransportModel(const G4VIntraNuclearTransportModel& right);70 inline void SetDeExcitation(G4VPreCompoundModel* const value); 68 71 69 virtual ~G4VIntraNuclearTransportModel();72 inline void Set3DNucleus(G4V3DNucleus* const value); 70 73 71 const G4VIntraNuclearTransportModel& operator=(const G4VIntraNuclearTransportModel &right);74 inline const G4String& GetModelName() const; 72 75 73 int operator==(const G4VIntraNuclearTransportModel& right) const; 76 private: 74 77 75 int operator!=(const G4VIntraNuclearTransportModel& right) const; 78 G4VIntraNuclearTransportModel(const G4VIntraNuclearTransportModel& right); 79 const G4VIntraNuclearTransportModel& operator=(const G4VIntraNuclearTransportModel &right); 80 int operator==(const G4VIntraNuclearTransportModel& right) const; 81 int operator!=(const G4VIntraNuclearTransportModel& right) const; 76 82 77 virtual G4ReactionProductVector* Propagate(G4KineticTrackVector* theSecondaries, 78 G4V3DNucleus* theNucleus) = 0; 83 protected: 79 84 80 void SetDeExcitation(G4VPreCompoundModel* const value); 81 void Set3DNucleus(G4V3DNucleus* const value); 85 inline G4V3DNucleus* Get3DNucleus() const; 82 86 87 inline G4VPreCompoundModel* GetDeExcitation() const; 83 88 84 protected:89 G4String theTransportModelName; 85 90 86 G4String GetModelName() const;91 G4V3DNucleus* the3DNucleus; 87 92 88 G4V3DNucleus* Get3DNucleus() const; 89 90 G4VPreCompoundModel* GetDeExcitation() const; 91 92 93 protected: 94 95 G4String theTransportModelName; 96 97 G4V3DNucleus* the3DNucleus; 98 99 G4VPreCompoundModel* theDeExcitation; 93 G4VPreCompoundModel* theDeExcitation; 100 94 }; 101 95 102 103 104 // Class G4VIntraNuclearTransportModel 105 106 107 inline G4String G4VIntraNuclearTransportModel::GetModelName() const 96 inline const G4String& G4VIntraNuclearTransportModel::GetModelName() const 108 97 { 109 98 return theTransportModelName; … … 120 109 } 121 110 122 123 124 111 inline G4VPreCompoundModel* G4VIntraNuclearTransportModel::GetDeExcitation() const 125 112 { … … 127 114 } 128 115 129 inline void G4VIntraNuclearTransportModel::SetDeExcitation(G4VPreCompoundModel* const value) 116 inline void 117 G4VIntraNuclearTransportModel::SetDeExcitation(G4VPreCompoundModel* const value) 130 118 { 131 delete theDeExcitation; theDeExcitation = value; 119 delete theDeExcitation; 120 theDeExcitation = value; 132 121 } 133 122 -
trunk/source/processes/hadronic/models/management/include/G4VKineticNucleon.hh
r1337 r1340 26 26 // 27 27 // $Id: G4VKineticNucleon.hh,v 1.4 2006/06/29 20:45:47 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 4-beta-01$28 // GEANT4 tag $Name: geant4-09-03-ref-09 $ 29 29 // 30 30 #ifndef G4VKineticNucleon_h -
trunk/source/processes/hadronic/models/management/include/G4VNuclearDensity.hh
r1337 r1340 26 26 // 27 27 // $Id: G4VNuclearDensity.hh,v 1.4 2006/06/29 20:45:49 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 4-beta-01$28 // GEANT4 tag $Name: geant4-09-03-ref-09 $ 29 29 // 30 30 #ifndef G4VNuclearDensity_h -
trunk/source/processes/hadronic/models/management/include/G4VPreCompoundModel.hh
r1337 r1340 25 25 // 26 26 // 27 // $Id: G4VPreCompoundModel.hh,v 1. 6 2010/06/11 15:26:36vnivanch Exp $28 // GEANT4 tag $Name: geant4-09-0 4-beta-01$27 // $Id: G4VPreCompoundModel.hh,v 1.7 2010/08/20 07:43:28 vnivanch Exp $ 28 // GEANT4 tag $Name: geant4-09-03-ref-09 $ 29 29 // 30 30 … … 58 58 virtual ~G4VPreCompoundModel(); 59 59 60 protected: 60 private: 61 61 62 // default constructor 62 63 G4VPreCompoundModel(); 63 64 private:65 66 64 // copy constructor 67 G4VPreCompoundModel(const G4VPreCompoundModel &) : G4HadronicInteraction() {};65 G4VPreCompoundModel(const G4VPreCompoundModel &); 68 66 // operators 69 67 const G4VPreCompoundModel& operator=(const G4VPreCompoundModel &right); … … 76 74 ApplyYourself(const G4HadProjectile & thePrimary, G4Nucleus & theNucleus) = 0; 77 75 78 virtual G4ReactionProductVector* 79 DeExcite(const G4Fragment& aFragment) const = 0; 76 virtual G4ReactionProductVector* DeExcite(G4Fragment& aFragment) = 0; 80 77 81 78 inline void SetExcitationHandler(G4ExcitationHandler *const value); -
trunk/source/processes/hadronic/models/management/src/G4HadronicInteraction.cc
r1337 r1340 25 25 // 26 26 // $Id: G4HadronicInteraction.cc,v 1.7 2010/04/03 00:40:57 dennis Exp $ 27 // GEANT4 tag $Name: geant4-09-0 4-beta-01$27 // GEANT4 tag $Name: geant4-09-03-ref-09 $ 28 28 // 29 29 // Hadronic Interaction base class -
trunk/source/processes/hadronic/models/management/src/G4HadronicInteractionRegistry.cc
r1337 r1340 25 25 // 26 26 // $Id: G4HadronicInteractionRegistry.cc,v 1.10 2010/03/25 15:31:42 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-0 4-beta-01$27 // GEANT4 tag $Name: geant4-09-03-ref-09 $ 28 28 // 29 29 // 23-Jan-2009 V.Ivanchenko make the class to be a singleton -
trunk/source/processes/hadronic/models/management/src/G4InelasticInteraction.cc
r1337 r1340 25 25 // 26 26 // $Id: G4InelasticInteraction.cc,v 1.12 2009/01/24 11:56:27 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-0 4-beta-01$27 // GEANT4 tag $Name: geant4-09-03-ref-09 $ 28 28 // 29 29 // Hadronic Process: Inelastic Interaction -
trunk/source/processes/hadronic/models/management/src/G4V3DNucleus.cc
r1337 r1340 26 26 // 27 27 // $Id: G4V3DNucleus.cc,v 1.5 2006/06/29 20:45:59 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 4-beta-01$28 // GEANT4 tag $Name: geant4-09-03-ref-09 $ 29 29 // 30 30 #include "G4V3DNucleus.hh" -
trunk/source/processes/hadronic/models/management/src/G4VHighEnergyGenerator.cc
r1337 r1340 26 26 // 27 27 // $Id: G4VHighEnergyGenerator.cc,v 1.5 2006/06/29 20:46:03 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 4-beta-01$28 // GEANT4 tag $Name: geant4-09-03-ref-09 $ 29 29 // 30 30 // G4VHighEnergyGenerator -
trunk/source/processes/hadronic/models/management/src/G4VIntraNuclearTransportModel.cc
r1337 r1340 24 24 // ******************************************************************** 25 25 // 26 // 27 // $Id: G4VIntraNuclearTransportModel.cc,v 1.5 2007/01/11 05:28:56 dennis Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 26 // $Id: G4VIntraNuclearTransportModel.cc,v 1.6 2010/08/28 15:53:50 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-03-ref-09 $ 29 28 // 30 29 // $Id: G4VIntraNuclearTransportModel.cc,v 1.0 1998/06/30 … … 39 38 #include "G4VIntraNuclearTransportModel.hh" 40 39 41 42 // Class G4VIntraNuclearTransportModel 43 44 45 G4VIntraNuclearTransportModel::G4VIntraNuclearTransportModel(const G4String& modelName) : 46 G4HadronicInteraction(modelName), 47 theTransportModelName(modelName), the3DNucleus(NULL), theDeExcitation(NULL) 40 G4VIntraNuclearTransportModel::G4VIntraNuclearTransportModel(const G4String& modName) 41 : G4HadronicInteraction(modName), 42 theTransportModelName(modName), the3DNucleus(0), theDeExcitation(0) 48 43 {} 49 50 51 G4VIntraNuclearTransportModel::52 G4VIntraNuclearTransportModel(const G4VIntraNuclearTransportModel& right) :53 G4HadronicInteraction(right.GetModelName() )54 {55 theTransportModelName = right.GetModelName();56 the3DNucleus = right.Get3DNucleus();57 theDeExcitation = right.GetDeExcitation();58 }59 60 44 61 45 G4VIntraNuclearTransportModel::~G4VIntraNuclearTransportModel() 62 46 { 63 // if(the3DNucleus!=NULL) delete the3DNucleus;47 // if(the3DNucleus!=NULL) delete the3DNucleus; 64 48 // This is deleted by ~G4HadronicInteractionRegistry 65 49 // if(theDeExcitation!=NULL) delete theDeExcitation; 66 50 } 67 51 68 69 const G4VIntraNuclearTransportModel&70 G4VIntraNuclearTransportModel::71 operator=(const G4VIntraNuclearTransportModel& right)72 {73 if (this != &right)74 {75 theTransportModelName = right.GetModelName();76 the3DNucleus = right.Get3DNucleus();77 theDeExcitation = right.GetDeExcitation();78 }79 return *this;80 }81 82 83 int G4VIntraNuclearTransportModel::84 operator==(const G4VIntraNuclearTransportModel& right) const85 {86 return (this == (G4VIntraNuclearTransportModel *) & right);87 }88 89 int G4VIntraNuclearTransportModel::90 operator!=(const G4VIntraNuclearTransportModel& right) const91 {92 return (this != (G4VIntraNuclearTransportModel *) & right);93 } -
trunk/source/processes/hadronic/models/management/src/G4VKineticNucleon.cc
r1337 r1340 26 26 // 27 27 // $Id: G4VKineticNucleon.cc,v 1.3 2006/06/29 20:46:07 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 4-beta-01$28 // GEANT4 tag $Name: geant4-09-03-ref-09 $ 29 29 // 30 30 #include "G4VKineticNucleon.hh" -
trunk/source/processes/hadronic/models/management/src/G4VNuclearDensity.cc
r1337 r1340 26 26 // 27 27 // $Id: G4VNuclearDensity.cc,v 1.3 2006/06/29 20:46:09 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 4-beta-01$28 // GEANT4 tag $Name: geant4-09-03-ref-09 $ 29 29 // 30 30 -
trunk/source/processes/hadronic/models/management/src/G4VPreCompoundModel.cc
r1337 r1340 26 26 // 27 27 // $Id: G4VPreCompoundModel.cc,v 1.7 2010/06/11 15:26:36 vnivanch Exp $ 28 // GEANT4 tag $Name: geant4-09-0 4-beta-01$28 // GEANT4 tag $Name: geant4-09-03-ref-09 $ 29 29 // 30 30
Note: See TracChangeset
for help on using the changeset viewer.