CGEM BOSS 6.6.5.h
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 ()
 

Protected Attributes

G4Decay fDecayProcess
 

Detailed Description

Definition at line 12 of file BesGeneralPhysics.hh.

Constructor & Destructor Documentation

◆ BesGeneralPhysics()

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

Definition at line 7 of file BesGeneralPhysics.cc.

8 : G4VPhysicsConstructor(name)
9{
10}

◆ ~BesGeneralPhysics()

BesGeneralPhysics::~BesGeneralPhysics ( )
virtual

Definition at line 12 of file BesGeneralPhysics.cc.

13{
14}

Member Function Documentation

◆ ConstructParticle()

void BesGeneralPhysics::ConstructParticle ( )
virtual

Definition at line 22 of file BesGeneralPhysics.cc.

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

◆ ConstructProcess()

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}

Member Data Documentation

◆ fDecayProcess

G4Decay BesGeneralPhysics::fDecayProcess
protected

Definition at line 29 of file BesGeneralPhysics.hh.

Referenced by ConstructProcess().


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