Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4CollisionComposite::Resolve Struct Reference

#include <G4CollisionComposite.hh>

Public Member Functions

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

Detailed Description

Definition at line 87 of file G4CollisionComposite.hh.

Member Function Documentation

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

Definition at line 91 of file G4CollisionComposite.hh.

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

Here is the call graph for this function:


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