Geant4 9.6.0
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 45 of file G4GeometryCellComp.hh.

Constructor & Destructor Documentation

◆ G4GeometryCellComp()

G4GeometryCellComp::G4GeometryCellComp ( )

Definition at line 40 of file G4GeometryCellComp.cc.

41{}

Member Function Documentation

◆ operator()()

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

Definition at line 43 of file G4GeometryCellComp.cc.

45{
46 G4bool smaler=false;
47 if (&(k1.GetPhysicalVolume()) != &(k2.GetPhysicalVolume())) {
48 smaler = &(k1.GetPhysicalVolume()) < &(k2.GetPhysicalVolume());
49 } else {
50 smaler = k1.GetReplicaNumber() < k2.GetReplicaNumber();
51 }
52 return smaler;
53}
bool G4bool
Definition: G4Types.hh:67

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