65 if (&right==
this)
return *
this;
77 return (
this == &right);
83 return (
this != &right);
88 static const G4String gamma (
"gamma");
89 static const G4String electron(
"e-");
90 static const G4String positron(
"e+");
91 static const G4String proton(
"proton");
94 if ( name == gamma ) { index = 0; }
95 else if ( name == electron ) { index = 1; }
96 else if ( name == positron ) { index = 2; }
97 else if ( name == proton ) { index = 3; }
130 G4int vSize = cut.size();
136 G4cerr <<
"G4ProductionCuts::SetProductionCuts ";
137 G4cerr <<
" The size of given cut value vector [=" << vSize <<
"] "
138 <<
" is not consistent with number of CutIndex [="
142 G4Exception(
"G4ProductionCuts::SetProductionCuts ",
144 JustWarning,
"Given vector size is inconsistent ");
147 for(
G4int i = 0; (i<vSize ); ++i)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4GLOB_DLL std::ostream G4cerr
const G4String & GetParticleName() const
static G4ProductionCutsTable * GetProductionCutsTable()
G4bool operator!=(const G4ProductionCuts &right) const
G4ProductionCuts & operator=(const G4ProductionCuts &right)
std::vector< G4double > fRangeCuts
static G4int GetIndex(const G4String &name)
virtual ~G4ProductionCuts()
void SetProductionCuts(std::vector< G4double > &)
G4bool operator==(const G4ProductionCuts &right) const