Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
G4Fancy3DNucleus.cc File Reference
#include <algorithm>
#include "G4Fancy3DNucleus.hh"
#include "G4Fancy3DNucleusHelper.hh"
#include "G4NuclearFermiDensity.hh"
#include "G4NuclearShellModelDensity.hh"
#include "G4NucleiProperties.hh"
#include "G4Nucleon.hh"
#include "G4SystemOfUnits.hh"
#include "Randomize.hh"
#include "G4ios.hh"
#include "G4HadronicException.hh"

Go to the source code of this file.

Functions

bool G4Fancy3DNucleusHelperForSortInZ (const G4Nucleon &nuc1, const G4Nucleon &nuc2)
 

Function Documentation

bool G4Fancy3DNucleusHelperForSortInZ ( const G4Nucleon nuc1,
const G4Nucleon nuc2 
)

Definition at line 138 of file G4Fancy3DNucleus.cc.

References G4Nucleon::GetPosition(), and CLHEP::Hep3Vector::z().

Referenced by G4Fancy3DNucleus::SortNucleonsIncZ().

139 {
140  return nuc1.GetPosition().z() < nuc2.GetPosition().z();
141 }
virtual const G4ThreeVector & GetPosition() const
Definition: G4Nucleon.hh:68
double z() const