Changeset 1340 for trunk/source/tracking/src/G4SteppingManager.cc
- Timestamp:
- Nov 5, 2010, 3:45:55 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/tracking/src/G4SteppingManager.cc
r1337 r1340 25 25 // 26 26 // 27 // $Id: G4SteppingManager.cc,v 1.5 0 2009/02/27 08:09:50 tsasakiExp $28 // GEANT4 tag $Name: geant4-09-04-beta-01$27 // $Id: G4SteppingManager.cc,v 1.51 2010/07/19 13:41:21 gcosmo Exp $ 28 // GEANT4 tag $Name: tracking-V09-03-08 $ 29 29 // 30 30 //--------------------------------------------------------------- … … 57 57 G4SteppingManager::G4SteppingManager() 58 58 ////////////////////////////////////// 59 : fUserSteppingAction( NULL), verboseLevel(0)59 : fUserSteppingAction(0), verboseLevel(0) 60 60 { 61 61 … … 241 241 242 242 // User intervention process. 243 if( fUserSteppingAction != NULL) {243 if( fUserSteppingAction != 0 ) { 244 244 fUserSteppingAction->UserSteppingAction(fStep); 245 245 } … … 262 262 PreStepPointIsGeom = false; 263 263 FirstStep = true; 264 fParticleChange = NULL;264 fParticleChange = 0; 265 265 fPreviousStepSize = 0.; 266 266 fStepStatus = fUndefined; … … 335 335 if(fTrack->GetParentID()==0) 336 336 { 337 G4cerr << "Primary particle starting at " 338 << fTrack->GetPosition() 339 << " is outside of the world volume." << G4endl; 340 G4Exception("G4SteppingManager::Primary vertex outside of the world"); 337 G4cerr << "ERROR - G4SteppingManager::SetInitialStep()" << G4endl 338 << " Primary particle starting at - " 339 << fTrack->GetPosition() 340 << " - is outside of the world volume." << G4endl; 341 G4Exception("G4SteppingManager::SetInitialStep()", "Tracking0010", 342 FatalException, "Primary vertex outside of the world!"); 341 343 } 342 344 343 345 fTrack->SetTrackStatus( fStopAndKill ); 344 G4c err << "G4SteppingManager::SetInitialStep(): warning: "345 << " initial track position is outside world!"346 G4cout << "WARNING - G4SteppingManager::SetInitialStep()" << G4endl 347 << " Initial track position is outside world! - " 346 348 << fTrack->GetPosition() << G4endl; 347 349 } … … 352 354 #ifdef G4VERBOSE 353 355 // !!!!! Verbose 354 356 if(verboseLevel>0) fVerbose->TrackingStarted(); 355 357 #endif 356 358 }
Note: See TracChangeset
for help on using the changeset viewer.