60 if (&right==
this)
return *
this;
72 return (
this == &right);
77 return (
this != &right);
89 std::ostringstream os;
90 os <<
"Setting cuts for particles other than photon, e-, e+ or proton has "
92 G4Exception(
"G4ProductionCuts::SetProductionCut",
"ProcCuts110",
150 if ( name ==
"gamma" ) { index = 0; }
151 else if ( name ==
"e-" ) { index = 1; }
152 else if ( name ==
"e+" ) { index = 2; }
153 else if ( name ==
"proton" ) { index = 3; }
163 if (pdg == 22) { index = 0; }
164 else if (pdg == 11) { index = 1; }
165 else if (pdg == -11) { index = 2; }
166 else if (pdg == 2212) { index = 3; }
179 G4cout <<
"G4ProductionCuts::SetProductionCuts ";
180 G4cout <<
" The size of given cut value vector [=" << vSize <<
"] "
181 <<
" is not consistent with number of CutIndex [="
185 G4Exception(
"G4ProductionCuts::SetProductionCuts ",
187 JustWarning,
"Given vector size is inconsistent ");
190 for(
G4int i = 0; i<vSize; ++i)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4GLOB_DLL std::ostream G4cout
G4int GetPDGEncoding() const
static G4ProductionCutsTable * GetProductionCutsTable()
G4bool operator!=(const G4ProductionCuts &right) const
G4bool IsModified() const
G4ProductionCuts & operator=(const G4ProductionCuts &right)
std::vector< G4double > fRangeCuts
void SetProductionCut(G4double cut, G4int index)
static G4int GetIndex(const G4String &name)
virtual ~G4ProductionCuts()
void PhysicsTableUpdated()
G4double GetProductionCut(G4int index) const
const std::vector< G4double > & GetProductionCuts() const
void SetProductionCuts(std::vector< G4double > &)
G4bool operator==(const G4ProductionCuts &right) const