Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4ModelingParameters::PVPointerCopyNo Class Reference

#include <G4ModelingParameters.hh>

Public Member Functions

 PVPointerCopyNo (G4VPhysicalVolume *pPV, G4int copyNo)
 
const G4StringGetName () const
 
const G4VPhysicalVolumeGetPVPointer () const
 
G4int GetCopyNo () const
 
G4bool operator!= (const PVPointerCopyNo &) const
 
G4bool operator== (const PVPointerCopyNo &rhs) const
 

Detailed Description

Definition at line 97 of file G4ModelingParameters.hh.

Constructor & Destructor Documentation

◆ PVPointerCopyNo()

G4ModelingParameters::PVPointerCopyNo::PVPointerCopyNo ( G4VPhysicalVolume pPV,
G4int  copyNo 
)
inline

Definition at line 100 of file G4ModelingParameters.hh.

101 : fpPV(pPV), fCopyNo(copyNo) {}

Member Function Documentation

◆ GetCopyNo()

G4int G4ModelingParameters::PVPointerCopyNo::GetCopyNo ( ) const
inline

Definition at line 104 of file G4ModelingParameters.hh.

104{return fCopyNo;}

◆ GetName()

const G4String & G4ModelingParameters::PVPointerCopyNo::GetName ( ) const

Definition at line 361 of file G4ModelingParameters.cc.

362{
363 return fpPV->GetName();
364}
const G4String & GetName() const

◆ GetPVPointer()

const G4VPhysicalVolume * G4ModelingParameters::PVPointerCopyNo::GetPVPointer ( ) const
inline

Definition at line 103 of file G4ModelingParameters.hh.

103{return fpPV;}

◆ operator!=()

G4bool G4ModelingParameters::PVPointerCopyNo::operator!= ( const PVPointerCopyNo rhs) const

Definition at line 366 of file G4ModelingParameters.cc.

368{
369 if (fpPV != rhs.fpPV) return true;
370 if (fCopyNo != rhs.fCopyNo) return true;
371 return false;
372}

Referenced by operator==().

◆ operator==()

G4bool G4ModelingParameters::PVPointerCopyNo::operator== ( const PVPointerCopyNo rhs) const
inline

Definition at line 106 of file G4ModelingParameters.hh.

106{return !operator!=(rhs);}
G4bool operator!=(const PVPointerCopyNo &) const

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