Changeset 1340 for trunk/source/tracking
- Timestamp:
- Nov 5, 2010, 3:45:55 PM (14 years ago)
- Location:
- trunk/source/tracking
- Files:
-
- 26 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/tracking/CVS/Entries
r1337 r1340 1 1 D/include//// 2 2 D/src//// 3 /GNUmakefile/1.5/Thu Sep 30 06:16:11 2010//Tgeant4-09-04-beta-01 4 /History/1.142/Thu Sep 30 06:16:11 2010//Tgeant4-09-04-beta-01 3 /CMakeLists.txt/1.1/Wed Sep 29 19:11:07 2010//Ttracking-V09-03-08 4 /GNUmakefile/1.7/Fri Nov 5 10:48:43 2010//Ttracking-V09-03-08 5 /sources.cmake/1.1/Wed Sep 29 19:11:16 2010//Ttracking-V09-03-08 6 /History/1.146/Fri Nov 5 10:48:47 2010//Ttracking-V09-03-08 -
trunk/source/tracking/CVS/Tag
r1331 r1340 1 N geant4-09-04-beta-011 Ntracking-V09-03-08 -
trunk/source/tracking/GNUmakefile
r827 r1340 1 # $Id: GNUmakefile,v 1. 5 2004/06/11 14:30:16gcosmo Exp $1 # $Id: GNUmakefile,v 1.7 2010/10/27 07:57:21 gcosmo Exp $ 2 2 # ---------------------------------------------------------- 3 3 # GNUmakefile for tracking library. Katsuya Amako, 5/9/95. -
trunk/source/tracking/History
r1337 r1340 1 $Id: History,v 1.14 2 2010/06/16 20:03:00 allisonExp $2 $Name: geant4-09-04-beta-01$1 $Id: History,v 1.146 2010/10/27 07:57:21 gcosmo Exp $ 2 $Name: tracking-V09-03-08 $ 3 3 ------------------------------------------------------------------- 4 4 … … 18 18 * Reverse chronological order (last date on top), please * 19 19 ---------------------------------------------------------- 20 21 27 October 2010 Gabriele Cosmo (tracking-V09-03-08) 22 - Restored DLL setup as originally. Withdrawn changes in last tag. 23 24 19 October 2010 Gabriele Cosmo (tracking-V09-03-07) 25 - Replaced G4TRACKING_ALLOC_EXPORT flag with G4ALLOC_EXPORT for DLL exported 26 symbols. 27 28 6 October 2010 Hisaya Kurashige (tracking-V09-03-06) 29 - Modified G4SteppingManager::GetSecondary() to give const G4TrackVector* 30 (co-work with track-V09-03-05) 31 32 19 July 2010 Gabriele Cosmo (tracking-V09-03-05) 33 - Added dummy initialisation to members in constructors in classes: 34 G4AdjointSteppingAction, G4UserSteppingAction, G4UserTrackingAction 35 and G4VSteppingVerbose. 36 - G4SteppingManager: and use canonical form for G4Exception. 37 Added protection for possible negative index in method ApplyProductionCut() 38 and some printout formatting. 39 - Added redundant return statement after exception in G4SteppingManager2. 40 - Fixed restoring of output settings in G4SteppingVerbose. 41 - Use 0 instead of NULL where applicable. 20 42 21 43 16 June 2010 John Allison (tracking-V09-03-04) -
trunk/source/tracking/include/CVS/Entries
r1337 r1340 1 /G4AdjointCrossSurfChecker.hh/1.2/Thu Sep 30 06:16:11 2010//T geant4-09-04-beta-012 /G4AdjointSteppingAction.hh/1.3/Thu Sep 30 06:16:11 2010//T geant4-09-04-beta-013 /G4 RichTrajectory.hh/1.6/Thu Sep 30 06:16:11 2010//Tgeant4-09-04-beta-014 /G4 RichTrajectoryPoint.hh/1.7/Thu Sep 30 06:16:11 2010//Tgeant4-09-04-beta-015 /G4 SmoothTrajectory.hh/1.14/Thu Sep 30 06:16:11 2010//Tgeant4-09-04-beta-016 /G4 SmoothTrajectoryPoint.hh/1.13/Thu Sep 30 06:16:11 2010//Tgeant4-09-04-beta-017 /G4 SteppingManager.hh/1.31/Thu Sep 30 06:16:11 2010//Tgeant4-09-04-beta-018 /G4 SteppingVerbose.hh/1.12/Thu Sep 30 06:16:11 2010//Tgeant4-09-04-beta-019 /G4 TrackingManager.hh/1.21/Thu Sep 30 06:16:11 2010//Tgeant4-09-04-beta-0110 /G4 TrackingMessenger.hh/1.10/Thu Sep 30 06:16:11 2010//Tgeant4-09-04-beta-0111 /G4 Trajectory.hh/1.27/Thu Sep 30 06:16:12 2010//Tgeant4-09-04-beta-0112 /G4 TrajectoryPoint.hh/1.17/Thu Sep 30 06:16:12 2010//Tgeant4-09-04-beta-0113 /G4 UserSteppingAction.hh/1.12/Thu Sep 30 06:16:12 2010//Tgeant4-09-04-beta-0114 /G4 UserTrackingAction.hh/1.11/Thu Sep 30 06:16:12 2010//Tgeant4-09-04-beta-0115 /G4 VSteppingVerbose.hh/1.24/Thu Sep 30 06:16:12 2010//Tgeant4-09-04-beta-0116 /G4 VTrajectory.hh/1.19/Thu Sep 30 06:16:12 2010//Tgeant4-09-04-beta-0117 /G4 VTrajectoryPoint.hh/1.15/Thu Sep 30 06:16:12 2010//Tgeant4-09-04-beta-011 /G4AdjointCrossSurfChecker.hh/1.2/Thu Sep 30 06:16:11 2010//Ttracking-V09-03-08 2 /G4AdjointSteppingAction.hh/1.3/Thu Sep 30 06:16:11 2010//Ttracking-V09-03-08 3 /G4SteppingVerbose.hh/1.12/Thu Sep 30 06:16:11 2010//Ttracking-V09-03-08 4 /G4TrackingMessenger.hh/1.10/Thu Sep 30 06:16:11 2010//Ttracking-V09-03-08 5 /G4UserSteppingAction.hh/1.12/Thu Sep 30 06:16:12 2010//Ttracking-V09-03-08 6 /G4UserTrackingAction.hh/1.11/Thu Sep 30 06:16:12 2010//Ttracking-V09-03-08 7 /G4VSteppingVerbose.hh/1.24/Thu Sep 30 06:16:12 2010//Ttracking-V09-03-08 8 /G4VTrajectory.hh/1.19/Thu Sep 30 06:16:12 2010//Ttracking-V09-03-08 9 /G4VTrajectoryPoint.hh/1.15/Thu Sep 30 06:16:12 2010//Ttracking-V09-03-08 10 /G4RichTrajectory.hh/1.8/Fri Nov 5 10:48:47 2010//Ttracking-V09-03-08 11 /G4RichTrajectoryPoint.hh/1.9/Fri Nov 5 10:48:47 2010//Ttracking-V09-03-08 12 /G4SmoothTrajectory.hh/1.16/Fri Nov 5 10:48:47 2010//Ttracking-V09-03-08 13 /G4SmoothTrajectoryPoint.hh/1.15/Fri Nov 5 10:48:47 2010//Ttracking-V09-03-08 14 /G4SteppingManager.hh/1.32/Fri Nov 5 10:48:47 2010//Ttracking-V09-03-08 15 /G4TrackingManager.hh/1.23/Fri Nov 5 10:48:47 2010//Ttracking-V09-03-08 16 /G4Trajectory.hh/1.29/Fri Nov 5 10:48:47 2010//Ttracking-V09-03-08 17 /G4TrajectoryPoint.hh/1.19/Fri Nov 5 10:48:47 2010//Ttracking-V09-03-08 18 18 D -
trunk/source/tracking/include/CVS/Tag
r1331 r1340 1 N geant4-09-04-beta-011 Ntracking-V09-03-08 -
trunk/source/tracking/include/G4RichTrajectory.hh
r1337 r1340 25 25 // 26 26 // 27 // $Id: G4RichTrajectory.hh,v 1. 6 2009/11/24 10:04:14 perlExp $28 // GEANT4 tag $Name: geant4-09-04-beta-01$27 // $Id: G4RichTrajectory.hh,v 1.8 2010/10/27 07:57:21 gcosmo Exp $ 28 // GEANT4 tag $Name: tracking-V09-03-08 $ 29 29 // 30 30 //--------------------------------------------------------------- -
trunk/source/tracking/include/G4RichTrajectoryPoint.hh
r1337 r1340 25 25 // 26 26 // 27 // $Id: G4RichTrajectoryPoint.hh,v 1. 7 2009/11/24 10:04:14 perlExp $28 // GEANT4 tag $Name: geant4-09-04-beta-01$27 // $Id: G4RichTrajectoryPoint.hh,v 1.9 2010/10/27 07:57:21 gcosmo Exp $ 28 // GEANT4 tag $Name: tracking-V09-03-08 $ 29 29 // 30 30 //--------------------------------------------------------------- -
trunk/source/tracking/include/G4SmoothTrajectory.hh
r1337 r1340 25 25 // 26 26 // 27 // $Id: G4SmoothTrajectory.hh,v 1.1 4 2010/06/16 20:03:00 allisonExp $28 // GEANT4 tag $Name: geant4-09-04-beta-01$27 // $Id: G4SmoothTrajectory.hh,v 1.16 2010/10/27 07:57:21 gcosmo Exp $ 28 // GEANT4 tag $Name: tracking-V09-03-08 $ 29 29 // 30 30 //--------------------------------------------------------------- -
trunk/source/tracking/include/G4SmoothTrajectoryPoint.hh
r1337 r1340 25 25 // 26 26 // 27 // $Id: G4SmoothTrajectoryPoint.hh,v 1.1 3 2006/06/29 21:15:29 gunterExp $28 // GEANT4 tag $Name: geant4-09-04-beta-01$27 // $Id: G4SmoothTrajectoryPoint.hh,v 1.15 2010/10/27 07:57:21 gcosmo Exp $ 28 // GEANT4 tag $Name: tracking-V09-03-08 $ 29 29 // 30 30 //--------------------------------------------------------------- -
trunk/source/tracking/include/G4SteppingManager.hh
r1337 r1340 25 25 // 26 26 // 27 // $Id: G4SteppingManager.hh,v 1.3 1 2007/10/09 03:51:06 tsasakiExp $28 // GEANT4 tag $Name: geant4-09-04-beta-01$27 // $Id: G4SteppingManager.hh,v 1.32 2010/10/06 13:17:15 kurasige Exp $ 28 // GEANT4 tag $Name: tracking-V09-03-08 $ 29 29 // 30 30 //--------------------------------------------------------------- … … 113 113 // Get/Set functions 114 114 115 G4TrackVector* GetSecondary() const;115 const G4TrackVector* GetSecondary() const; 116 116 void SetUserAction(G4UserSteppingAction* apAction); 117 117 G4Track* GetTrack() const; … … 459 459 } 460 460 461 inline G4TrackVector* G4SteppingManager::GetSecondary() const {461 inline const G4TrackVector* G4SteppingManager::GetSecondary() const { 462 462 return fStep->GetSecondary(); 463 463 } -
trunk/source/tracking/include/G4TrackingManager.hh
r1337 r1340 25 25 // 26 26 // 27 // $Id: G4TrackingManager.hh,v 1.2 1 2006/11/14 10:58:47 tsasakiExp $28 // GEANT4 tag $Name: geant4-09-04-beta-01$27 // $Id: G4TrackingManager.hh,v 1.23 2010/10/06 13:17:15 kurasige Exp $ 28 // GEANT4 tag $Name: tracking-V09-03-08 $ 29 29 // 30 30 //--------------------------------------------------------------- … … 181 181 182 182 inline G4TrackVector* G4TrackingManager::GimmeSecondaries() const { 183 return fpSteppingManager->Get Secondary();183 return fpSteppingManager->GetfSecondary(); 184 184 } 185 185 186 186 inline void G4TrackingManager::SetUserAction(G4UserTrackingAction* apAction){ 187 187 fpUserTrackingAction = apAction; 188 if(apAction != NULL){188 if(apAction != 0){ 189 189 apAction->SetTrackingManagerPointer(this); 190 190 } … … 193 193 inline void G4TrackingManager::SetUserAction(G4UserSteppingAction* apAction){ 194 194 fpSteppingManager->SetUserAction(apAction); 195 if(apAction != NULL){195 if(apAction != 0){ 196 196 apAction->SetSteppingManagerPointer(fpSteppingManager); 197 197 } -
trunk/source/tracking/include/G4Trajectory.hh
r1337 r1340 25 25 // 26 26 // 27 // $Id: G4Trajectory.hh,v 1.2 7 2010/06/16 20:03:00 allisonExp $28 // GEANT4 tag $Name: geant4-09-04-beta-01$27 // $Id: G4Trajectory.hh,v 1.29 2010/10/27 07:57:21 gcosmo Exp $ 28 // GEANT4 tag $Name: tracking-V09-03-08 $ 29 29 // 30 30 //--------------------------------------------------------------- -
trunk/source/tracking/include/G4TrajectoryPoint.hh
r1337 r1340 25 25 // 26 26 // 27 // $Id: G4TrajectoryPoint.hh,v 1.1 7 2006/06/29 21:15:43 gunterExp $28 // GEANT4 tag $Name: geant4-09-04-beta-01$27 // $Id: G4TrajectoryPoint.hh,v 1.19 2010/10/27 07:57:21 gcosmo Exp $ 28 // GEANT4 tag $Name: tracking-V09-03-08 $ 29 29 // 30 30 //--------------------------------------------------------------- -
trunk/source/tracking/src/CVS/Entries
r1337 r1340 1 /G4AdjointCrossSurfChecker.cc/1.2/Thu Sep 30 06:16:12 2010//T geant4-09-04-beta-012 /G4 AdjointSteppingAction.cc/1.3/Thu Sep 30 06:16:12 2010//Tgeant4-09-04-beta-013 /G4RichTrajectory .cc/1.9/Thu Sep 30 06:16:12 2010//Tgeant4-09-04-beta-014 /G4 RichTrajectoryPoint.cc/1.6/Thu Sep 30 06:16:12 2010//Tgeant4-09-04-beta-015 /G4 SmoothTrajectory.cc/1.21/Thu Sep 30 06:16:12 2010//Tgeant4-09-04-beta-016 /G4 SmoothTrajectoryPoint.cc/1.15/Thu Sep 30 06:16:12 2010//Tgeant4-09-04-beta-017 /G4 SteppingManager.cc/1.50/Thu Sep 30 06:16:12 2010//Tgeant4-09-04-beta-018 /G4 SteppingManager2.cc/1.37/Thu Sep 30 06:16:13 2010//Tgeant4-09-04-beta-019 /G4 SteppingVerbose.cc/1.23/Thu Sep 30 06:16:13 2010//Tgeant4-09-04-beta-0110 /G4 TrackingManager.cc/1.22/Thu Sep 30 06:16:13 2010//Tgeant4-09-04-beta-0111 /G4 TrackingMessenger.cc/1.15/Thu Sep 30 06:16:13 2010//Tgeant4-09-04-beta-0112 /G4 Trajectory.cc/1.35/Thu Sep 30 06:16:13 2010//Tgeant4-09-04-beta-0113 /G4 TrajectoryPoint.cc/1.19/Thu Sep 30 06:16:13 2010//Tgeant4-09-04-beta-0114 /G4 UserSteppingAction.cc/1.10/Thu Sep 30 06:16:13 2010//Tgeant4-09-04-beta-0115 /G4User TrackingAction.cc/1.10/Thu Sep 30 06:16:13 2010//Tgeant4-09-04-beta-0116 /G4 VSteppingVerbose.cc/1.18/Thu Sep 30 06:16:13 2010//Tgeant4-09-04-beta-0117 /G4V Trajectory.cc/1.16/Thu Sep 30 06:16:14 2010//Tgeant4-09-04-beta-0118 /G4VTrajectory Point.cc/1.4/Thu Sep 30 06:16:14 2010//Tgeant4-09-04-beta-011 /G4AdjointCrossSurfChecker.cc/1.2/Thu Sep 30 06:16:12 2010//Ttracking-V09-03-08 2 /G4RichTrajectory.cc/1.9/Thu Sep 30 06:16:12 2010//Ttracking-V09-03-08 3 /G4RichTrajectoryPoint.cc/1.6/Thu Sep 30 06:16:12 2010//Ttracking-V09-03-08 4 /G4SmoothTrajectoryPoint.cc/1.15/Thu Sep 30 06:16:12 2010//Ttracking-V09-03-08 5 /G4TrackingMessenger.cc/1.15/Thu Sep 30 06:16:13 2010//Ttracking-V09-03-08 6 /G4Trajectory.cc/1.35/Thu Sep 30 06:16:13 2010//Ttracking-V09-03-08 7 /G4TrajectoryPoint.cc/1.19/Thu Sep 30 06:16:13 2010//Ttracking-V09-03-08 8 /G4VTrajectoryPoint.cc/1.4/Thu Sep 30 06:16:14 2010//Ttracking-V09-03-08 9 /G4AdjointSteppingAction.cc/1.4/Fri Nov 5 10:48:47 2010//Ttracking-V09-03-08 10 /G4SmoothTrajectory.cc/1.22/Fri Nov 5 10:48:47 2010//Ttracking-V09-03-08 11 /G4SteppingManager.cc/1.51/Fri Nov 5 10:48:47 2010//Ttracking-V09-03-08 12 /G4SteppingManager2.cc/1.38/Fri Nov 5 10:48:47 2010//Ttracking-V09-03-08 13 /G4SteppingVerbose.cc/1.24/Fri Nov 5 10:48:47 2010//Ttracking-V09-03-08 14 /G4TrackingManager.cc/1.23/Fri Nov 5 10:48:47 2010//Ttracking-V09-03-08 15 /G4UserSteppingAction.cc/1.11/Fri Nov 5 10:48:47 2010//Ttracking-V09-03-08 16 /G4UserTrackingAction.cc/1.11/Fri Nov 5 10:48:47 2010//Ttracking-V09-03-08 17 /G4VSteppingVerbose.cc/1.19/Fri Nov 5 10:48:47 2010//Ttracking-V09-03-08 18 /G4VTrajectory.cc/1.17/Fri Nov 5 10:48:47 2010//Ttracking-V09-03-08 19 19 D -
trunk/source/tracking/src/CVS/Tag
r1331 r1340 1 N geant4-09-04-beta-011 Ntracking-V09-03-08 -
trunk/source/tracking/src/G4AdjointSteppingAction.cc
r1337 r1340 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4AdjointSteppingAction.cc,v 1. 3 2009/11/20 14:24:34 ldesorghExp $27 // GEANT4 tag $Name: geant4-09-04-beta-01$26 // $Id: G4AdjointSteppingAction.cc,v 1.4 2010/07/19 13:41:21 gcosmo Exp $ 27 // GEANT4 tag $Name: tracking-V09-03-08 $ 28 28 // 29 29 ///////////////////////////////////////////////////////////////////////////// … … 43 43 // 44 44 G4AdjointSteppingAction::G4AdjointSteppingAction() 45 : ext_sourceEMax(0.), start_event(false), 46 did_adj_part_reach_ext_source(false), last_ekin(0.), last_weight(0.), 47 prim_weight(0.), last_part_def(0), theUserAdjointSteppingAction(0) 45 48 { 46 49 theG4AdjointCrossSurfChecker = G4AdjointCrossSurfChecker::GetInstance(); 47 did_adj_part_reach_ext_source =false;48 theUserAdjointSteppingAction =0;49 50 } 50 51 //////////////////////////////////////////////////////////////////////////////////////////////// -
trunk/source/tracking/src/G4SmoothTrajectory.cc
r1337 r1340 25 25 // 26 26 // 27 // $Id: G4SmoothTrajectory.cc,v 1.2 1 2010/06/16 20:03:00 allisonExp $28 // GEANT4 tag $Name: geant4-09-04-beta-01$27 // $Id: G4SmoothTrajectory.cc,v 1.22 2010/07/19 13:41:21 gcosmo Exp $ 28 // GEANT4 tag $Name: tracking-V09-03-08 $ 29 29 // 30 30 // … … 79 79 // The first point has no auxiliary points, so set the auxiliary 80 80 // points vector to NULL (jacek 31/10/2002) 81 positionRecord->push_back(new G4SmoothTrajectoryPoint(aTrack->GetPosition(), NULL));81 positionRecord->push_back(new G4SmoothTrajectoryPoint(aTrack->GetPosition(), 0)); 82 82 } 83 83 -
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 } -
trunk/source/tracking/src/G4SteppingManager2.cc
r1337 r1340 25 25 // 26 26 // 27 // $Id: G4SteppingManager2.cc,v 1.3 7 2009/09/25 00:23:41 gumExp $28 // GEANT4 tag $Name: geant4-09-04-beta-01$27 // $Id: G4SteppingManager2.cc,v 1.38 2010/07/19 13:41:21 gcosmo Exp $ 28 // GEANT4 tag $Name: tracking-V09-03-08 $ 29 29 // 30 30 //--------------------------------------------------------------- … … 50 50 #include "G4SteppingControl.hh" 51 51 #include "G4TransportationManager.hh" 52 //#include "G4UserLimits.hh"53 52 #include "G4SteppingManager.hh" 54 53 #include "G4LossTableManager.hh" … … 59 58 { 60 59 #ifdef debug 61 G4cout<<"G4SteppingManager::GetProcessNumber: is called track="<<fTrack<<G4endl; 60 G4cout<<"G4SteppingManager::GetProcessNumber: is called track=" 61 <<fTrack<<G4endl; 62 62 #endif 63 63 64 64 G4ProcessManager* pm= fTrack->GetDefinition()->GetProcessManager(); 65 65 if(!pm) 66 66 { 67 G4cout<<"G4SteppingManager::GetProcessNumber: ProcessManager=0 for particle=" 68 <<fTrack->GetDefinition()->GetParticleName()<<", PDG_code=" 69 <<fTrack->GetDefinition()->GetPDGEncoding()<<G4endl; 70 G4Exception("G4SteppingManager::GetProcessNumber: Process Manager is not found."); 67 G4cerr << "ERROR - G4SteppingManager::GetProcessNumber()" << G4endl 68 << " ProcessManager is NULL for particle = " 69 << fTrack->GetDefinition()->GetParticleName() << ", PDG_code = " 70 << fTrack->GetDefinition()->GetPDGEncoding() << G4endl; 71 G4Exception("G4SteppingManager::GetProcessNumber()", "Tracking0011", 72 FatalException, "Process Manager is not found."); 73 return; 71 74 } 72 75 … … 76 79 fAtRestGetPhysIntVector = pm->GetAtRestProcessVector(typeGPIL); 77 80 #ifdef debug 78 G4cout<<"G4SteppingManager::GetProcessNumber: #ofAtRest="<<MAXofAtRestLoops<<G4endl; 81 G4cout << "G4SteppingManager::GetProcessNumber: #ofAtRest=" 82 << MAXofAtRestLoops << G4endl; 79 83 #endif 80 84 … … 84 88 fAlongStepGetPhysIntVector = pm->GetAlongStepProcessVector(typeGPIL); 85 89 #ifdef debug 86 G4cout<<"G4SteppingManager::GetProcessNumber:#ofAlongStp="<<MAXofAlongStepLoops<<G4endl; 90 G4cout << "G4SteppingManager::GetProcessNumber:#ofAlongStp=" 91 << MAXofAlongStepLoops << G4endl; 87 92 #endif 88 93 … … 92 97 fPostStepGetPhysIntVector = pm->GetPostStepProcessVector(typeGPIL); 93 98 #ifdef debug 94 G4cout<<"G4SteppingManager::GetProcessNumber: #ofPostStep="<<MAXofPostStepLoops<<G4endl; 99 G4cout << "G4SteppingManager::GetProcessNumber: #ofPostStep=" 100 << MAXofPostStepLoops << G4endl; 95 101 #endif 96 102 … … 98 104 SizeOfSelectedDoItVector<MAXofAlongStepLoops || 99 105 SizeOfSelectedDoItVector<MAXofPostStepLoops ) 100 { 101 G4cout<<"G4SteppingManager::GetProcessNumber: SizeOfSelectedDoItVector=" 102 <<SizeOfSelectedDoItVector<<" is smaller then one of MAXofAtRestLoops=" 103 <<MAXofAtRestLoops<<" or MAXofAlongStepLoops="<<MAXofAlongStepLoops 104 <<" or MAXofPostStepLoops="<<MAXofPostStepLoops<<G4endl; 105 G4Exception("G4SteppingManager::GetProcessNumber: The array size is smaller than the actutal number of processes. Chnage G4SteppingManager.hh and recompile is needed."); 106 { 107 G4cerr << "ERROR - G4SteppingManager::GetProcessNumber()" << G4endl 108 << " SizeOfSelectedDoItVector= " << SizeOfSelectedDoItVector 109 << " ; is smaller then one of MAXofAtRestLoops= " 110 << MAXofAtRestLoops << G4endl 111 << " or MAXofAlongStepLoops= " << MAXofAlongStepLoops 112 << " or MAXofPostStepLoops= " << MAXofPostStepLoops << G4endl; 113 G4Exception("G4SteppingManager::GetProcessNumber()", 114 "Tracking0012", FatalException, 115 "The array size is smaller than the actual No of processes."); 106 116 } 107 117 } … … 144 154 // fStepStatus = fUserDefinedLimit; 145 155 // fStep->GetPostStepPoint() 146 // ->SetProcessDefinedStep( NULL);156 // ->SetProcessDefinedStep(0); 147 157 // // Take note that the process pointer is 'NULL' if the Step 148 158 // // is defined by the user defined limit. … … 155 165 for(size_t np=0; np < MAXofPostStepLoops; np++){ 156 166 fCurrentProcess = (*fPostStepGetPhysIntVector)(np); 157 if (fCurrentProcess== NULL) {167 if (fCurrentProcess== 0) { 158 168 (*fSelectedPostStepDoItVector)[np] = InActivated; 159 169 continue; … … 225 235 for(size_t kp=0; kp < MAXofAlongStepLoops; kp++){ 226 236 fCurrentProcess = (*fAlongStepGetPhysIntVector)[kp]; 227 if (fCurrentProcess== NULL) continue;237 if (fCurrentProcess== 0) continue; 228 238 // NULL means the process is inactivated by a user on fly. 229 239 230 240 physIntLength = fCurrentProcess-> 231 AlongStepGPIL( *fTrack, 232 fPreviousStepSize, 233 PhysicalStep, 234 safetyProposedToAndByProcess, 235 &fGPILSelection ); 241 AlongStepGPIL( *fTrack, fPreviousStepSize, 242 PhysicalStep, 243 safetyProposedToAndByProcess, 244 &fGPILSelection ); 236 245 #ifdef G4VERBOSE 237 246 // !!!!! Verbose … … 287 296 for( size_t ri=0 ; ri < MAXofAtRestLoops ; ri++ ){ 288 297 fCurrentProcess = (*fAtRestGetPhysIntVector)[ri]; 289 if (fCurrentProcess== NULL) {298 if (fCurrentProcess== 0) { 290 299 (*fSelectedAtRestDoItVector)[ri] = InActivated; 291 300 NofInactiveProc++; … … 294 303 295 304 lifeTime = 296 fCurrentProcess->AtRestGPIL( 297 *fTrack, 298 &fCondition ); 305 fCurrentProcess->AtRestGPIL( *fTrack, &fCondition ); 299 306 300 307 if(fCondition==Forced && fCurrentProcess){ … … 305 312 if(lifeTime < shortestLifeTime ){ 306 313 shortestLifeTime = lifeTime; 307 fAtRestDoItProcTriggered = G4int( int(ri));314 fAtRestDoItProcTriggered = G4int(ri); 308 315 (*fSelectedAtRestDoItVector)[fAtRestDoItProcTriggered] = NotForced; 309 316 } … … 311 318 } 312 319 313 // at least one process is necessary to dest ory the particle320 // at least one process is necessary to destroy the particle 314 321 // exit with warning 315 322 if(NofInactiveProc==MAXofAtRestLoops){ 316 // G4Exception("G4SteppingManager::InvokeAtRestDoItProcs: No AtRestDoIt process is active. " ); 317 G4cerr << "G4SteppingManager::InvokeAtRestDoItProcs: No AtRestDoIt process is active. " << G4endl; 323 G4cerr << "ERROR - G4SteppingManager::InvokeAtRestDoItProcs()" << G4endl 324 << " No AtRestDoIt process is active!" << G4endl; 325 // G4Exception("G4SteppingManager::InvokeAtRestDoItProcs", "Tracking0013", 326 // FatalException, "No AtRestDoIt process is active." ); 318 327 } 319 328 … … 401 410 for( size_t ci=0 ; ci<MAXofAlongStepLoops ; ci++ ){ 402 411 fCurrentProcess = (*fAlongStepDoItVector)[ci]; 403 if (fCurrentProcess== NULL) continue;412 if (fCurrentProcess== 0) continue; 404 413 // NULL means the process is inactivated by a user on fly. 405 414 … … 577 586 G4int tPtclIdx 578 587 = G4ProductionCuts::GetIndex(aSecondary->GetDefinition()); 588 if (tPtclIdx<0) { return; } 579 589 G4ProductionCutsTable* tCutsTbl 580 590 = G4ProductionCutsTable::GetProductionCutsTable(); -
trunk/source/tracking/src/G4SteppingVerbose.cc
r1337 r1340 25 25 // 26 26 // 27 // $Id: G4SteppingVerbose.cc,v 1.2 3 2006/07/14 14:13:57 tsasakiExp $28 // GEANT4 tag $Name: geant4-09-04-beta-01$27 // $Id: G4SteppingVerbose.cc,v 1.24 2010/07/19 13:41:21 gcosmo Exp $ 28 // GEANT4 tag $Name: tracking-V09-03-08 $ 29 29 // 30 30 //--------------------------------------------------------------- … … 149 149 ptProcManager = (*fAlongStepDoItVector)(ci); 150 150 G4cout << " " << ci+1 << ") "; 151 if(ptProcManager != NULL){151 if(ptProcManager != 0){ 152 152 G4cout << ptProcManager->GetProcessName() << G4endl; 153 153 } … … 292 292 G4cout << std::setw(11) << "OutOfWorld" << " "; 293 293 } 294 if(fStep->GetPostStepPoint()->GetProcessDefinedStep() != NULL){294 if(fStep->GetPostStepPoint()->GetProcessDefinedStep() != 0){ 295 295 G4cout << fStep->GetPostStepPoint()->GetProcessDefinedStep()->GetProcessName(); 296 296 } else { … … 710 710 G4cout << " Creator Process : " 711 711 << std::setw(20); 712 if( fTrack->GetCreatorProcess() == NULL){712 if( fTrack->GetCreatorProcess() == 0){ 713 713 G4cout << " Event Generator" << G4endl; 714 714 } else { … … 739 739 if(Silent==1){ return; } 740 740 G4String volName; 741 G4int oldprc; 741 742 742 743 // Show header 743 744 G4cout << G4endl; 744 745 G4cout << " ++G4Step Information " << G4endl; 745 G4cout.precision(16);746 oldprc = G4cout.precision(16); 746 747 747 748 // Show G4Step specific information … … 857 858 G4cout << G4endl; 858 859 G4cout << " Process defined Step: " ; 859 if( fStep->GetPreStepPoint()->GetProcessDefinedStep() == NULL){860 if( fStep->GetPreStepPoint()->GetProcessDefinedStep() == 0 ){ 860 861 G4cout << std::setw(20) << "Undefined"; 861 862 } else { 862 863 G4cout << std::setw(20) << fStep->GetPreStepPoint()->GetProcessDefinedStep()->GetProcessName(); 863 864 } 864 if( fStep->GetPostStepPoint()->GetProcessDefinedStep() == NULL){865 if( fStep->GetPostStepPoint()->GetProcessDefinedStep() == 0){ 865 866 G4cout << std::setw(20) << "Undefined"; 866 867 } else { 867 868 G4cout << std::setw(20) << fStep->GetPostStepPoint()->GetProcessDefinedStep()->GetProcessName(); 868 869 } 870 G4cout.precision(oldprc); 869 871 870 872 G4cout << G4endl; -
trunk/source/tracking/src/G4TrackingManager.cc
r1337 r1340 25 25 // 26 26 // 27 // $Id: G4TrackingManager.cc,v 1.2 2 2006/11/14 10:58:47 tsasakiExp $28 // GEANT4 tag $Name: geant4-09-04-beta-01$27 // $Id: G4TrackingManager.cc,v 1.23 2010/07/19 13:41:21 gcosmo Exp $ 28 // GEANT4 tag $Name: tracking-V09-03-08 $ 29 29 // 30 30 //--------------------------------------------------------------- … … 49 49 G4TrackingManager::G4TrackingManager() 50 50 ////////////////////////////////////// 51 : fpUserTrackingAction( NULL), fpTrajectory(NULL),51 : fpUserTrackingAction(0), fpTrajectory(0), 52 52 StoreTrajectory(0), verboseLevel(0), EventIsAborted(false) 53 53 { … … 92 92 // Pre tracking user intervention process. 93 93 fpTrajectory = 0; 94 if( fpUserTrackingAction != NULL) {94 if( fpUserTrackingAction != 0 ) { 95 95 fpUserTrackingAction->PreUserTrackingAction(fpTrack); 96 96 } … … 137 137 138 138 // Post tracking user intervention process. 139 if( fpUserTrackingAction != NULL) {139 if( fpUserTrackingAction != 0 ) { 140 140 fpUserTrackingAction->PostUserTrackingAction(fpTrack); 141 141 } … … 154 154 { 155 155 #ifndef G4_STORE_TRAJECTORY 156 G4Exception("G4TrackingManager::SetTrajectory is invoked without G4_STORE_TRAJECTORY compilor option"); 156 G4Exception("G4TrackingManager::SetTrajectory()", 157 "Tracking0015", FatalException, 158 "Invoked without G4_STORE_TRAJECTORY option set!"); 157 159 #endif 158 160 fpTrajectory = aTrajectory; -
trunk/source/tracking/src/G4UserSteppingAction.cc
r1337 r1340 25 25 // 26 26 // 27 // $Id: G4UserSteppingAction.cc,v 1.1 0 2006/06/29 21:16:17 gunterExp $28 // GEANT4 tag $Name: geant4-09-04-beta-01$27 // $Id: G4UserSteppingAction.cc,v 1.11 2010/07/19 13:41:21 gcosmo Exp $ 28 // GEANT4 tag $Name: tracking-V09-03-08 $ 29 29 // 30 30 // --------------------------------------------------------------- … … 50 50 G4UserSteppingAction::G4UserSteppingAction() 51 51 ///////////////////////////////////////////////////////// 52 : fpSteppingManager(0) 52 53 { 53 54 if(!(G4ParticleTable::GetParticleTable()->GetReadiness())) … … 56 57 msg = " You are instantiating G4UserSteppingAction BEFORE your\n"; 57 58 msg += "G4VUserPhysicsList is instantiated and assigned to G4RunManager.\n"; 58 msg += " Such an instantiation is prohibited byGeant4 version 8.0. To fix this problem,\n";59 msg += " Such an instantiation is prohibited since Geant4 version 8.0. To fix this problem,\n"; 59 60 msg += "please make sure that your main() instantiates G4VUserPhysicsList AND\n"; 60 61 msg += "set it to G4RunManager before instantiating other user action classes\n"; 61 62 msg += "such as G4UserSteppingAction."; 62 63 G4Exception("G4UserSteppingAction::G4UserSteppingAction()", 63 "Tracking0002",FatalException,msg);64 "Tracking0002", FatalException, msg); 64 65 } 65 66 } … … 77 78 fpSteppingManager = pValue; 78 79 } 79 80 81 82 -
trunk/source/tracking/src/G4UserTrackingAction.cc
r1337 r1340 25 25 // 26 26 // 27 // $Id: G4UserTrackingAction.cc,v 1.1 0 2006/06/29 21:16:19 gunterExp $28 // GEANT4 tag $Name: geant4-09-04-beta-01$27 // $Id: G4UserTrackingAction.cc,v 1.11 2010/07/19 13:41:21 gcosmo Exp $ 28 // GEANT4 tag $Name: tracking-V09-03-08 $ 29 29 // 30 30 // --------------------------------------------------------------- … … 46 46 G4UserTrackingAction::G4UserTrackingAction() 47 47 ///////////////////////////////////////////////////////// 48 : fpTrackingManager(0) 48 49 { 49 50 if(!(G4ParticleTable::GetParticleTable()->GetReadiness())) … … 52 53 msg = " You are instantiating G4UserTrackingAction BEFORE your\n"; 53 54 msg += "G4VUserPhysicsList is instantiated and assigned to G4RunManager.\n"; 54 msg += " Such an instantiation is prohibited byGeant4 version 8.0. To fix this problem,\n";55 msg += " Such an instantiation is prohibited since Geant4 version 8.0. To fix this problem,\n"; 55 56 msg += "please make sure that your main() instantiates G4VUserPhysicsList AND\n"; 56 57 msg += "set it to G4RunManager before instantiating other user action classes\n"; 57 58 msg += "such as G4UserTrackingAction."; 58 59 G4Exception("G4UserTrackingAction::G4UserTrackingAction()", 59 "Tracking0001",FatalException,msg);60 "Tracking0001", FatalException, msg); 60 61 } 61 62 } … … 73 74 fpTrackingManager = pValue; 74 75 } 75 76 77 78 79 80 81 82 83 -
trunk/source/tracking/src/G4VSteppingVerbose.cc
r1337 r1340 25 25 // 26 26 // 27 // $Id: G4VSteppingVerbose.cc,v 1.1 8 2006/11/14 10:58:47 tsasakiExp $28 // GEANT4 tag $Name: geant4-09-04-beta-01$27 // $Id: G4VSteppingVerbose.cc,v 1.19 2010/07/19 13:41:21 gcosmo Exp $ 28 // GEANT4 tag $Name: tracking-V09-03-08 $ 29 29 // 30 30 //--------------------------------------------------------------- … … 51 51 G4int G4VSteppingVerbose::Silent = 0; 52 52 G4int G4VSteppingVerbose::SilentStepInfo = 0; 53 G4VSteppingVerbose::G4VSteppingVerbose() :verboseLevel(0){ 54 if(fInstance!= NULL) G4Exception("G4SteppingVerbose is the singleton. Only one SteppingVerbose class can be instantiated."); 53 54 G4VSteppingVerbose::G4VSteppingVerbose() 55 : fManager(0), fUserSteppingAction(0), 56 PhysicalStep(0.), GeometricalStep(0.), CorrectedStep(0.), 57 PreStepPointIsGeom(false), FirstStep(false), 58 TempInitVelocity(0.), TempVelocity(0.), Mass(0.), sumEnergyChange(0.), 59 fParticleChange(0), fTrack(0), fSecondary(0), fStep(0), 60 fPreStepPoint(0), fPostStepPoint(0), fCurrentVolume(0), 61 fSensitive(0), fCurrentProcess(0), fAtRestDoItVector(0), 62 fAlongStepDoItVector(0), fPostStepDoItVector(0), fAtRestGetPhysIntVector(0), 63 fAlongStepGetPhysIntVector(0), fPostStepGetPhysIntVector(0), 64 MAXofAtRestLoops(0), MAXofAlongStepLoops(0), MAXofPostStepLoops(0), 65 currentMinimumStep(0.), numberOfInteractionLengthLeft(0.), 66 fAtRestDoItProcTriggered(0), fAlongStepDoItProcTriggered(0), 67 fPostStepDoItProcTriggered(0), fN2ndariesAtRestDoIt(0), 68 fN2ndariesAlongStepDoIt(0), fN2ndariesPostStepDoIt(0), 69 fNavigator(0), verboseLevel(0), fSelectedAtRestDoItVector(0), 70 fSelectedAlongStepDoItVector(0), fSelectedPostStepDoItVector(0), 71 fPreviousStepSize(0.), physIntLength(0.) 72 { 73 if(fInstance!= 0) 74 { 75 G4Exception("G4VSteppingVerbose::G4VSteppingVerbose()", 76 "Tracking0014", FatalException, 77 "Only one SteppingVerbose class can be instantiated."); 78 } 55 79 } 56 80 G4VSteppingVerbose::~G4VSteppingVerbose(){;} … … 62 86 fManager=fMan; 63 87 } 64 65 66 88 67 89 ////////////////////////////////////////////////// -
trunk/source/tracking/src/G4VTrajectory.cc
r1337 r1340 25 25 // 26 26 // 27 // $Id: G4VTrajectory.cc,v 1.1 6 2010/06/16 20:03:00 allisonExp $28 // GEANT4 tag $Name: geant4-09-04-beta-01$27 // $Id: G4VTrajectory.cc,v 1.17 2010/07/19 13:41:21 gcosmo Exp $ 28 // GEANT4 tag $Name: tracking-V09-03-08 $ 29 29 // 30 30 // --------------------------------------------------------------- … … 134 134 if (!warnedAboutIMode && i_mode != 0) { 135 135 G4Exception 136 ("G4VTrajectory::DrawTrajectory", 137 "", 138 JustWarning, 139 "WARNING: DEPRECATED: The use of i_mode argument in DrawTrajectory" 140 "\n is deprecated and will be removed at the next major release."); 136 ("G4VTrajectory::DrawTrajectory()", 137 "Tracking0100", JustWarning, 138 "DEPRECATED! The use of i_mode argument in DrawTrajectory()" 139 "\n is deprecated and will be removed at the next major release."); 141 140 warnedAboutIMode = true; 142 141 }
Note: See TracChangeset
for help on using the changeset viewer.