Geant4-11
Public Member Functions | Private Member Functions | Private Attributes
G4INCL::PiNToOmegaChannel Class Reference

#include <G4INCLPiNToOmegaChannel.hh>

Inheritance diagram for G4INCL::PiNToOmegaChannel:
G4INCL::IChannel

Public Member Functions

void fillFinalState (FinalState *fs)
 
FinalStategetFinalState ()
 
 PiNToOmegaChannel (Particle *, Particle *)
 
virtual ~PiNToOmegaChannel ()
 

Private Member Functions

 INCL_DECLARE_ALLOCATION_POOL (PiNToOmegaChannel)
 

Private Attributes

Particleparticle1
 
Particleparticle2
 

Detailed Description

Definition at line 47 of file G4INCLPiNToOmegaChannel.hh.

Constructor & Destructor Documentation

◆ PiNToOmegaChannel()

G4INCL::PiNToOmegaChannel::PiNToOmegaChannel ( Particle p1,
Particle p2 
)

Definition at line 47 of file G4INCLPiNToOmegaChannel.cc.

◆ ~PiNToOmegaChannel()

G4INCL::PiNToOmegaChannel::~PiNToOmegaChannel ( )
virtual

Definition at line 53 of file G4INCLPiNToOmegaChannel.cc.

53 {
54
55 }

Member Function Documentation

◆ fillFinalState()

void G4INCL::PiNToOmegaChannel::fillFinalState ( FinalState fs)
virtual

Implements G4INCL::IChannel.

Definition at line 57 of file G4INCLPiNToOmegaChannel.cc.

57 {
58 Particle * nucleon;
59 Particle * pion;
60 if(particle1->isNucleon()) {
63 } else {
66 }
67
68
70// assert(iso == 1 || iso == -1);
71 if (iso == 1) {
72 nucleon->setType(Proton);
73 }
74 else if (iso == -1) {
75 nucleon->setType(Neutron);
76 }
77 pion->setType(Omega);
78// nucleon->setEnergy(std::sqrt((nucleon->getMass())*(nucleon->getMass())+(mom_nucleon.mag()*mom_nucleon.mag())));
79// pion->setEnergy(std::sqrt((pion->getMass())*(pion->getMass())+(mom_nucleon.mag()*mom_nucleon.mag())));
80 G4double sh=nucleon->getEnergy()+pion->getEnergy();
81 G4double mn=nucleon->getMass();
82 G4double me=pion->getMass();
83 G4double en=(sh*sh+mn*mn-me*me)/(2*sh);
84 nucleon->setEnergy(en);
85 G4double ee=std::sqrt(en*en-mn*mn+me*me);
86 pion->setEnergy(ee);
87 G4double pn=std::sqrt(en*en-mn*mn);
88
89 ThreeVector mom_nucleon = Random::normVector(pn);
90
91 nucleon->setMomentum(mom_nucleon);
92 pion->setMomentum(-mom_nucleon);
93
94 fs->addModifiedParticle(nucleon);
95 fs->addModifiedParticle(pion);
96 }
double G4double
Definition: G4Types.hh:83
int G4int
Definition: G4Types.hh:85
G4bool isNucleon() const
G4int getIsospin(const ParticleType t)
Get the isospin of a particle.
ThreeVector normVector(G4double norm=1.)
G4bool pion(G4int ityp)
G4bool nucleon(G4int ityp)

References G4INCL::FinalState::addModifiedParticle(), G4INCL::ParticleTable::getIsospin(), G4INCL::Particle::isNucleon(), G4INCL::Neutron, G4INCL::Random::normVector(), G4InuclParticleNames::nucleon(), G4INCL::Omega, particle1, particle2, G4InuclParticleNames::pion(), G4InuclParticleNames::pn, and G4INCL::Proton.

◆ getFinalState()

FinalState * G4INCL::IChannel::getFinalState ( )
inherited

Definition at line 50 of file G4INCLIChannel.cc.

50 {
51 FinalState *fs = new FinalState;
53 return fs;
54 }
virtual void fillFinalState(FinalState *fs)=0

References G4INCL::IChannel::fillFinalState().

◆ INCL_DECLARE_ALLOCATION_POOL()

G4INCL::PiNToOmegaChannel::INCL_DECLARE_ALLOCATION_POOL ( PiNToOmegaChannel  )
private

Field Documentation

◆ particle1

Particle* G4INCL::PiNToOmegaChannel::particle1
private

Definition at line 55 of file G4INCLPiNToOmegaChannel.hh.

Referenced by fillFinalState().

◆ particle2

Particle * G4INCL::PiNToOmegaChannel::particle2
private

Definition at line 55 of file G4INCLPiNToOmegaChannel.hh.

Referenced by fillFinalState().


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