Geant4 10.7.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)
 
void establish_G4MT_TLS_G4ConcreteNNTwoBodyResonance (const G4ParticleDefinition *aPrimary, const G4ParticleDefinition *bPriamry, const G4ParticleDefinition *aSecondary, const G4ParticleDefinition *bSecondary, const G4VXResonanceTable &sigmaTable)
 
 G4ConcreteNNTwoBodyResonance (void *s1, void *s2, void *s3, void *s4, void *s5, void *s6, void *s7)
 
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 ()
 
void establish_G4MT_TLS_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 ()
 
void establish_G4MT_TLS_G4VCollision ()
 
 G4VCollision (void *s1, void *s2, void *s3, void *s4, void *s5, void *s6, void *s7)
 
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 (const 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() [1/2]

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

Definition at line 42 of file G4ConcreteNNTwoBodyResonance.cc.

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

◆ G4ConcreteNNTwoBodyResonance() [2/2]

G4ConcreteNNTwoBodyResonance::G4ConcreteNNTwoBodyResonance ( void *  s1,
void *  s2,
void *  s3,
void *  s4,
void *  s5,
void *  s6,
void *  s7 
)

Definition at line 78 of file G4ConcreteNNTwoBodyResonance.cc.

79 : crossSectionSource(0), thePrimary1(0), thePrimary2(0)
80{}

◆ ~G4ConcreteNNTwoBodyResonance()

G4ConcreteNNTwoBodyResonance::~G4ConcreteNNTwoBodyResonance ( )
virtual

Definition at line 64 of file G4ConcreteNNTwoBodyResonance.cc.

65{
66 if (crossSectionSource) delete crossSectionSource;
67 crossSectionSource=0;
68}

Member Function Documentation

◆ establish_G4MT_TLS_G4ConcreteNNTwoBodyResonance()

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

Definition at line 82 of file G4ConcreteNNTwoBodyResonance.cc.

87{
89 thePrimary1=aPrimary;
90 thePrimary2=bPrimary;
91 theOutGoing.push_back(aSecondary);
92 theOutGoing.push_back(bSecondary);
93
94 crossSectionSource = new G4XResonance(aPrimary, bPrimary,
95 aSecondary->GetPDGiIsospin(),
96 aSecondary->GetPDGiSpin(),
97 aSecondary->GetPDGMass(),
98 bSecondary->GetPDGiIsospin(),
99 bSecondary->GetPDGiSpin(),
100 bSecondary->GetPDGMass(),
101 aSecondary->GetParticleName(),
102 bSecondary->GetParticleName(),
103 sigmaTable);
104}

Referenced by G4ConcreteNNToDeltaDelta::G4ConcreteNNToDeltaDelta(), G4ConcreteNNToDeltaDeltastar::G4ConcreteNNToDeltaDeltastar(), G4ConcreteNNToDeltaNstar::G4ConcreteNNToDeltaNstar(), G4ConcreteNNToNDelta::G4ConcreteNNToNDelta(), G4ConcreteNNToNDeltaStar::G4ConcreteNNToNDeltaStar(), G4ConcreteNNToNNStar::G4ConcreteNNToNNStar(), and G4ConcreteNStarNToNN::G4ConcreteNStarNToNN().

◆ GetCrossSectionSource()

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

Implements G4VCollision.

Definition at line 80 of file G4ConcreteNNTwoBodyResonance.hh.

80{ return crossSectionSource; }

◆ GetListOfColliders()

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

Implements G4VCollision.

Definition at line 62 of file G4ConcreteNNTwoBodyResonance.hh.

63 {
64 throw G4HadronicException(__FILE__, __LINE__, "Tried to call G4ConcreteNNTwoBodyResonance::GetListOfColliders. Please find out why!");
65 std::vector<G4String> * aList = new std::vector<G4String>;
66 return *aList;
67 }

◆ GetName()

virtual G4String G4ConcreteNNTwoBodyResonance::GetName ( ) const
inlinevirtual

◆ GetOutgoingParticles()

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

Implements G4VScatteringCollision.

Definition at line 82 of file G4ConcreteNNTwoBodyResonance.hh.

83 {
84 return theOutGoing;
85 }

◆ 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}
const 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: