Geant4 9.6.0
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 ()
 
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 G4VAngularDistributionGetAngularDistribution () const
 
virtual const std::vector< G4String > & GetListOfColliders (G4int) const
 
- 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 42 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 65 of file G4CollisionMesonBaryonElastic.hh.

66 { return angularDistribution; }

◆ GetCrossSectionSource()

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

Implements G4VCollision.

Definition at line 63 of file G4CollisionMesonBaryonElastic.hh.

64 { return crossSectionSource; }

◆ GetListOfColliders()

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

Implements G4VCollision.

Definition at line 67 of file G4CollisionMesonBaryonElastic.cc.

69 {
70 throw G4HadronicException(__FILE__, __LINE__, "Called G4CollisionMesonBaryonElastic::GetListOfColliders");
71 return dummy;
72 }

◆ GetName()

G4String G4CollisionMesonBaryonElastic::GetName ( ) const
virtual

Implements G4VCollision.

Definition at line 61 of file G4CollisionMesonBaryonElastic.cc.

63 {
64 return "Meson Baryon Elastic Collision";
65 }

◆ IsInCharge()

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

Implements G4VCollision.

Definition at line 47 of file G4CollisionMesonBaryonElastic.cc.

49 {
50 G4bool result = false;
53 if( (GetNumberOfPartons(p1) != 2 || GetNumberOfPartons(p2) != 3)
54 ||(GetNumberOfPartons(p1) != 3 || GetNumberOfPartons(p2) != 2) )
55 {
56 result = false;
57 }
58 return result;
59 }
bool G4bool
Definition: G4Types.hh:67
G4ParticleDefinition * GetDefinition() const
G4int GetNumberOfPartons(G4ParticleDefinition *aP) const
Definition: G4VCollision.hh:67

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