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/track/src/G4ParticleChangeForTransport.cc

    r1337 r1340  
    2525//
    2626//
    27 // $Id: G4ParticleChangeForTransport.cc,v 1.19 2006/11/03 17:45:04 japost Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     27// $Id: G4ParticleChangeForTransport.cc,v 1.20 2010/07/21 09:30:15 gcosmo Exp $
     28// GEANT4 tag $Name: track-V09-03-09 $
    2929//
    3030//
     
    4747#include "G4DynamicParticle.hh"
    4848
    49 G4ParticleChangeForTransport::G4ParticleChangeForTransport():G4ParticleChange()
     49G4ParticleChangeForTransport::G4ParticleChangeForTransport()
     50  : G4ParticleChange(), isMomentumChanged(false), theMaterialChange(0),
     51    theMaterialCutsCoupleChange(0), theSensitiveDetectorChange(0)
    5052{
    5153  if (verboseLevel>2) {
    52     G4cout << "G4ParticleChangeForTransport::G4ParticleChangeForTransport() " << G4endl;
     54    G4cout << "G4ParticleChangeForTransport::G4ParticleChangeForTransport() "
     55           << G4endl;
    5356  }
    5457}
     
    5760{
    5861  if (verboseLevel>2) {
    59     G4cout << "G4ParticleChangeForTransport::~G4ParticleChangeForTransport() " << G4endl;
    60   }
    61 }
    62 
    63 
    64 G4ParticleChangeForTransport::G4ParticleChangeForTransport(const G4ParticleChangeForTransport &right):G4ParticleChange(right)
     62    G4cout << "G4ParticleChangeForTransport::~G4ParticleChangeForTransport() "
     63           << G4endl;
     64  }
     65}
     66
     67G4ParticleChangeForTransport::
     68G4ParticleChangeForTransport(const G4ParticleChangeForTransport &r)
     69  : G4ParticleChange(r)
    6570{
    6671  if (verboseLevel>0) {
    67     G4cout << "G4ParticleChangeForTransport::  copy constructor is called " << G4endl;
    68   }
    69   theTouchableHandle = right.theTouchableHandle;
     72    G4cout << "G4ParticleChangeForTransport::  copy constructor is called "
     73           << G4endl;
     74  }
     75  theTouchableHandle = r.theTouchableHandle;
     76  isMomentumChanged = r.isMomentumChanged;
     77  theMaterialChange = r.theMaterialChange;
     78  theMaterialCutsCoupleChange = r.theMaterialCutsCoupleChange;
     79  theSensitiveDetectorChange = r.theSensitiveDetectorChange;
    7080}
    7181
    7282// assignemnt operator
    73 G4ParticleChangeForTransport & G4ParticleChangeForTransport::operator=(const G4ParticleChangeForTransport &right)
     83G4ParticleChangeForTransport &
     84G4ParticleChangeForTransport::operator=(const G4ParticleChangeForTransport &r)
    7485{
    7586   if (verboseLevel>1) {
    76     G4cout << "G4ParticleChangeForTransport:: assignment operator is called " << G4endl;
     87    G4cout << "G4ParticleChangeForTransport:: assignment operator is called "
     88           << G4endl;
    7789   }
    78    if (this != &right)
     90   if (this != &r)
    7991   {
    80       theListOfSecondaries = right.theListOfSecondaries;
    81       theSizeOftheListOfSecondaries = right.theSizeOftheListOfSecondaries;
    82       theNumberOfSecondaries = right.theNumberOfSecondaries;
    83       theStatusChange = right.theStatusChange;
    84       theTouchableHandle = right.theTouchableHandle;
    85       theMaterialChange = right.theMaterialChange;
    86       theMaterialCutsCoupleChange = right.theMaterialCutsCoupleChange;
    87       theSensitiveDetectorChange = right.theSensitiveDetectorChange;
    88       theMomentumDirectionChange = right.theMomentumDirectionChange;
    89       thePolarizationChange = right.thePolarizationChange;
    90       thePositionChange = right.thePositionChange;
    91       theTimeChange = right.theTimeChange;
    92       theEnergyChange = right.theEnergyChange;
    93       theTrueStepLength = right.theTrueStepLength;
    94       theLocalEnergyDeposit = right.theLocalEnergyDeposit;
    95       theSteppingControlFlag = right.theSteppingControlFlag;
     92      theListOfSecondaries = r.theListOfSecondaries;
     93      theSizeOftheListOfSecondaries = r.theSizeOftheListOfSecondaries;
     94      theNumberOfSecondaries = r.theNumberOfSecondaries;
     95      theStatusChange = r.theStatusChange;
     96      theTouchableHandle = r.theTouchableHandle;
     97      theMaterialChange = r.theMaterialChange;
     98      theMaterialCutsCoupleChange = r.theMaterialCutsCoupleChange;
     99      theSensitiveDetectorChange = r.theSensitiveDetectorChange;
     100      theMomentumDirectionChange = r.theMomentumDirectionChange;
     101      thePolarizationChange = r.thePolarizationChange;
     102      thePositionChange = r.thePositionChange;
     103      theTimeChange = r.theTimeChange;
     104      theEnergyChange = r.theEnergyChange;
     105      theTrueStepLength = r.theTrueStepLength;
     106      theLocalEnergyDeposit = r.theLocalEnergyDeposit;
     107      theSteppingControlFlag = r.theSteppingControlFlag;
    96108   }
    97109   return *this;
     
    106118  // Nothing happens for AtRestDoIt
    107119  if (verboseLevel>0) {
    108     G4cout << "G4ParticleChangeForTransport::UpdateStepForAtRest() is called" << G4endl;
     120    G4cout << "G4ParticleChangeForTransport::UpdateStepForAtRest() is called"
     121           << G4endl;
    109122    G4cout << " Nothing happens for this method " << G4endl;
    110123  }
     
    236249  G4ParticleChange::DumpInfo();
    237250
    238   G4cout.precision(3);
     251  G4int oldprc = G4cout.precision(3);
    239252  G4cout << "        Touchable (pointer) : "
    240        << std::setw(20) << theTouchableHandle()
    241        << G4endl;
    242 }
    243 
    244 
    245 
    246 
    247 
    248 
    249 
    250 
     253         << std::setw(20) << theTouchableHandle() << G4endl;
     254  G4cout.precision(oldprc);
     255}
Note: See TracChangeset for help on using the changeset viewer.