G4Nucleon.hh File Reference

#include "G4ThreeVector.hh"
#include "G4LorentzVector.hh"
#include "globals.hh"
#include "G4ParticleDefinition.hh"
#include "G4Proton.hh"
#include "G4Neutron.hh"
#include "G4AntiProton.hh"
#include "G4AntiNeutron.hh"
#include "G4VKineticNucleon.hh"

Go to the source code of this file.

Data Structures

class  G4Nucleon

Defines

#define G4Nucleon_h   1

Functions

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


Define Documentation

#define G4Nucleon_h   1

Definition at line 29 of file G4Nucleon.hh.


Function Documentation

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

Definition at line 58 of file G4Nucleon.cc.

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