Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4Nucleon.cc File Reference
#include "G4Nucleon.hh"
#include <iostream>
Include dependency graph for G4Nucleon.cc:

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.

59 {
60 // stream<< nucleon.GetDefinition()->GetParticleName()
61 // << " is " << nucleon.AreYouHit() ? " " : "not"
62 // << " hit. Momentum/position:" << G4endl;
63  stream<< " momentum : " << nucleon.Get4Momentum() << G4endl;
64  stream<< " position : " << nucleon.GetPosition() ;
65  return stream;
66 }
virtual const G4LorentzVector & Get4Momentum() const
Definition: G4Nucleon.hh:72
virtual const G4ThreeVector & GetPosition() const
Definition: G4Nucleon.hh:68
#define G4endl
Definition: G4ios.hh:61

Here is the call graph for this function: