Geant4 9.6.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 ()
 
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 (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 49 of file G4ConcreteMesonBaryonToResonance.cc.

53 : thePrimary1(aPrimary), thePrimary2(bPrimary), theSecondary(aSecondary)
54{
55 crossSectionSource = new G4XAnnihilationChannel(aSecondary,
56 theBaryonWidth(),
57 theBaryonPartialWidth(),
58 partWidthLabel);
59}

◆ ~G4ConcreteMesonBaryonToResonance()

G4ConcreteMesonBaryonToResonance::~G4ConcreteMesonBaryonToResonance ( )
virtual

Definition at line 62 of file G4ConcreteMesonBaryonToResonance.cc.

63{
64 delete crossSectionSource;
65}

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 78 of file G4ConcreteMesonBaryonToResonance.cc.

80{
81 G4int secondaryIso3 = trk1.GetDefinition()->GetPDGiIsospin3() + trk2.GetDefinition()->GetPDGiIsospin3();
82 const G4ParticleDefinition* state;
83 if ( (state = myConv().FindIso3State(myConv().GetGenericType(theSecondary), secondaryIso3)) == NULL)
84 {
85 G4cerr << "for "<<static_cast<G4int>(myConv().GetGenericType(theSecondary))<<" "<<secondaryIso3<<G4endl;
86 throw G4HadronicException(__FILE__, __LINE__, "G4ConcreteMesonBaryonToResonance: Can't find iso3 state!");
87 }
88 return state;
89}
int G4int
Definition: G4Types.hh:66
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cerr
G4ParticleDefinition * GetDefinition() const
GenericType GetGenericType(const G4ParticleDefinition *const aParticleDef)

◆ IsInCharge()

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

Implements G4VCollision.

Definition at line 68 of file G4ConcreteMesonBaryonToResonance.cc.

70{
71 if (myConv().GetGenericType(trk1)==myConv().GetGenericType(thePrimary1) &&
72 myConv().GetGenericType(trk2)==myConv().GetGenericType(thePrimary2)) return true;
73 if (myConv().GetGenericType(trk1)==myConv().GetGenericType(thePrimary2) &&
74 myConv().GetGenericType(trk2)==myConv().GetGenericType(thePrimary1)) return true;
75 return false;
76}

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