65 if (&right==
this)
return *
this;
78 return (
this == &right);
84 return (
this != &right);
96 if ( name == gamma ) { index = 0; }
97 else if ( name == electron ) { index = 1; }
98 else if ( name == positron ) { index = 2; }
99 else if ( name == proton ) { index = 3; }
110 if(gammaDef==0 && ptcl->
GetParticleName()==
"gamma") { gammaDef = ptcl; }
113 if(protonDef==0 && ptcl->
GetParticleName()==
"proton") { protonDef = ptcl; }
116 if(ptcl==gammaDef) { index = 0; }
117 else if(ptcl==electDef) { index = 1; }
118 else if(ptcl==positDef) { index = 2; }
119 else if(ptcl==protonDef) { index = 3; }
128 G4int vSize = cut.size();
132 G4cerr <<
"G4ProductionCuts::SetProductionCuts ";
133 G4cerr <<
" The size of given cut value vector [=" << vSize <<
"] "
134 <<
" is not consitent with number of CutIndex [="
138 G4Exception(
"G4ProductionCuts::SetProductionCuts ",
143 for(
G4int i = 0; (i<vSize ); i++) {
G4DLLIMPORT std::ostream G4cerr
const G4String & GetParticleName() const
static G4ProductionCutsTable * GetProductionCutsTable()
G4int operator!=(const G4ProductionCuts &right) const
G4int 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 > &)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)