38 #ifdef G4MULTITHREADED
56 #ifdef G4MULTITHREADED
57 G4MUTEXLOCK(&G4ImportanceAlgorithm::ImportanceMutex);
65 Error(
"Calculate() - ipre==0.");
67 G4double ipre_over_ipost = ipre/ipost;
68 if ((ipre_over_ipost<0.25 || ipre_over_ipost> 4) && !
fWarned)
70 std::ostringstream os;
71 os <<
"Calculate() - ipre_over_ipost ! in [0.25, 4]." <<
G4endl
72 <<
"ipre_over_ipost = " << ipre_over_ipost <<
".";
75 if (ipre_over_ipost<=0)
77 Error(
"Calculate() - ipre_over_ipost<=0.");
82 Error(
"Calculate() - iniitweight<= 0. found!");
89 nw.
fN =
static_cast<G4int>(inv);
90 nw.
fW = init_w * ipre_over_ipost;
93 if (ipre_over_ipost<1)
95 if ( static_cast<G4double>(nw.
fN) != inv)
108 else if (ipre_over_ipost>1)
126 #ifdef G4MULTITHREADED