89 Xres += Wij(0,0) * evc->elements[j].voxel->Value * 40000;
98 template <
class EventT>
101 static void evaluate(EventT *evc, Scalarf nominalp){
102 float cw_A = 1.42857;
103 float cw_epsilon = 50;
106 for (
int j = 0; j < evc->elements.size(); ++j)
108 Wij = evc->elements[j].Wij;
113 X0_tot += Wij(0,0) * evc->elements[j].voxel->Value * 40000;
116 float _pw = cw_A * (nominalp) *
117 sqrt( cw_epsilon / ( X0_tot + cw_epsilon ));
118 for (
int i = 0; i < evc->elements.size(); ++i )
120 evc->elements[i].pw = _pw;
128 #endif // IBPWEIGHTALGORITHMS_H
Definition: IBPWeightAlgorithms.h:99
static void evaluate(EventT *evc, Scalarf nominalp)
Definition: IBPWeightAlgorithms.h:101