#include "G4Nucleon.hh"#include <iostream>Go to the source code of this file.
Functions | |
| std::ostream & | operator<< (std::ostream &stream, const G4Nucleon &nucleon) |
| std::ostream& operator<< | ( | std::ostream & | stream, | |
| const G4Nucleon & | nucleon | |||
| ) |
Definition at line 58 of file G4Nucleon.cc.
References G4endl, G4Nucleon::Get4Momentum(), and G4Nucleon::GetPosition().
00059 { 00060 // stream<< nucleon.GetDefinition()->GetParticleName() 00061 // << " is " << nucleon.AreYouHit() ? " " : "not" 00062 // << " hit. Momentum/position:" << G4endl; 00063 stream<< " momentum : " << nucleon.Get4Momentum() << G4endl; 00064 stream<< " position : " << nucleon.GetPosition() ; 00065 return stream; 00066 }
1.4.7