Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4ParticleLargerEkin Class Reference

#include <G4ParticleLargerEkin.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 45 of file G4ParticleLargerEkin.hh.

Member Function Documentation

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

Definition at line 47 of file G4ParticleLargerEkin.hh.

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

Here is the call graph for this function:

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

Definition at line 57 of file G4ParticleLargerEkin.hh.

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

Definition at line 62 of file G4ParticleLargerEkin.hh.

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

Here is the call graph for this function:

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

Definition at line 67 of file G4ParticleLargerEkin.hh.

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

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