Subversion Repositories f9daq

Compare Revisions

Ignore whitespace Rev 54 → Rev 53

/lightguide/trunk/src/raySimulator.cpp
153,7 → 153,7
printf("Acceptance\n");
}
//-----------------------------------------------------------------------------
void PrintGuideStat(double acceptance)
void PrintGuideStat(CDetector *detector, double n_in = 1)
{
/*int n_active = (detector->GetHActive())->GetEntries();
int n_enter = (detector->GetLG())->GetEnteranceHits();
168,9 → 168,8
printf("%5.1lf\n", 100.0*izkoristek);*/
//double n_active = (detector->GetHActive())->GetEntries();
//double r_acc = 100.0 * n_active / n_in;
double r_acc = 100.0 * acceptance;
double n_active = (detector->GetHActive())->GetEntries();
double r_acc = 100.0 * n_active / n_in;
printf("%7.3lf\n", r_acc);
}
//-----------------------------------------------------------------------------
269,8 → 268,8
detector->Propagate(*ray0, ray1, show_3d);
else
detector->Propagate(*ray0, ray1, 0);
//delete ray0;
//delete ray1;
delete ray0;
delete ray1;
}
return (detector->GetHActive())->GetEntries() / (double)NN;
345,8 → 344,8
detector->Propagate(*ray0, ray1, 0);
}
//delete ray0;
//delete ray1;
delete ray0;
delete ray1;
}
if(show_rand) {