60 Error(
"Calculate() - ipre==0.");
62 G4double ipre_over_ipost = ipre/ipost;
63 if ((ipre_over_ipost<0.25 || ipre_over_ipost> 4) && !fWarned)
65 std::ostringstream os;
66 os <<
"Calculate() - ipre_over_ipost ! in [0.25, 4]." <<
G4endl
67 <<
"ipre_over_ipost = " << ipre_over_ipost <<
".";
70 if (ipre_over_ipost<=0)
72 Error(
"Calculate() - ipre_over_ipost<=0.");
77 Error(
"Calculate() - iniitweight<= 0. found!");
84 nw.
fN =
static_cast<G4int>(inv);
85 nw.
fW = init_w * ipre_over_ipost;
88 if (ipre_over_ipost<1)
103 else if (ipre_over_ipost>1)
126void G4ImportanceAlgorithm::Error(
const G4String& msg)
const
132void G4ImportanceAlgorithm::Warning(
const G4String& msg)
const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
#define G4MUTEX_INITIALIZER
~G4ImportanceAlgorithm() override
G4Nsplit_Weight Calculate(G4double ipre, G4double ipost, G4double init_w) const override