Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4ParticleLargerBeta Class Reference

#include <G4ParticleLargerBeta.hh>

Public Member Functions

G4bool operator() (const G4InuclElementaryParticle &part1, const G4InuclElementaryParticle &part2)
 
G4bool operator() (const G4InuclElementaryParticle *part1, const G4InuclElementaryParticle *part2)
 
G4bool operator() (const G4CascadParticle &part1, const G4CascadParticle &part2)
 
G4bool operator() (const G4CascadParticle *part1, const G4CascadParticle *part2)
 

Detailed Description

Definition at line 43 of file G4ParticleLargerBeta.hh.

Member Function Documentation

G4bool G4ParticleLargerBeta::operator() ( const G4InuclElementaryParticle part1,
const G4InuclElementaryParticle part2 
)
inline

Definition at line 45 of file G4ParticleLargerBeta.hh.

46  {
47 #ifdef G4CASCADE_DEBUG_SORT
48  G4cout << "part1 @ " << &part1 << ": " << part1
49  << "part2 @ " << &part2 << ": " << part2
50  << G4endl;
51 #endif
52  return (part1.getMomModule()/part1.getEnergy() >
53  part2.getMomModule()/part2.getEnergy()
54  );
55  }
G4double getEnergy() const
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
G4double getMomModule() const

Here is the call graph for this function:

G4bool G4ParticleLargerBeta::operator() ( const G4InuclElementaryParticle part1,
const G4InuclElementaryParticle part2 
)
inline

Definition at line 57 of file G4ParticleLargerBeta.hh.

58  {
59  return (part1 && part2 && operator()(*part1, *part2));
60  }
G4bool G4ParticleLargerBeta::operator() ( const G4CascadParticle part1,
const G4CascadParticle part2 
)
inline

Definition at line 62 of file G4ParticleLargerBeta.hh.

63  {
64  return (operator()(part1.getParticle(), part2.getParticle()));
65  }
const G4InuclElementaryParticle & getParticle() const

Here is the call graph for this function:

G4bool G4ParticleLargerBeta::operator() ( const G4CascadParticle part1,
const G4CascadParticle part2 
)
inline

Definition at line 67 of file G4ParticleLargerBeta.hh.

68  {
69  return (part1 && part2 && operator()(*part1, *part2));
70  }

The documentation for this class was generated from the following file: