Ignore:
Timestamp:
Nov 5, 2010, 3:45:55 PM (14 years ago)
Author:
garnier
Message:

update ti head

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/hadronic/models/management/src/G4VIntraNuclearTransportModel.cc

    r1337 r1340  
    2424// ********************************************************************
    2525//
    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 $
    2928//
    3029// $Id: G4VIntraNuclearTransportModel.cc,v 1.0 1998/06/30
     
    3938#include "G4VIntraNuclearTransportModel.hh"
    4039
    41 
    42 // Class G4VIntraNuclearTransportModel
    43 
    44 
    45 G4VIntraNuclearTransportModel::G4VIntraNuclearTransportModel(const G4String& modelName) :
    46   G4HadronicInteraction(modelName),
    47   theTransportModelName(modelName), the3DNucleus(NULL), theDeExcitation(NULL)
     40G4VIntraNuclearTransportModel::G4VIntraNuclearTransportModel(const G4String& modName)
     41  : G4HadronicInteraction(modName),
     42    theTransportModelName(modName), the3DNucleus(0), theDeExcitation(0)
    4843{}
    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 
    6044
    6145G4VIntraNuclearTransportModel::~G4VIntraNuclearTransportModel()
    6246{
    63 //  if(the3DNucleus!=NULL) delete the3DNucleus;
     47  //  if(the3DNucleus!=NULL) delete the3DNucleus;
    6448  // This is deleted by ~G4HadronicInteractionRegistry
    6549  // if(theDeExcitation!=NULL) delete theDeExcitation;
    6650}
    6751
    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) const
    85 {
    86  return (this == (G4VIntraNuclearTransportModel *) & right);
    87 }
    88 
    89 int G4VIntraNuclearTransportModel::
    90 operator!=(const G4VIntraNuclearTransportModel& right) const
    91 {
    92  return (this != (G4VIntraNuclearTransportModel *) & right);
    93 }
Note: See TracChangeset for help on using the changeset viewer.