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