Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
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 44 of file G4ParticleLargerEkin.hh.

Member Function Documentation

◆ operator()() [1/4]

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

Definition at line 61 of file G4ParticleLargerEkin.hh.

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

◆ operator()() [2/4]

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

Definition at line 66 of file G4ParticleLargerEkin.hh.

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

◆ operator()() [3/4]

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

Definition at line 46 of file G4ParticleLargerEkin.hh.

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

◆ operator()() [4/4]

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

Definition at line 56 of file G4ParticleLargerEkin.hh.

57 {
58 return (part1 && part2 && operator()(*part1, *part2));
59 }

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