G4Nucleon.cc File Reference

#include "G4Nucleon.hh"
#include <iostream>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &stream, const G4Nucleon &nucleon)


Function Documentation

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 }         


Generated on Mon May 27 17:50:55 2013 for Geant4 by  doxygen 1.4.7