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

#include <G4ConcreteNNToDeltaDeltastar.hh>

+ Inheritance diagram for G4ConcreteNNToDeltaDeltastar:

Public Member Functions

 G4ConcreteNNToDeltaDeltastar (const G4ParticleDefinition *aPrimary, const G4ParticleDefinition *bPriamry, const G4ParticleDefinition *aSecondary, const G4ParticleDefinition *bSecondary)
 
virtual ~G4ConcreteNNToDeltaDeltastar ()
 
virtual G4String GetName () const
 
- Public Member Functions inherited from G4ConcreteNNTwoBodyResonance
 G4ConcreteNNTwoBodyResonance (const G4ParticleDefinition *aPrimary, const G4ParticleDefinition *bPriamry, const G4ParticleDefinition *aSecondary, const G4ParticleDefinition *bSecondary, const G4VXResonanceTable &sigmaTable)
 
void establish_G4MT_TLS_G4ConcreteNNTwoBodyResonance (const G4ParticleDefinition *aPrimary, const G4ParticleDefinition *bPriamry, const G4ParticleDefinition *aSecondary, const G4ParticleDefinition *bSecondary, const G4VXResonanceTable &sigmaTable)
 
 G4ConcreteNNTwoBodyResonance (void *s1, void *s2, void *s3, void *s4, void *s5, void *s6, void *s7)
 
virtual ~G4ConcreteNNTwoBodyResonance ()
 
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 G4ConcreteNNTwoBodyResonance &right) const
 
G4bool operator!= (const G4ConcreteNNTwoBodyResonance &right) const
 
- Public Member Functions inherited from G4VScatteringCollision
 G4VScatteringCollision ()
 
void establish_G4MT_TLS_G4VScatteringCollision ()
 
virtual ~G4VScatteringCollision ()
 
G4bool operator== (const G4VScatteringCollision &right) const
 
G4bool operator!= (const G4VScatteringCollision &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
 

Additional Inherited Members

- Protected Member Functions inherited from G4ConcreteNNTwoBodyResonance
virtual const G4VCrossSectionSourceGetCrossSectionSource () const
 
virtual const std::vector< const G4ParticleDefinition * > & GetOutgoingParticles () const
 
virtual const std::vector< const G4ParticleDefinition * > & GetOutgoingParticles () 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 42 of file G4ConcreteNNToDeltaDeltastar.hh.

Constructor & Destructor Documentation

◆ G4ConcreteNNToDeltaDeltastar()

G4ConcreteNNToDeltaDeltastar::G4ConcreteNNToDeltaDeltastar ( const G4ParticleDefinition aPrimary,
const G4ParticleDefinition bPriamry,
const G4ParticleDefinition aSecondary,
const G4ParticleDefinition bSecondary 
)

Definition at line 36 of file G4ConcreteNNToDeltaDeltastar.cc.

39 :
40 G4ConcreteNNTwoBodyResonance(NULL, NULL, NULL, NULL, NULL, NULL, NULL)
41{
42 if (!theSigmaTable_G4MT_TLS_) theSigmaTable_G4MT_TLS_ = new G4XDeltaDeltastarTable;
43 G4XDeltaDeltastarTable &theSigmaTable = *theSigmaTable_G4MT_TLS_;
44 establish_G4MT_TLS_G4ConcreteNNTwoBodyResonance(aPrimary,bPrimary,aSecondary,bSecondary,
45 G4DeltaDeltastarBuilder(bSecondary->GetParticleName(),theSigmaTable));
46 G4double chargeBalance = aPrimary->GetPDGCharge()+bPrimary->GetPDGCharge();
47 chargeBalance -= aSecondary->GetPDGCharge();
48 chargeBalance -= bSecondary->GetPDGCharge();
49 if(std::abs(chargeBalance) >.1)
50 {
51 G4cout << "Charge conservation problem in G4ConcreteNNToDeltaDeltastar"<<G4endl;
52 G4cout << "Initial charges in "<<typeid(*this).name()<<G4endl;
53 G4cout << aPrimary->GetPDGCharge()<<" "<<aPrimary->GetParticleName()
54 << bPrimary->GetPDGCharge()<<" "<<bPrimary->GetParticleName()
55 << aSecondary->GetPDGCharge()<<" "<<aSecondary->GetParticleName()
56 << bSecondary->GetPDGCharge()<<" "<<bSecondary->GetParticleName()<<G4endl;
57 }
58}
double G4double
Definition: G4Types.hh:83
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout
void establish_G4MT_TLS_G4ConcreteNNTwoBodyResonance(const G4ParticleDefinition *aPrimary, const G4ParticleDefinition *bPriamry, const G4ParticleDefinition *aSecondary, const G4ParticleDefinition *bSecondary, const G4VXResonanceTable &sigmaTable)
G4double GetPDGCharge() const
const G4String & GetParticleName() const

◆ ~G4ConcreteNNToDeltaDeltastar()

G4ConcreteNNToDeltaDeltastar::~G4ConcreteNNToDeltaDeltastar ( )
virtual

Definition at line 60 of file G4ConcreteNNToDeltaDeltastar.cc.

61{
62 if (theSigmaTable_G4MT_TLS_) delete theSigmaTable_G4MT_TLS_;
63 theSigmaTable_G4MT_TLS_=0;
64}

Member Function Documentation

◆ GetName()

virtual G4String G4ConcreteNNToDeltaDeltastar::GetName ( ) const
inlinevirtual

Reimplemented from G4ConcreteNNTwoBodyResonance.

Definition at line 51 of file G4ConcreteNNToDeltaDeltastar.hh.

51{ return "ConcreteNNToNDeltaStar"; }

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