58 Error(
"Calculate() - ipre==0.");
60 G4double ipre_over_ipost = ipre/ipost;
61 if ((ipre_over_ipost<0.25 || ipre_over_ipost> 4) && !fWorned) {
62 std::ostringstream os;
63 os <<
"Calculate() - ipre_over_ipost ! in [0.25, 4]." <<
G4endl
64 <<
"ipre_over_ipost = " << ipre_over_ipost <<
".";
67 if (ipre_over_ipost<=0) {
68 Error(
"Calculate() - ipre_over_ipost<=0.");
72 Error(
"Calculate() - iniitweight<= 0. found!");
79 nw.
fN =
static_cast<G4int>(inv);
80 nw.
fW = init_w * ipre_over_ipost;
83 if (ipre_over_ipost<1) {
97 else if (ipre_over_ipost>1) {
115void G4ImportanceAlgorithm::Error(
const G4String &msg)
const
121void G4ImportanceAlgorithm::Warning(
const G4String &msg)
const
virtual ~G4ImportanceAlgorithm()
virtual G4Nsplit_Weight Calculate(G4double ipre, G4double ipost, G4double init_w) const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)