Geant4 9.6.0
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 63 of file G4ParticleLargerEkin.hh.

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

◆ operator()() [2/4]

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

Definition at line 68 of file G4ParticleLargerEkin.hh.

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

◆ 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 << ": ";
50 part1.printParticle();
51 G4cout << "part2 @ " << &part2 << ": ";
52 part2.printParticle();
53 G4cout << G4endl;
54#endif
55 return (part1.getKineticEnergy() >= part2.getKineticEnergy());
56 }
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout

◆ operator()() [4/4]

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

Definition at line 58 of file G4ParticleLargerEkin.hh.

59 {
60 return (part1 && part2 && operator()(*part1, *part2));
61 }

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