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

#include <G4CollisionMesonBaryonElastic.hh>

+ Inheritance diagram for G4CollisionMesonBaryonElastic:

Public Member Functions

 G4CollisionMesonBaryonElastic ()
 
virtual ~G4CollisionMesonBaryonElastic ()
 
G4bool operator== (const G4CollisionMesonBaryonElastic &right) const
 
G4bool operator!= (const G4CollisionMesonBaryonElastic &right) const
 
virtual G4String GetName () const
 
virtual G4bool IsInCharge (const G4KineticTrack &trk1, const G4KineticTrack &trk2) const
 
- Public Member Functions inherited from G4VElasticCollision
 G4VElasticCollision ()
 
virtual ~G4VElasticCollision ()
 
G4bool operator== (const G4VElasticCollision &right) const
 
G4bool operator!= (const G4VElasticCollision &right) const
 
virtual G4KineticTrackVectorFinalState (const G4KineticTrack &trk1, const G4KineticTrack &trk2) 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 void Print () const
 
virtual void Print (const G4KineticTrack &trk1, const G4KineticTrack &trk2) const
 

Protected Member Functions

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

Detailed Description

Definition at line 41 of file G4CollisionMesonBaryonElastic.hh.

Constructor & Destructor Documentation

◆ G4CollisionMesonBaryonElastic()

G4CollisionMesonBaryonElastic::G4CollisionMesonBaryonElastic ( )

Definition at line 35 of file G4CollisionMesonBaryonElastic.cc.

36{
37 angularDistribution = new G4AngularDistribution(false);
38 crossSectionSource = new G4XMesonBaryonElastic();
39}

◆ ~G4CollisionMesonBaryonElastic()

G4CollisionMesonBaryonElastic::~G4CollisionMesonBaryonElastic ( )
virtual

Definition at line 41 of file G4CollisionMesonBaryonElastic.cc.

42{
43 delete angularDistribution;
44 delete crossSectionSource;
45}

Member Function Documentation

◆ GetAngularDistribution()

virtual const G4VAngularDistribution * G4CollisionMesonBaryonElastic::GetAngularDistribution ( ) const
inlineprotectedvirtual

Implements G4VCollision.

Definition at line 64 of file G4CollisionMesonBaryonElastic.hh.

65 { return angularDistribution; }

◆ GetCrossSectionSource()

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

Implements G4VCollision.

Definition at line 62 of file G4CollisionMesonBaryonElastic.hh.

63 { return crossSectionSource; }

◆ GetListOfColliders()

const std::vector< G4String > & G4CollisionMesonBaryonElastic::GetListOfColliders ( G4int ) const
protectedvirtual

Implements G4VCollision.

Definition at line 63 of file G4CollisionMesonBaryonElastic.cc.

65 {
66 throw G4HadronicException(__FILE__, __LINE__, "Called G4CollisionMesonBaryonElastic::GetListOfColliders");
67 return dummy;
68 }

◆ GetName()

G4String G4CollisionMesonBaryonElastic::GetName ( ) const
virtual

Implements G4VCollision.

Definition at line 57 of file G4CollisionMesonBaryonElastic.cc.

59 {
60 return "Meson Baryon Elastic Collision";
61 }

◆ IsInCharge()

G4bool G4CollisionMesonBaryonElastic::IsInCharge ( const G4KineticTrack & trk1,
const G4KineticTrack & trk2 ) const
virtual

Implements G4VCollision.

Definition at line 47 of file G4CollisionMesonBaryonElastic.cc.

49 {
50 G4int partons1 = GetNumberOfPartons(trk1.GetDefinition());
51 G4int partons2 = GetNumberOfPartons(trk2.GetDefinition());
52 G4bool result = (partons1 == 2 && partons2 ==3) ||
53 (partons2 == 2 && partons1 ==3);
54 return result;
55 }
bool G4bool
Definition G4Types.hh:86
int G4int
Definition G4Types.hh:85
const G4ParticleDefinition * GetDefinition() const
G4int GetNumberOfPartons(const G4ParticleDefinition *aP) const

◆ operator!=()

G4bool G4CollisionMesonBaryonElastic::operator!= ( const G4CollisionMesonBaryonElastic & right) const

◆ operator==()

G4bool G4CollisionMesonBaryonElastic::operator== ( const G4CollisionMesonBaryonElastic & right) const

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