Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4CollisionComposite::Resolve Struct Reference

#include <G4CollisionComposite.hh>

Public Member Functions

template<class T >
void operator() (T *, G4CollisionComposite *aC)
 

Detailed Description

Definition at line 86 of file G4CollisionComposite.hh.

Member Function Documentation

◆ operator()()

template<class T >
void G4CollisionComposite::Resolve::operator() ( T *  ,
G4CollisionComposite aC 
)
inline

Definition at line 90 of file G4CollisionComposite.hh.

91 {
92 G4ParticleDefinition * p2, *p3, *p4, *p5;
93 G4int pdg = 0;
94 pdg = T::i1;
96 pdg = T::i2;
98 pdg = T::i3;
100 pdg = T::i4;
102 if(p2->GetPDGCharge()+p3->GetPDGCharge() != p4->GetPDGCharge()+p5->GetPDGCharge())
103 {
104 G4cerr << "charge-unbalance in collision composite"<<G4endl;
105 }
106 aC->AddComponent(new typename T::it(p2, p3, p4, p5));
107 }
int G4int
Definition: G4Types.hh:85
G4GLOB_DLL std::ostream G4cerr
#define G4endl
Definition: G4ios.hh:57
void AddComponent(G4VCollision *aC)
G4double GetPDGCharge() const
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
static G4ParticleTable * GetParticleTable()

The documentation for this struct was generated from the following file: