Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ExUCNExtraPhysics Class Reference

#include <ExUCNExtraPhysics.hh>

Inheritance diagram for ExUCNExtraPhysics:
Collaboration diagram for ExUCNExtraPhysics:

Public Member Functions

 ExUCNExtraPhysics ()
 
virtual ~ExUCNExtraPhysics ()
 
virtual void ConstructParticle ()
 
virtual void ConstructProcess ()
 
- 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 40 of file ExUCNExtraPhysics.hh.

Constructor & Destructor Documentation

ExUCNExtraPhysics::ExUCNExtraPhysics ( )

Definition at line 54 of file ExUCNExtraPhysics.cc.

55  : G4VPhysicsConstructor("Extra") {;}
G4VPhysicsConstructor(const G4String &="")
ExUCNExtraPhysics::~ExUCNExtraPhysics ( )
virtual

Definition at line 59 of file ExUCNExtraPhysics.cc.

59 {;}

Member Function Documentation

void ExUCNExtraPhysics::ConstructParticle ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 63 of file ExUCNExtraPhysics.cc.

63 {;}
void ExUCNExtraPhysics::ConstructProcess ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 67 of file ExUCNExtraPhysics.cc.

68 {
70  particleIterator->reset();
71 
72  while ((*particleIterator)()) {
73  G4ParticleDefinition* particle = particleIterator->value();
74  G4ProcessManager* pmanager = particle->GetProcessManager();
75  G4String particleName = particle->GetParticleName();
76 
77  if (!pmanager) {
78  std::ostringstream o;
79  o << "Particle " << particleName << "without a Process Manager";
80  G4Exception("ExUCNExtraPhysics::ConstructProcess()","",
81  FatalException,o.str().c_str());
82  }
83 
84  pmanager->AddDiscreteProcess(new G4StepLimiter());
85  pmanager->AddDiscreteProcess(new G4UserSpecialCuts());
86  }
87 
88  ConstructUCN();
89 
90 // G4Transportation::EnableUseMagneticMoment();
91 
92 }
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
const G4String & GetParticleName() const
G4ParticleTable::G4PTblDicIterator * GetParticleIterator() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41
G4ProcessManager * GetProcessManager() const
std::vector< G4InuclElementaryParticle >::iterator particleIterator
Definition: G4BigBanger.cc:65

Here is the call graph for this function:


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