Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4CollisionMesonBaryonElastic Class Reference

#include <G4CollisionMesonBaryonElastic.hh>

Inheritance diagram for G4CollisionMesonBaryonElastic:
Collaboration 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
G4VCrossSectionSource
GetCrossSectionSource () const
 
virtual const
G4VAngularDistribution
GetAngularDistribution () 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 42 of file G4CollisionMesonBaryonElastic.hh.

Constructor & Destructor Documentation

G4CollisionMesonBaryonElastic::G4CollisionMesonBaryonElastic ( )

Definition at line 35 of file G4CollisionMesonBaryonElastic.cc.

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

Definition at line 41 of file G4CollisionMesonBaryonElastic.cc.

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

Member Function Documentation

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

Implements G4VCollision.

Definition at line 65 of file G4CollisionMesonBaryonElastic.hh.

66  { return angularDistribution; }
virtual const G4VCrossSectionSource* G4CollisionMesonBaryonElastic::GetCrossSectionSource ( ) const
inlineprotectedvirtual

Implements G4VCollision.

Definition at line 63 of file G4CollisionMesonBaryonElastic.hh.

64  { return crossSectionSource; }
const std::vector< G4String > & G4CollisionMesonBaryonElastic::GetListOfColliders ( G4int  ) const
protectedvirtual

Implements G4VCollision.

Definition at line 64 of file G4CollisionMesonBaryonElastic.cc.

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

Implements G4VCollision.

Definition at line 58 of file G4CollisionMesonBaryonElastic.cc.

59  {
60  return "Meson Baryon Elastic Collision";
61  }
G4bool G4CollisionMesonBaryonElastic::IsInCharge ( const G4KineticTrack trk1,
const G4KineticTrack trk2 
) const
virtual

Implements G4VCollision.

Definition at line 48 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  }
G4double G4ParticleHPJENDLHEData::G4double result
int G4int
Definition: G4Types.hh:78
bool G4bool
Definition: G4Types.hh:79
G4int GetNumberOfPartons(const G4ParticleDefinition *aP) const
Definition: G4VCollision.hh:69
const G4ParticleDefinition * GetDefinition() const

Here is the call graph for this function:

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

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