G4GeometryCellComp Class Reference

#include <G4GeometryCellComp.hh>


Public Member Functions

 G4GeometryCellComp ()
G4bool operator() (const G4GeometryCell &g1, const G4GeometryCell &g2) const


Detailed Description

Definition at line 45 of file G4GeometryCellComp.hh.


Constructor & Destructor Documentation

G4GeometryCellComp::G4GeometryCellComp (  ) 

Definition at line 40 of file G4GeometryCellComp.cc.

00041 {}


Member Function Documentation

G4bool G4GeometryCellComp::operator() ( const G4GeometryCell g1,
const G4GeometryCell g2 
) const

Definition at line 43 of file G4GeometryCellComp.cc.

References G4GeometryCell::GetPhysicalVolume(), and G4GeometryCell::GetReplicaNumber().

00045 {
00046   G4bool smaler=false;
00047   if (&(k1.GetPhysicalVolume()) != &(k2.GetPhysicalVolume())) {
00048     smaler = &(k1.GetPhysicalVolume()) < &(k2.GetPhysicalVolume());
00049   } else {
00050     smaler =  k1.GetReplicaNumber() < k2.GetReplicaNumber();
00051   }
00052   return smaler;
00053 }


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:52:04 2013 for Geant4 by  doxygen 1.4.7