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

Member Function Documentation

◆ operator()() [1/4]

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

Definition at line 61 of file G4ParticleLargerBeta.hh.

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

◆ operator()() [2/4]

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

Definition at line 66 of file G4ParticleLargerBeta.hh.

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

◆ operator()() [3/4]

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

Definition at line 44 of file G4ParticleLargerBeta.hh.

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

◆ operator()() [4/4]

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

Definition at line 56 of file G4ParticleLargerBeta.hh.

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

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