Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
eOccComp Struct Reference

#include <G4MolecularDecayTable.hh>

Public Member Functions

bool operator() (const G4ElectronOccupancy &occ1, const G4ElectronOccupancy &occ2) const
 

Detailed Description

Definition at line 47 of file G4MolecularDecayTable.hh.

Member Function Documentation

◆ operator()()

bool eOccComp::operator() ( const G4ElectronOccupancy occ1,
const G4ElectronOccupancy occ2 
) const
inline

Definition at line 49 of file G4MolecularDecayTable.hh.

50 {
51
52 if (occ1.GetTotalOccupancy() != occ2.GetTotalOccupancy())
53 {
54 return occ1.GetTotalOccupancy()<occ2.GetTotalOccupancy();
55 }
56 else
57 {
58
59 for (G4int i=0; i<occ1.GetSizeOfOrbit();)
60 {
61
62 if (occ1.GetOccupancy(i) != occ2.GetOccupancy(i))
63 {
64 return occ1.GetOccupancy(i) < occ2.GetOccupancy(i);
65 }
66 else
67 {
68
69 i++;
70 if (i >= occ1.GetSizeOfOrbit()) return false;
71 }
72
73 }
74 }
75 return false;
76 }
int G4int
Definition: G4Types.hh:66
G4int GetTotalOccupancy() const
G4int GetOccupancy(G4int orbit) const

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