#include <G4Pythia6Decayer.hh>
Pythia6 decayer
Implements the G4VExtDecayer abstract class using the Pythia6 interface. According to TPythia6Decayer class in Root: http://root.cern.ch/ see http://root.cern.ch/root/License.html
Definition at line 53 of file G4Pythia6Decayer.hh.
G4Pythia6Decayer::G4Pythia6Decayer |
( |
| ) |
|
Standard constructor
Definition at line 55 of file G4Pythia6Decayer.cc.
59 fDecayType(fgkDefaultDecayType),
60 fDecayProductsArray(0)
66 ForceDecay(fDecayType);
std::vector< Pythia6Particle * > ParticleVector
G4VExtDecayer(const G4String &name="")
G4Pythia6Decayer::~G4Pythia6Decayer |
( |
| ) |
|
|
virtual |
Force a given decay type
Definition at line 617 of file G4Pythia6Decayer.cc.
622 if ( decayType == fDecayType )
return;
624 fDecayType = decayType;
625 ForceDecay(fDecayType);
Import decay products
Implements G4VExtDecayer.
Definition at line 538 of file G4Pythia6Decayer.cc.
546 p[0] = momentum.
x() /
GeV;
547 p[1] = momentum.
y() /
GeV;
548 p[2] = momentum.
z() /
GeV;
560 Decay(pdgEncoding, p);
561 G4int nofParticles = ImportParticles(fDecayProductsArray);
563 if ( fVerboseLevel > 0 ) {
573 for (
G4int i=0; i<nofParticles; i++) {
580 if ( status>0 && status<11 &&
581 std::abs(pdg)!=12 && std::abs(pdg)!=14 && std::abs(pdg)!=16 ) {
585 if ( fVerboseLevel > 0 ) {
586 G4cout <<
" " << i <<
"th particle PDG: " << pdg <<
" ";
591 = CreateDynamicParticle(particle);
593 if (dynamicParticle) {
595 if ( fVerboseLevel > 0 ) {
596 G4cout <<
" G4 particle name: "
608 if ( fVerboseLevel > 0 ) {
609 G4cout <<
"nofParticles for tracking: " << counter <<
G4endl;
612 return decayProducts;
G4ParticleDefinition * GetDefinition() const
G4double GetTotalEnergy() const
const G4DynamicParticle * GetDynamicParticle() const
G4int PushProducts(G4DynamicParticle *aParticle)
Structure for Pythia6 particle properties.
G4int GetPDGEncoding() const
G4ParticleDefinition * GetDefinition() const
const G4String & GetParticleName() const
G4GLOB_DLL std::ostream G4cout
G4ThreeVector GetMomentum() const
static constexpr double GeV
void G4Pythia6Decayer::SetVerboseLevel |
( |
G4int |
verboseLevel | ) |
|
|
inline |
The documentation for this class was generated from the following files:
- source/geant4.10.03.p02/examples/extended/eventgenerator/pythia/decayer6/include/G4Pythia6Decayer.hh
- source/geant4.10.03.p02/examples/extended/eventgenerator/pythia/decayer6/src/G4Pythia6Decayer.cc