Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4ConcreteNNTwoBodyResonance Class Reference

#include <G4ConcreteNNTwoBodyResonance.hh>

+ Inheritance diagram for G4ConcreteNNTwoBodyResonance:

Public Member Functions

 G4ConcreteNNTwoBodyResonance (const G4ParticleDefinition *aPrimary, const G4ParticleDefinition *bPriamry, const G4ParticleDefinition *aSecondary, const G4ParticleDefinition *bSecondary, const G4VXResonanceTable &sigmaTable)
 
virtual ~G4ConcreteNNTwoBodyResonance ()
 
virtual G4bool IsInCharge (const G4KineticTrack &trk1, const G4KineticTrack &trk2) const
 
virtual const std::vector< G4String > & GetListOfColliders (G4int) const
 
virtual G4String GetName () const
 
G4bool operator== (const G4ConcreteNNTwoBodyResonance &right) const
 
G4bool operator!= (const G4ConcreteNNTwoBodyResonance &right) const
 
- Public Member Functions inherited from G4VScatteringCollision
 G4VScatteringCollision ()
 
virtual ~G4VScatteringCollision ()
 
G4bool operator== (const G4VScatteringCollision &right) const
 
G4bool operator!= (const G4VScatteringCollision &right) const
 
virtual G4KineticTrackVectorFinalState (const G4KineticTrack &trk1, const G4KineticTrack &trk2) const
 
virtual const G4VAngularDistributionGetAngularDistribution () const
 
- Public Member Functions inherited from G4VCollision
 G4VCollision ()
 
virtual ~G4VCollision ()
 
G4bool operator== (const G4VCollision &right) const
 
G4bool operator!= (const G4VCollision &right) const
 
virtual G4double CrossSection (const G4KineticTrack &trk1, const G4KineticTrack &trk2) const
 
virtual G4KineticTrackVectorFinalState (const G4KineticTrack &trk1, const G4KineticTrack &trk2) const =0
 
virtual G4bool IsInCharge (const G4KineticTrack &trk1, const G4KineticTrack &trk2) const =0
 
virtual G4String GetName () const =0
 
virtual void Print () const
 
virtual void Print (const G4KineticTrack &trk1, const G4KineticTrack &trk2) const
 

Protected Member Functions

virtual const G4VCrossSectionSourceGetCrossSectionSource () const
 
virtual const std::vector< const G4ParticleDefinition * > & GetOutgoingParticles () const
 
virtual const std::vector< const G4ParticleDefinition * > & GetOutgoingParticles () const =0
 
- Protected Member Functions inherited from G4VCollision
G4int GetNumberOfPartons (G4ParticleDefinition *aP) const
 
virtual const G4CollisionVectorGetComponents () const
 
virtual const G4VCrossSectionSourceGetCrossSectionSource () const =0
 
virtual const G4VAngularDistributionGetAngularDistribution () const =0
 
virtual const std::vector< G4String > & GetListOfColliders (G4int whichOne) const =0
 

Detailed Description

Definition at line 39 of file G4ConcreteNNTwoBodyResonance.hh.

Constructor & Destructor Documentation

◆ G4ConcreteNNTwoBodyResonance()

G4ConcreteNNTwoBodyResonance::G4ConcreteNNTwoBodyResonance ( const G4ParticleDefinition aPrimary,
const G4ParticleDefinition bPriamry,
const G4ParticleDefinition aSecondary,
const G4ParticleDefinition bSecondary,
const G4VXResonanceTable sigmaTable 
)

Definition at line 43 of file G4ConcreteNNTwoBodyResonance.cc.

48 : thePrimary1(aPrimary), thePrimary2(bPrimary)
49{
50 theOutGoing.push_back(aSecondary);
51 theOutGoing.push_back(bSecondary);
52
53 crossSectionSource = new G4XResonance(aPrimary, bPrimary,
54 aSecondary->GetPDGiIsospin(),
55 aSecondary->GetPDGiSpin(),
56 aSecondary->GetPDGMass(),
57 bSecondary->GetPDGiIsospin(),
58 bSecondary->GetPDGiSpin(),
59 bSecondary->GetPDGMass(),
60 aSecondary->GetParticleName(),
61 bSecondary->GetParticleName(),
62 sigmaTable);
63}
const G4String & GetParticleName() const

◆ ~G4ConcreteNNTwoBodyResonance()

G4ConcreteNNTwoBodyResonance::~G4ConcreteNNTwoBodyResonance ( )
virtual

Definition at line 65 of file G4ConcreteNNTwoBodyResonance.cc.

66{
67 delete crossSectionSource;
68}

Member Function Documentation

◆ GetCrossSectionSource()

virtual const G4VCrossSectionSource * G4ConcreteNNTwoBodyResonance::GetCrossSectionSource ( ) const
inlineprotectedvirtual

Implements G4VCollision.

Definition at line 76 of file G4ConcreteNNTwoBodyResonance.hh.

76{ return crossSectionSource; }

◆ GetListOfColliders()

virtual const std::vector< G4String > & G4ConcreteNNTwoBodyResonance::GetListOfColliders ( G4int  ) const
inlinevirtual

Implements G4VCollision.

Definition at line 55 of file G4ConcreteNNTwoBodyResonance.hh.

56 {
57 throw G4HadronicException(__FILE__, __LINE__, "Tried to call G4ConcreteNNTwoBodyResonance::GetListOfColliders. Please find out why!");
58 std::vector<G4String> * aList = new std::vector<G4String>;
59 return *aList;
60 }

◆ GetName()

virtual G4String G4ConcreteNNTwoBodyResonance::GetName ( ) const
inlinevirtual

◆ GetOutgoingParticles()

virtual const std::vector< const G4ParticleDefinition * > & G4ConcreteNNTwoBodyResonance::GetOutgoingParticles ( ) const
inlineprotectedvirtual

Implements G4VScatteringCollision.

Definition at line 78 of file G4ConcreteNNTwoBodyResonance.hh.

79 {
80 return theOutGoing;
81 }

◆ IsInCharge()

G4bool G4ConcreteNNTwoBodyResonance::IsInCharge ( const G4KineticTrack trk1,
const G4KineticTrack trk2 
) const
virtual

Implements G4VCollision.

Definition at line 70 of file G4ConcreteNNTwoBodyResonance.cc.

72{
73 if (trk1.GetDefinition()==thePrimary1 && trk2.GetDefinition()==thePrimary2) return true;
74 if (trk1.GetDefinition()==thePrimary2 && trk2.GetDefinition()==thePrimary1) return true;
75 return false;
76}
G4ParticleDefinition * GetDefinition() const

◆ operator!=()

G4bool G4ConcreteNNTwoBodyResonance::operator!= ( const G4ConcreteNNTwoBodyResonance right) const

◆ operator==()

G4bool G4ConcreteNNTwoBodyResonance::operator== ( const G4ConcreteNNTwoBodyResonance right) const

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