Changeset 1340 for trunk/source/processes/hadronic/models/management/src/G4VIntraNuclearTransportModel.cc
- Timestamp:
- Nov 5, 2010, 3:45:55 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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 }
Note: See TracChangeset
for help on using the changeset viewer.