30 #ifndef G4InteractionContent_h
31 #define G4InteractionContent_h 1
51 #include "../../qgsm/include/G4QGSMSplitableHadron.hh"
201 inline void G4InteractionContent::Dump()
216 std::deque<G4Parton *>color=at->GetColorPartons();
217 std::deque<G4Parton *>anticolor=at->GetAntiColorPartons();
218 G4cout <<
" proj. color/anti size " << color.size() <<
" / " << anticolor.size() <<
G4endl;
219 std::deque<G4Parton *>::iterator p_iter;
221 for ( p_iter=color.begin(); p_iter!= color.end(); ++p_iter){
222 G4cout <<
"proj color : "<<(*p_iter)->GetPDGcode() <<
", mom= "<< (*p_iter)->Get4Momentum()<<
G4endl;
223 colmom+=(*p_iter)->Get4Momentum();
227 for ( p_iter=anticolor.begin(); p_iter!= anticolor.end(); ++p_iter){
228 G4cout <<
"proj antic : "<<(*p_iter)->GetPDGcode() <<
", mom= "<< (*p_iter)->Get4Momentum()<<
G4endl;
229 anticolmom+=(*p_iter)->Get4Momentum();
231 G4cout <<
" proj. color/anti mom " << colmom <<
" / " << anticolmom <<
" Sum: " << colmom+anticolmom <<
G4endl;
242 std::deque<G4Parton *>color=at->GetColorPartons();
243 std::deque<G4Parton *>anticolor=at->GetAntiColorPartons();
244 G4cout <<
" target color/anti size " << color.size() <<
" / " << anticolor.size() <<
G4endl;
245 std::deque<G4Parton *>::iterator p_iter;
247 for ( p_iter=color.begin(); p_iter!= color.end(); ++p_iter){
248 G4cout <<
"target color : "<<(*p_iter)->GetPDGcode() <<
", mom= "<< (*p_iter)->Get4Momentum()<<
G4endl;
249 colmom+=(*p_iter)->Get4Momentum();
253 for ( p_iter=anticolor.begin(); p_iter!= anticolor.end(); ++p_iter){
254 G4cout <<
"target antic : "<<(*p_iter)->GetPDGcode() <<
", mom= "<< (*p_iter)->Get4Momentum()<<
G4endl;
255 anticolmom+=(*p_iter)->Get4Momentum();
257 G4cout <<
" target color/anti mom " << colmom <<
" / " << anticolmom <<
" Sum: " << colmom+anticolmom <<
G4endl;
262 G4cout <<
"total 4-mom of interaction content " << mom <<
G4endl;
G4int theNumberOfDiffractive
G4Nucleon * GetTargetNucleon() const
G4Nucleon * theTargetNucleon
int operator!=(const G4InteractionContent &right) const
G4Nucleon * GetProjectileNucleon() const
void SetInteractionTime(G4double aValue)
G4int GetPDGEncoding() const
void SetNumberOfHardCollisions(int)
G4double theInteractionTime
G4InteractionContent & operator=(const G4InteractionContent &right)
const G4ParticleDefinition * GetDefinition() const
G4bool operator<(const G4InteractionContent &right) const
void SetProjectileNucleon(G4Nucleon *aNucleon)
G4GLOB_DLL std::ostream G4cout
G4int GetNumberOfDiffractiveCollisions()
const G4LorentzVector & Get4Momentum() const
int operator==(const G4InteractionContent &right) const
void SetNumberOfDiffractiveCollisions(int)
void SetStatus(G4int aValue)
void SetNumberOfSoftCollisions(int)
G4VSplitableHadron * theProjectile
G4VSplitableHadron * GetTarget() const
G4VSplitableHadron * GetProjectile() const
G4VSplitableHadron * theTarget
G4double GetInteractionTime() const
G4Nucleon * theProjectileNucleon
void SetTargetNucleon(G4Nucleon *aNucleon)
G4int GetNumberOfSoftCollisions()
void SetTarget(G4VSplitableHadron *aTarget)
CLHEP::HepLorentzVector G4LorentzVector
G4int GetNumberOfHardCollisions()