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

#include <G4INCLOmegaNToPiPiNChannel.hh>

Inheritance diagram for G4INCL::OmegaNToPiPiNChannel:
G4INCL::IChannel

Public Member Functions

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

Private Member Functions

 INCL_DECLARE_ALLOCATION_POOL (OmegaNToPiPiNChannel)
 

Private Attributes

G4int ind2
 
Particleparticle1
 
Particleparticle2
 

Static Private Attributes

static const G4double angularSlope = 15.
 

Detailed Description

Definition at line 47 of file G4INCLOmegaNToPiPiNChannel.hh.

Constructor & Destructor Documentation

◆ OmegaNToPiPiNChannel()

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

◆ ~OmegaNToPiPiNChannel()

G4INCL::OmegaNToPiPiNChannel::~OmegaNToPiPiNChannel ( )
virtual

Definition at line 57 of file G4INCLOmegaNToPiPiNChannel.cc.

57 {
58
59 }

Member Function Documentation

◆ fillFinalState()

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

Implements G4INCL::IChannel.

Definition at line 61 of file G4INCLOmegaNToPiPiNChannel.cc.

61 {
62
63 Particle * nucleon;
64 Particle * omega;
65 if(particle1->isNucleon()) {
67 omega = particle2;
68 } else {
70 omega = particle1;
71 }
72
74
76
77 omega->setType(PiZero);
78
79 ParticleType pionType;
81 if (ind2 == 1) {
82 if (rs1*2. > 1.) pionType=PiZero;
83 else {
84 pionType=PiPlus;
85 ind2=-ind2;
86 }
87 }
88 else {
89 if (rs1*2. > 1.) pionType=PiZero;
90 else {
91 pionType=PiMinus;
92 ind2=-ind2;
93 }
94 }
95
96
98 nucleon->setType(tn);
99 ParticleList list;
100 list.push_back(nucleon);
101 list.push_back(omega);
102 const ThreeVector &rcolpion = omega->getPosition();
103 const ThreeVector zero;
104 Particle *newPion = new Particle(pionType,zero,rcolpion);
105 list.push_back(newPion);
106 fs->addModifiedParticle(nucleon);
107 fs->addModifiedParticle(omega);
108 fs->addCreatedParticle(newPion);
109
111
112 }
double G4double
Definition: G4Types.hh:83
G4bool isNucleon() const
G4double totalEnergyInCM(Particle const *const p1, Particle const *const p2)
G4int getIsospin(const ParticleType t)
Get the isospin of a particle.
ParticleType getNucleonType(const G4int isosp)
Get the type of nucleon.
void generateBiased(const G4double sqrtS, ParticleList &particles, const size_t index, const G4double slope)
Generate a biased event in the CM system.
G4double shoot()
Definition: G4INCLRandom.cc:93
G4bool nucleon(G4int ityp)
static const G4LorentzVector zero(0., 0., 0., 0.)

References G4INCL::FinalState::addCreatedParticle(), G4INCL::FinalState::addModifiedParticle(), angularSlope, G4INCL::PhaseSpaceGenerator::generateBiased(), G4INCL::ParticleTable::getIsospin(), G4INCL::ParticleTable::getNucleonType(), G4INCL::Particle::getPosition(), ind2, G4INCL::Particle::isNucleon(), G4InuclParticleNames::nucleon(), particle1, particle2, G4INCL::PiMinus, G4INCL::PiPlus, G4INCL::PiZero, G4INCL::Particle::setType(), G4INCL::Random::shoot(), G4INCL::KinematicsUtils::totalEnergyInCM(), and anonymous_namespace{G4CascadeDeexciteBase.cc}::zero.

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

Field Documentation

◆ angularSlope

const G4double G4INCL::OmegaNToPiPiNChannel::angularSlope = 15.
staticprivate

Definition at line 58 of file G4INCLOmegaNToPiPiNChannel.hh.

Referenced by fillFinalState().

◆ ind2

G4int G4INCL::OmegaNToPiPiNChannel::ind2
private

Definition at line 55 of file G4INCLOmegaNToPiPiNChannel.hh.

Referenced by fillFinalState().

◆ particle1

Particle* G4INCL::OmegaNToPiPiNChannel::particle1
private

Definition at line 56 of file G4INCLOmegaNToPiPiNChannel.hh.

Referenced by fillFinalState().

◆ particle2

Particle * G4INCL::OmegaNToPiPiNChannel::particle2
private

Definition at line 56 of file G4INCLOmegaNToPiPiNChannel.hh.

Referenced by fillFinalState().


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