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

#include <BesGeneralPhysics.hh>

+ Inheritance diagram for BesGeneralPhysics:

Public Member Functions

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

Protected Attributes

G4Decay fDecayProcess
 

Detailed Description

Constructor & Destructor Documentation

◆ BesGeneralPhysics() [1/2]

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

Definition at line 7 of file BesGeneralPhysics.cc.

8 : G4VPhysicsConstructor(name)
9{
10}

◆ ~BesGeneralPhysics() [1/2]

BesGeneralPhysics::~BesGeneralPhysics ( )
virtual

Definition at line 12 of file BesGeneralPhysics.cc.

13{
14}

◆ BesGeneralPhysics() [2/2]

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

◆ ~BesGeneralPhysics() [2/2]

virtual BesGeneralPhysics::~BesGeneralPhysics ( )
virtual

Member Function Documentation

◆ ConstructParticle() [1/2]

void BesGeneralPhysics::ConstructParticle ( )
virtual

Definition at line 22 of file BesGeneralPhysics.cc.

23{
24 // pseudo-particles
25 G4Geantino::GeantinoDefinition();
26 G4ChargedGeantino::ChargedGeantinoDefinition();
27}

◆ ConstructParticle() [2/2]

virtual void BesGeneralPhysics::ConstructParticle ( )
virtual

◆ ConstructProcess() [1/2]

void BesGeneralPhysics::ConstructProcess ( )
virtual

Definition at line 29 of file BesGeneralPhysics.cc.

30{
31 theParticleIterator->reset();
32 while( (*theParticleIterator)() ){
33 G4ParticleDefinition* particle = theParticleIterator->value();
34 G4ProcessManager* pmanager = particle->GetProcessManager();
35 if (fDecayProcess.IsApplicable(*particle)) {
36 pmanager ->AddProcess(&fDecayProcess);
37 // set ordering for PostStepDoIt and AtRestDoIt
38 pmanager ->SetProcessOrdering(&fDecayProcess, idxPostStep);
39 pmanager ->SetProcessOrdering(&fDecayProcess, idxAtRest);
40 }
41 }
42}

◆ ConstructProcess() [2/2]

virtual void BesGeneralPhysics::ConstructProcess ( )
virtual

Member Data Documentation

◆ fDecayProcess

G4Decay BesGeneralPhysics::fDecayProcess
protected

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