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

#include <G4ConcreteMesonBaryonToResonance.hh>

+ Inheritance diagram for G4ConcreteMesonBaryonToResonance:

Public Member Functions

 G4ConcreteMesonBaryonToResonance (const G4ParticleDefinition *aPrimary, const G4ParticleDefinition *bPriamry, const G4ParticleDefinition *aSecondary, const G4String &partWidthLabel)
 
virtual ~G4ConcreteMesonBaryonToResonance ()
 
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 G4ConcreteMesonBaryonToResonance &right) const
 
G4bool operator!= (const G4ConcreteMesonBaryonToResonance &right) const
 
- Public Member Functions inherited from G4VAnnihilationCollision
 G4VAnnihilationCollision ()
 
virtual ~G4VAnnihilationCollision ()
 
G4bool operator== (const G4VAnnihilationCollision &right) const
 
G4bool operator!= (const G4VAnnihilationCollision &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 G4ParticleDefinitionGetOutgoingParticle (const G4KineticTrack &trk1, const G4KineticTrack &trk2) const
 
virtual const G4ParticleDefinitionGetOutgoingParticle (const G4KineticTrack &trk1, const G4KineticTrack &trk2) 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 45 of file G4ConcreteMesonBaryonToResonance.hh.

Constructor & Destructor Documentation

◆ G4ConcreteMesonBaryonToResonance()

G4ConcreteMesonBaryonToResonance::G4ConcreteMesonBaryonToResonance ( const G4ParticleDefinition aPrimary,
const G4ParticleDefinition bPriamry,
const G4ParticleDefinition aSecondary,
const G4String partWidthLabel 
)

Definition at line 57 of file G4ConcreteMesonBaryonToResonance.cc.

61 : thePrimary1(aPrimary), thePrimary2(bPrimary), theSecondary(aSecondary)
62{
63 crossSectionSource = new G4XAnnihilationChannel(aSecondary,
64 theBaryonWidth(),
65 theBaryonPartialWidth(),
66 partWidthLabel);
67 InitialisePointers();
68}

◆ ~G4ConcreteMesonBaryonToResonance()

G4ConcreteMesonBaryonToResonance::~G4ConcreteMesonBaryonToResonance ( )
virtual

Definition at line 70 of file G4ConcreteMesonBaryonToResonance.cc.

71{
72 delete crossSectionSource;
73}

Member Function Documentation

◆ GetCrossSectionSource()

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

Implements G4VCollision.

Definition at line 81 of file G4ConcreteMesonBaryonToResonance.hh.

82 { return crossSectionSource; }

◆ GetListOfColliders()

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

Implements G4VCollision.

Definition at line 60 of file G4ConcreteMesonBaryonToResonance.hh.

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

◆ GetName()

virtual G4String G4ConcreteMesonBaryonToResonance::GetName ( ) const
inlinevirtual

Implements G4VCollision.

Definition at line 67 of file G4ConcreteMesonBaryonToResonance.hh.

68 {
69 return "ConcreteMesonBaryonToResonance";
70 }

◆ GetOutgoingParticle()

const G4ParticleDefinition * G4ConcreteMesonBaryonToResonance::GetOutgoingParticle ( const G4KineticTrack trk1,
const G4KineticTrack trk2 
) const
protectedvirtual

Implements G4VAnnihilationCollision.

Definition at line 102 of file G4ConcreteMesonBaryonToResonance.cc.

104{
105 G4int secondaryIso3 = trk1.GetDefinition()->GetPDGiIsospin3() + trk2.GetDefinition()->GetPDGiIsospin3();
106 const G4ParticleDefinition* state;
107 if ( (state = myConv().FindIso3State(myConv().GetGenericType(theSecondary), secondaryIso3)) == NULL)
108 {
109 G4cerr << "for "<<static_cast<G4int>(myConv().GetGenericType(theSecondary))<<" "<<secondaryIso3<<G4endl;
110 throw G4HadronicException(__FILE__, __LINE__, "G4ConcreteMesonBaryonToResonance: Can't find iso3 state!");
111 }
112 return state;
113}
int G4int
Definition: G4Types.hh:85
G4GLOB_DLL std::ostream G4cerr
#define G4endl
Definition: G4ios.hh:57
const G4ParticleDefinition * GetDefinition() const
GenericType GetGenericType(const G4ParticleDefinition *const aParticleDef) const

◆ IsInCharge()

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

Implements G4VCollision.

Definition at line 92 of file G4ConcreteMesonBaryonToResonance.cc.

94{
95 if (myConv().GetGenericType(trk1)==myConv().GetGenericType(thePrimary1) &&
96 myConv().GetGenericType(trk2)==myConv().GetGenericType(thePrimary2)) return true;
97 if (myConv().GetGenericType(trk1)==myConv().GetGenericType(thePrimary2) &&
98 myConv().GetGenericType(trk2)==myConv().GetGenericType(thePrimary1)) return true;
99 return false;
100}

◆ operator!=()

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

◆ operator==()

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

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