G4ProcessPlacer Class Reference

#include <G4ProcessPlacer.hh>

Inheritance diagram for G4ProcessPlacer:

G4VProcessPlacer

Public Types

 eSecond = 1
 eLast = 0
enum  SecondOrLast { eSecond = 1, eLast = 0 }

Public Member Functions

 G4ProcessPlacer (const G4String &particlename)
virtual ~G4ProcessPlacer ()
virtual void AddProcessAsLastDoIt (G4VProcess *process)
virtual void AddProcessAsSecondDoIt (G4VProcess *process)
virtual void RemoveProcess (G4VProcess *process)

Detailed Description

Definition at line 49 of file G4ProcessPlacer.hh.


Member Enumeration Documentation

enum G4ProcessPlacer::SecondOrLast

Enumerator:
eSecond 
eLast 

Definition at line 72 of file G4ProcessPlacer.hh.

00073   {
00074     eSecond = 1,            
00075     eLast = 0
00076   };


Constructor & Destructor Documentation

G4ProcessPlacer::G4ProcessPlacer ( const G4String particlename  )  [explicit]

Definition at line 41 of file G4ProcessPlacer.cc.

00042   : fParticleName(particlename)
00043 {
00044 }

G4ProcessPlacer::~G4ProcessPlacer (  )  [virtual]

Definition at line 46 of file G4ProcessPlacer.cc.

00047 {
00048 }


Member Function Documentation

void G4ProcessPlacer::AddProcessAsLastDoIt ( G4VProcess process  )  [virtual]

Implements G4VProcessPlacer.

Definition at line 150 of file G4ProcessPlacer.cc.

References eLast, and G4cout.

Referenced by G4WeightCutOffConfigurator::Configure().

00151 {
00152   G4cout << "=== G4ProcessPlacer::AddProcessAsLastDoIt: for: " 
00153          << fParticleName << G4endl;
00154   AddProcessAs(process, eLast);
00155 }

void G4ProcessPlacer::AddProcessAsSecondDoIt ( G4VProcess process  )  [virtual]

Implements G4VProcessPlacer.

Definition at line 143 of file G4ProcessPlacer.cc.

References eSecond, and G4cout.

Referenced by G4WeightWindowConfigurator::Configure(), and G4ImportanceConfigurator::Configure().

00144 {
00145   G4cout << "=== G4ProcessPlacer::AddProcessAsSecondDoIt: for: " 
00146          << fParticleName << G4endl;
00147   AddProcessAs(process, eSecond);
00148 }

void G4ProcessPlacer::RemoveProcess ( G4VProcess process  )  [virtual]

Implements G4VProcessPlacer.

Definition at line 50 of file G4ProcessPlacer.cc.

References G4cout, G4endl, G4VProcess::GetProcessName(), and G4ProcessManager::RemoveProcess().

Referenced by G4ImportanceConfigurator::~G4ImportanceConfigurator(), G4WeightCutOffConfigurator::~G4WeightCutOffConfigurator(), and G4WeightWindowConfigurator::~G4WeightWindowConfigurator().

00051 {
00052   G4cout << "=== G4ProcessPlacer::RemoveProcess: for: " <<  fParticleName 
00053          << G4endl;
00054   G4cout << "  ProcessName: " << process->GetProcessName() 
00055          << ", will be removed!" << G4endl;
00056 
00057   G4cout << "  The initial AlongStep Vectors: " << G4endl;
00058   PrintAlongStepGPILVec();
00059   PrintAlongStepDoItVec();
00060 
00061   G4cout << "  The initial PostStep Vectors: " << G4endl;
00062   PrintPostStepGPILVec();
00063   PrintPostStepDoItVec();
00064 
00065   GetProcessManager()->RemoveProcess(process);
00066 
00067   G4cout << "  The final AlongStep Vectors: " << G4endl;
00068   PrintAlongStepGPILVec();
00069   PrintAlongStepDoItVec();
00070 
00071   G4cout << "  The final PostStep Vectors: " << G4endl;
00072   PrintPostStepGPILVec();
00073   PrintPostStepDoItVec();
00074 
00075   G4cout << "================================================" << G4endl;
00076   
00077 }


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:52:59 2013 for Geant4 by  doxygen 1.4.7