Geant4-11
Public Member Functions
G4GeometryCellComp Class Reference

#include <G4GeometryCellComp.hh>

Public Member Functions

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

Detailed Description

Definition at line 41 of file G4GeometryCellComp.hh.

Constructor & Destructor Documentation

◆ G4GeometryCellComp()

G4GeometryCellComp::G4GeometryCellComp ( )

Definition at line 34 of file G4GeometryCellComp.cc.

35{
36}

Member Function Documentation

◆ operator()()

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

Definition at line 38 of file G4GeometryCellComp.cc.

40{
41 G4bool smaller = false;
42 if (&(k1.GetPhysicalVolume()) != &(k2.GetPhysicalVolume()))
43 {
44 smaller = &(k1.GetPhysicalVolume()) < &(k2.GetPhysicalVolume());
45 }
46 else
47 {
48 smaller = k1.GetReplicaNumber() < k2.GetReplicaNumber();
49 }
50 return smaller;
51}
bool G4bool
Definition: G4Types.hh:86
#define smaller(tree, n, m, depth)
Definition: trees.c:440

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


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