#include "Py8TauDecayerPhysics.hh"
Definition at line 41 of file Py8TauDecayerPhysics.hh.
Py8TauDecayerPhysics::Py8TauDecayerPhysics |
( |
G4int |
verb = 1 | ) |
|
Py8TauDecayerPhysics::~Py8TauDecayerPhysics |
( |
| ) |
|
|
virtual |
void Py8TauDecayerPhysics::ConstructParticle |
( |
| ) |
|
|
protectedvirtual |
void Py8TauDecayerPhysics::ConstructProcess |
( |
| ) |
|
|
protectedvirtual |
Definition at line 72 of file Py8TauDecayerPhysics.cc.
References util::abs().
82 auto particleIterator=GetParticleIterator();
83 particleIterator->reset();
84 while ((*particleIterator)())
86 G4ParticleDefinition* particle = particleIterator->value();
87 G4ProcessManager* pmanager = particle->GetProcessManager();
95 G4ProcessVector* processVector = pmanager->GetProcessList();
96 for (
size_t i=0; i<processVector->length(); ++i )
98 G4Decay* decay =
dynamic_cast<G4Decay*
>((*processVector)[i]);
104 if (
std::abs(particle->GetPDGEncoding()) == 15 )
106 if ( particle->GetDecayTable() )
108 delete particle->GetDecayTable();
109 particle->SetDecayTable(
nullptr);
111 decay->SetExtDecayer(extDecayer);
115 if ( !particle->GetDecayTable() )
117 decay->SetExtDecayer(extDecayer);
constexpr auto abs(T v)
Returns the absolute value of the argument.
The documentation for this class was generated from the following files: