Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Attributes | List of all members
TSPhysicsList Class Reference

This is a very, very extensive physics list and step-limiters are applied to many particles. More...

#include <Doxymodules_parallel.h>

Inheritance diagram for TSPhysicsList:
G4VUserPhysicsList

Public Types

typedef std::deque< G4VPhysicsConstructor * > PhysicsSet_t
 

Public Member Functions

 TSPhysicsList ()
 This is a very, very extensive physics list and step-limiters are applied to many particles.
 
virtual ~TSPhysicsList ()
 
void ConstructParticle () override
 
void ConstructProcess () override
 

Private Attributes

PhysicsSet_t fConstructors
 

Detailed Description

This is a very, very extensive physics list and step-limiters are applied to many particles.

The reasoning behind this is because we wan't to put as much pressure on the atomics as possible and produce as much round-off error as possible. See descriptions in README and TSDetectorConstruction for more details.

Definition at line 147 of file Doxymodules_parallel.h.

Member Typedef Documentation

◆ PhysicsSet_t

Definition at line 53 of file TSPhysicsList.hh.

Constructor & Destructor Documentation

◆ TSPhysicsList()

TSPhysicsList::TSPhysicsList ( )

This is a very, very extensive physics list and step-limiters are applied to many particles.

The reasoning behind this is because we wan't to put as much pressure on the atomics as possible and produce as much round-off error as possible. See descriptions in README and TSDetectorConstruction for more details.

Definition at line 87 of file TSPhysicsList.cc.

◆ ~TSPhysicsList()

TSPhysicsList::~TSPhysicsList ( )
virtual

Definition at line 102 of file TSPhysicsList.cc.

103{
104 for(auto ite : fConstructors)
105 delete ite;
106}

Member Function Documentation

◆ ConstructParticle()

void TSPhysicsList::ConstructParticle ( )
override

Definition at line 110 of file TSPhysicsList.cc.

111{
112 for(auto c : fConstructors)
113 {
114 c->ConstructParticle();
115 }
116}

◆ ConstructProcess()

void TSPhysicsList::ConstructProcess ( )
override

Definition at line 120 of file TSPhysicsList.cc.

121{
122 // Transportation
123 //
124 AddTransportation();
125
126 for(auto c : fConstructors)
127 {
128 c->ConstructProcess();
129 }
130
131 std::set<G4String> step_limit_particles;
132 // standard particles
133 step_limit_particles.insert("e-");
134 step_limit_particles.insert("e+");
135 step_limit_particles.insert("alpha");
136 step_limit_particles.insert("He3");
137 step_limit_particles.insert("GenericIon");
138 step_limit_particles.insert("proton");
139 step_limit_particles.insert("neutron");
140 // more ~exotic particles
141 step_limit_particles.insert("pi+");
142 step_limit_particles.insert("pi-");
143 step_limit_particles.insert("mu+");
144 step_limit_particles.insert("mu-");
145
146 auto particleIterator = GetParticleIterator();
147 particleIterator->reset();
148
149 G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
150
151 while((*particleIterator)())
152 {
153 G4ParticleDefinition* particle = particleIterator->value();
154 G4String pname = particle->GetParticleName();
155
156 if(step_limit_particles.find(pname) != step_limit_particles.end() ||
157 particle->GetPDGCharge())
158 {
159 ph->RegisterProcess(new G4StepLimiter, particle);
160 }
161 }
162}

Member Data Documentation

◆ fConstructors

PhysicsSet_t TSPhysicsList::fConstructors
private

Definition at line 64 of file TSPhysicsList.hh.


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

Applications | User Support | Publications | Collaboration