CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
ExN04GeneralPhysics Class Reference

#include <ExN04GeneralPhysics.hh>

+ Inheritance diagram for ExN04GeneralPhysics:

Public Member Functions

 ExN04GeneralPhysics (const G4String &name="general")
 
virtual ~ExN04GeneralPhysics ()
 
virtual void ConstructParticle ()
 
virtual void ConstructProcess ()
 

Protected Attributes

G4Decay fDecayProcess
 

Detailed Description

Definition at line 48 of file ExN04GeneralPhysics.hh.

Constructor & Destructor Documentation

◆ ExN04GeneralPhysics()

ExN04GeneralPhysics::ExN04GeneralPhysics ( const G4String &  name = "general")

Definition at line 34 of file ExN04GeneralPhysics.cxx.

35 : G4VPhysicsConstructor(name)
36{
37}

◆ ~ExN04GeneralPhysics()

ExN04GeneralPhysics::~ExN04GeneralPhysics ( )
virtual

Definition at line 39 of file ExN04GeneralPhysics.cxx.

40{
41}

Member Function Documentation

◆ ConstructParticle()

void ExN04GeneralPhysics::ConstructParticle ( )
virtual

Definition at line 49 of file ExN04GeneralPhysics.cxx.

50{
51 // pseudo-particles
52 G4Geantino::GeantinoDefinition();
53 G4ChargedGeantino::ChargedGeantinoDefinition();
54}

◆ ConstructProcess()

void ExN04GeneralPhysics::ConstructProcess ( )
virtual

Definition at line 56 of file ExN04GeneralPhysics.cxx.

57{
58 // Add Decay Process
59 theParticleIterator->reset();
60 while( (*theParticleIterator)() ){
61 G4ParticleDefinition* particle = theParticleIterator->value();
62 G4ProcessManager* pmanager = particle->GetProcessManager();
63 if (fDecayProcess.IsApplicable(*particle)) {
64 pmanager ->AddProcess(&fDecayProcess);
65 // set ordering for PostStepDoIt and AtRestDoIt
66 pmanager ->SetProcessOrdering(&fDecayProcess, idxPostStep);
67 pmanager ->SetProcessOrdering(&fDecayProcess, idxAtRest);
68 }
69 }
70}

Member Data Documentation

◆ fDecayProcess

G4Decay ExN04GeneralPhysics::fDecayProcess
protected

Definition at line 65 of file ExN04GeneralPhysics.hh.

Referenced by ConstructProcess().


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