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

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

Definition at line 49 of file G4MolecularDecayTable.hh.

References G4ElectronOccupancy::GetOccupancy(), G4ElectronOccupancy::GetSizeOfOrbit(), and G4ElectronOccupancy::GetTotalOccupancy().

00050     {
00051 
00052         if (occ1.GetTotalOccupancy() != occ2.GetTotalOccupancy())
00053         {
00054             return occ1.GetTotalOccupancy()<occ2.GetTotalOccupancy();
00055         }
00056         else
00057         {
00058 
00059             for (G4int i=0; i<occ1.GetSizeOfOrbit();)
00060             {
00061 
00062                 if (occ1.GetOccupancy(i) != occ2.GetOccupancy(i))
00063                 {
00064                     return occ1.GetOccupancy(i) < occ2.GetOccupancy(i);
00065                 }
00066                 else
00067                 {
00068 
00069                     i++;
00070                     if (i >= occ1.GetSizeOfOrbit()) return false;
00071                 }
00072 
00073             }
00074         }
00075         return false;
00076     }


The documentation for this struct was generated from the following file:
Generated on Mon May 27 17:51:23 2013 for Geant4 by  doxygen 1.4.7