Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4INCL::NeutralKaonDecayChannel Class Reference

#include <G4INCLNeutralKaonDecayChannel.hh>

+ Inheritance diagram for G4INCL::NeutralKaonDecayChannel:

Public Member Functions

 NeutralKaonDecayChannel (Particle *)
 
virtual ~NeutralKaonDecayChannel ()
 
void fillFinalState (FinalState *fs)
 
- Public Member Functions inherited from G4INCL::IChannel
 IChannel ()
 
virtual ~IChannel ()
 
FinalStategetFinalState ()
 

Detailed Description

Definition at line 48 of file G4INCLNeutralKaonDecayChannel.hh.

Constructor & Destructor Documentation

◆ NeutralKaonDecayChannel()

G4INCL::NeutralKaonDecayChannel::NeutralKaonDecayChannel ( Particle * p)

Definition at line 47 of file G4INCLNeutralKaonDecayChannel.cc.

48 :theParticle(p)
49 {}

◆ ~NeutralKaonDecayChannel()

G4INCL::NeutralKaonDecayChannel::~NeutralKaonDecayChannel ( )
virtual

Definition at line 51 of file G4INCLNeutralKaonDecayChannel.cc.

51{}

Member Function Documentation

◆ fillFinalState()

void G4INCL::NeutralKaonDecayChannel::fillFinalState ( FinalState * fs)
virtual

Implements G4INCL::IChannel.

Definition at line 53 of file G4INCLNeutralKaonDecayChannel.cc.

53 {
54
55// assert( theParticle->getType() == KZero || theParticle->getType() == KZeroBar);
56
57 if(Random::shoot() < 0.5) theParticle->setType(KShort);
58 else theParticle->setType(KLong);
59
60
61 fs->addModifiedParticle(theParticle);
62 }
void setType(ParticleType t)
G4double shoot()

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