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

#include <G4ModelingParameters.hh>

Public Member Functions

 PVNameCopyNo (G4String name, G4int copyNo)
 
const G4StringGetName () const
 
G4int GetCopyNo () const
 
G4bool operator!= (const PVNameCopyNo &) const
 
G4bool operator== (const PVNameCopyNo &rhs) const
 

Detailed Description

Definition at line 86 of file G4ModelingParameters.hh.

Constructor & Destructor Documentation

◆ PVNameCopyNo()

G4ModelingParameters::PVNameCopyNo::PVNameCopyNo ( G4String name,
G4int copyNo )
inline

Definition at line 89 of file G4ModelingParameters.hh.

90 : fName(name), fCopyNo(copyNo) {}

Member Function Documentation

◆ GetCopyNo()

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

Definition at line 92 of file G4ModelingParameters.hh.

92{return fCopyNo;}

◆ GetName()

const G4String & G4ModelingParameters::PVNameCopyNo::GetName ( ) const
inline

Definition at line 91 of file G4ModelingParameters.hh.

91{return fName;}

◆ operator!=()

G4bool G4ModelingParameters::PVNameCopyNo::operator!= ( const PVNameCopyNo & rhs) const

Definition at line 364 of file G4ModelingParameters.cc.

366{
367 if (fName != rhs.fName) return true;
368 if (fCopyNo != rhs.fCopyNo) return true;
369 return false;
370}

Referenced by operator==().

◆ operator==()

G4bool G4ModelingParameters::PVNameCopyNo::operator== ( const PVNameCopyNo & rhs) const
inline

Definition at line 94 of file G4ModelingParameters.hh.

94{return !operator!=(rhs);}
G4bool operator!=(const PVNameCopyNo &) const

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