Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4NeutronTrackingCut Class Reference

#include <G4NeutronTrackingCut.hh>

Inheritance diagram for G4NeutronTrackingCut:
Collaboration diagram for G4NeutronTrackingCut:

Public Member Functions

 G4NeutronTrackingCut (G4int ver=0)
 
 G4NeutronTrackingCut (const G4String &name, G4int ver=0)
 
virtual ~G4NeutronTrackingCut ()
 
virtual void ConstructParticle ()
 
virtual void ConstructProcess ()
 
void SetTimeLimit (G4double)
 
void SetKineticEnergyLimit (G4double)
 
- Public Member Functions inherited from G4VPhysicsConstructor
 G4VPhysicsConstructor (const G4String &="")
 
 G4VPhysicsConstructor (const G4String &name, G4int physics_type)
 
virtual ~G4VPhysicsConstructor ()
 
void SetPhysicsName (const G4String &="")
 
const G4StringGetPhysicsName () const
 
void SetPhysicsType (G4int)
 
G4int GetPhysicsType () const
 
void SetVerboseLevel (G4int value)
 
G4int GetVerboseLevel () const
 
G4int GetInstanceID () const
 

Additional Inherited Members

- Static Public Member Functions inherited from G4VPhysicsConstructor
static const G4VPCManagerGetSubInstanceManager ()
 
- Protected Member Functions inherited from G4VPhysicsConstructor
G4bool RegisterProcess (G4VProcess *process, G4ParticleDefinition *particle)
 
G4ParticleTable::G4PTblDicIteratorGetParticleIterator () const
 
- Protected Attributes inherited from G4VPhysicsConstructor
G4int verboseLevel
 
G4String namePhysics
 
G4int typePhysics
 
G4ParticleTabletheParticleTable
 
G4int g4vpcInstanceID
 
- Static Protected Attributes inherited from G4VPhysicsConstructor
static G4RUN_DLL G4VPCManager subInstanceManager
 

Detailed Description

Definition at line 46 of file G4NeutronTrackingCut.hh.

Constructor & Destructor Documentation

G4NeutronTrackingCut::G4NeutronTrackingCut ( G4int  ver = 0)

Definition at line 56 of file G4NeutronTrackingCut.cc.

57  : G4VPhysicsConstructor("neutronTrackingCut")
58  , verbose(ver)
59 {
60  timeLimit = 10.*microsecond;
61  kineticEnergyLimit = 0.0;
62 }
G4VPhysicsConstructor(const G4String &="")
static constexpr double microsecond
Definition: G4SIunits.hh:160
G4NeutronTrackingCut::G4NeutronTrackingCut ( const G4String name,
G4int  ver = 0 
)

Definition at line 64 of file G4NeutronTrackingCut.cc.

65  : G4VPhysicsConstructor(name), verbose(ver)
66 {
67  timeLimit = 10.*microsecond;
68  kineticEnergyLimit = 0.0;
69 }
G4VPhysicsConstructor(const G4String &="")
static constexpr double microsecond
Definition: G4SIunits.hh:160
G4NeutronTrackingCut::~G4NeutronTrackingCut ( )
virtual

Definition at line 71 of file G4NeutronTrackingCut.cc.

72 {}

Member Function Documentation

void G4NeutronTrackingCut::ConstructParticle ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 74 of file G4NeutronTrackingCut.cc.

75 {
77 }
static G4Neutron * NeutronDefinition()
Definition: G4Neutron.cc:99

Here is the call graph for this function:

void G4NeutronTrackingCut::ConstructProcess ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 79 of file G4NeutronTrackingCut.cc.

80 {
81  G4NeutronKiller* pNeutronKiller = new G4NeutronKiller();
83  G4ProcessManager * pmanager = particle->GetProcessManager();
84 
85  if(verbose > 0 && G4Threading::IsMasterThread()) {
86  G4String pn = particle->GetParticleName();//Avoid data-race when passing
87  //this string to G4MTcout
88  G4cout << "### Adding tracking cuts for " << pn
89  << " TimeCut(ns)= " << timeLimit/ns
90  << " KinEnergyCut(MeV)= " << kineticEnergyLimit/MeV
91  << G4endl;
92  }
93  pmanager -> AddDiscreteProcess(pNeutronKiller);
94  pNeutronKiller->SetKinEnergyLimit(kineticEnergyLimit);
95  pNeutronKiller->SetTimeLimit(timeLimit);
96 
99 }
void SetKinEnergyLimit(G4double)
static G4HadronicProcessStore * Instance()
const G4String & GetParticleName() const
void RegisterParticleForExtraProcess(G4VProcess *, const G4ParticleDefinition *)
G4GLOB_DLL std::ostream G4cout
static G4Neutron * Neutron()
Definition: G4Neutron.cc:104
void SetTimeLimit(G4double)
void RegisterExtraProcess(G4VProcess *)
G4ProcessManager * GetProcessManager() const
#define G4endl
Definition: G4ios.hh:61
static constexpr double MeV
Definition: G4SIunits.hh:214
G4bool IsMasterThread()
Definition: G4Threading.cc:146
#define ns
Definition: xmlparse.cc:614

Here is the call graph for this function:

void G4NeutronTrackingCut::SetKineticEnergyLimit ( G4double  val)
inline

Definition at line 80 of file G4NeutronTrackingCut.hh.

81 {
82  kineticEnergyLimit = val;
83 }
void G4NeutronTrackingCut::SetTimeLimit ( G4double  val)
inline

Definition at line 75 of file G4NeutronTrackingCut.hh.

76 {
77  timeLimit = val;
78 }

The documentation for this class was generated from the following files: