G4GeometryCell.hh File Reference

#include "globals.hh"

Go to the source code of this file.

Data Structures

class  G4GeometryCell

Defines

#define G4GeometryCell_hh   G4GeometryCell_hh

Functions

G4bool operator== (const G4GeometryCell &k1, const G4GeometryCell &k2)
G4bool operator!= (const G4GeometryCell &k1, const G4GeometryCell &k2)


Define Documentation

#define G4GeometryCell_hh   G4GeometryCell_hh

Definition at line 43 of file G4GeometryCell.hh.


Function Documentation

G4bool operator!= ( const G4GeometryCell k1,
const G4GeometryCell k2 
)

Definition at line 87 of file G4GeometryCell.cc.

00088 {
00089   G4bool unequal = false;
00090   if (&(k1.GetPhysicalVolume()) != &(k2.GetPhysicalVolume())) {
00091     unequal =  true;
00092   }
00093   else if (k1.GetReplicaNumber() != k2.GetReplicaNumber()) {
00094     unequal =  true;
00095   }
00096   return unequal;  
00097 }

G4bool operator== ( const G4GeometryCell k1,
const G4GeometryCell k2 
)

Definition at line 75 of file G4GeometryCell.cc.

00076 {
00077   G4bool equal=true;
00078   if (&(k1.GetPhysicalVolume()) != &(k2.GetPhysicalVolume())) {
00079     equal = false;
00080   }
00081   else if (k1.GetReplicaNumber() != k2.GetReplicaNumber()) {
00082     equal = false;
00083   }
00084   return equal;
00085 }


Generated on Mon May 27 17:50:45 2013 for Geant4 by  doxygen 1.4.7