Geant4 11.1.1
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 384 of file G4ModelingParameters.cc.

385{
386 return fpPV->GetName();
387}
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 389 of file G4ModelingParameters.cc.

391{
392 if (fpPV != rhs.fpPV) return true;
393 if (fCopyNo != rhs.fCopyNo) return true;
394 return false;
395}

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: