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

#include <G4INCLOmegaNElasticChannel.hh>

Inheritance diagram for G4INCL::OmegaNElasticChannel:
G4INCL::IChannel

Public Member Functions

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

Private Member Functions

 INCL_DECLARE_ALLOCATION_POOL (OmegaNElasticChannel)
 

Private Attributes

Particleparticle1
 
Particleparticle2
 

Detailed Description

Definition at line 47 of file G4INCLOmegaNElasticChannel.hh.

Constructor & Destructor Documentation

◆ OmegaNElasticChannel()

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

◆ ~OmegaNElasticChannel()

G4INCL::OmegaNElasticChannel::~OmegaNElasticChannel ( )
virtual

Definition at line 53 of file G4INCLOmegaNElasticChannel.cc.

53 {
54
55 }

Member Function Documentation

◆ fillFinalState()

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

Implements G4INCL::IChannel.

Definition at line 57 of file G4INCLOmegaNElasticChannel.cc.

57 {
58 Particle * nucleon;
59 Particle * omega;
60 if(particle1->isNucleon()) {
62 omega = particle2;
63 } else {
65 omega = particle1;
66 }
67
68 G4double sh=nucleon->getEnergy()+omega->getEnergy();
69 G4double mn=nucleon->getMass();
70 G4double me=omega->getMass();
71 G4double en=(sh*sh+mn*mn-me*me)/(2*sh);
72 nucleon->setEnergy(en);
73 G4double ee=std::sqrt(en*en-mn*mn+me*me);
74 omega->setEnergy(ee);
75 G4double pn=std::sqrt(en*en-mn*mn);
76
77 ThreeVector mom_nucleon;
78
79// Isotropy
80 mom_nucleon = Random::normVector(pn);
81
82
83 nucleon->setMomentum(mom_nucleon);
84 omega->setMomentum(-mom_nucleon);
85
86 fs->addModifiedParticle(nucleon);
87 fs->addModifiedParticle(omega);
88
89 }
double G4double
Definition: G4Types.hh:83
G4bool isNucleon() const
ThreeVector normVector(G4double norm=1.)
G4bool nucleon(G4int ityp)

References G4INCL::FinalState::addModifiedParticle(), G4INCL::Particle::getEnergy(), G4INCL::Particle::getMass(), G4INCL::Particle::isNucleon(), G4INCL::Random::normVector(), G4InuclParticleNames::nucleon(), particle1, particle2, G4InuclParticleNames::pn, G4INCL::Particle::setEnergy(), and G4INCL::Particle::setMomentum().

◆ 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::OmegaNElasticChannel::INCL_DECLARE_ALLOCATION_POOL ( OmegaNElasticChannel  )
private

Field Documentation

◆ particle1

Particle* G4INCL::OmegaNElasticChannel::particle1
private

Definition at line 55 of file G4INCLOmegaNElasticChannel.hh.

Referenced by fillFinalState().

◆ particle2

Particle * G4INCL::OmegaNElasticChannel::particle2
private

Definition at line 55 of file G4INCLOmegaNElasticChannel.hh.

Referenced by fillFinalState().


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