Import Geant4 8.0.0 source tree
This commit is contained in:
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4UserTrackingAction.cc,v 1.6 2001/07/11 10:08:43 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// $Id: G4UserTrackingAction.cc,v 1.7 2005/11/22 21:04:07 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
//
|
||||
// ---------------------------------------------------------------
|
||||
@@ -37,6 +37,31 @@
|
||||
// ---------------------------------------------------------------
|
||||
|
||||
#include "G4UserTrackingAction.hh"
|
||||
#include "G4ParticleTable.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
/////////////////////////////////////////////////////////
|
||||
G4UserTrackingAction::G4UserTrackingAction()
|
||||
/////////////////////////////////////////////////////////
|
||||
{
|
||||
if(!(G4ParticleTable::GetParticleTable()->GetReadiness()))
|
||||
{
|
||||
G4String msg;
|
||||
msg = " You are instantiating G4UserTrackingAction BEFORE your\n";
|
||||
msg += "G4VUserPhysicsList is instantiated and assigned to G4RunManager.\n";
|
||||
msg += " Such an instantiation is prohibited by Geant4 version 8.0. To fix this problem,\n";
|
||||
msg += "please make sure that your main() instantiates G4VUserPhysicsList AND\n";
|
||||
msg += "set it to G4RunManager before instantiating other user action classes\n";
|
||||
msg += "such as G4UserTrackingAction.";
|
||||
G4Exception("G4UserTrackingAction::G4UserTrackingAction()",
|
||||
"Tracking0001",FatalException,msg);
|
||||
}
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////
|
||||
G4UserTrackingAction::~G4UserTrackingAction()
|
||||
/////////////////////////////////////////////////////////
|
||||
{;}
|
||||
|
||||
/////////////////////////////////////////////////////////
|
||||
void G4UserTrackingAction::
|
||||
@@ -44,7 +69,8 @@ void G4UserTrackingAction::
|
||||
/////////////////////////////////////////////////////////
|
||||
{
|
||||
fpTrackingManager = pValue;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user