Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
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 ( )
default

Member Function Documentation

◆ operator()()

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

Definition at line 37 of file G4GeometryCellComp.cc.

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

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