Changeset 1340 for trunk/source/track/src/G4ParticleChangeForTransport.cc
- Timestamp:
- Nov 5, 2010, 3:45:55 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/track/src/G4ParticleChangeForTransport.cc
r1337 r1340 25 25 // 26 26 // 27 // $Id: G4ParticleChangeForTransport.cc,v 1. 19 2006/11/03 17:45:04 japostExp $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 $ 29 29 // 30 30 // … … 47 47 #include "G4DynamicParticle.hh" 48 48 49 G4ParticleChangeForTransport::G4ParticleChangeForTransport():G4ParticleChange() 49 G4ParticleChangeForTransport::G4ParticleChangeForTransport() 50 : G4ParticleChange(), isMomentumChanged(false), theMaterialChange(0), 51 theMaterialCutsCoupleChange(0), theSensitiveDetectorChange(0) 50 52 { 51 53 if (verboseLevel>2) { 52 G4cout << "G4ParticleChangeForTransport::G4ParticleChangeForTransport() " << G4endl; 54 G4cout << "G4ParticleChangeForTransport::G4ParticleChangeForTransport() " 55 << G4endl; 53 56 } 54 57 } … … 57 60 { 58 61 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 67 G4ParticleChangeForTransport:: 68 G4ParticleChangeForTransport(const G4ParticleChangeForTransport &r) 69 : G4ParticleChange(r) 65 70 { 66 71 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; 70 80 } 71 81 72 82 // assignemnt operator 73 G4ParticleChangeForTransport & G4ParticleChangeForTransport::operator=(const G4ParticleChangeForTransport &right) 83 G4ParticleChangeForTransport & 84 G4ParticleChangeForTransport::operator=(const G4ParticleChangeForTransport &r) 74 85 { 75 86 if (verboseLevel>1) { 76 G4cout << "G4ParticleChangeForTransport:: assignment operator is called " << G4endl; 87 G4cout << "G4ParticleChangeForTransport:: assignment operator is called " 88 << G4endl; 77 89 } 78 if (this != &r ight)90 if (this != &r) 79 91 { 80 theListOfSecondaries = r ight.theListOfSecondaries;81 theSizeOftheListOfSecondaries = r ight.theSizeOftheListOfSecondaries;82 theNumberOfSecondaries = r ight.theNumberOfSecondaries;83 theStatusChange = r ight.theStatusChange;84 theTouchableHandle = r ight.theTouchableHandle;85 theMaterialChange = r ight.theMaterialChange;86 theMaterialCutsCoupleChange = r ight.theMaterialCutsCoupleChange;87 theSensitiveDetectorChange = r ight.theSensitiveDetectorChange;88 theMomentumDirectionChange = r ight.theMomentumDirectionChange;89 thePolarizationChange = r ight.thePolarizationChange;90 thePositionChange = r ight.thePositionChange;91 theTimeChange = r ight.theTimeChange;92 theEnergyChange = r ight.theEnergyChange;93 theTrueStepLength = r ight.theTrueStepLength;94 theLocalEnergyDeposit = r ight.theLocalEnergyDeposit;95 theSteppingControlFlag = r ight.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; 96 108 } 97 109 return *this; … … 106 118 // Nothing happens for AtRestDoIt 107 119 if (verboseLevel>0) { 108 G4cout << "G4ParticleChangeForTransport::UpdateStepForAtRest() is called" << G4endl; 120 G4cout << "G4ParticleChangeForTransport::UpdateStepForAtRest() is called" 121 << G4endl; 109 122 G4cout << " Nothing happens for this method " << G4endl; 110 123 } … … 236 249 G4ParticleChange::DumpInfo(); 237 250 238 G4 cout.precision(3);251 G4int oldprc = G4cout.precision(3); 239 252 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.