Subversion Repositories f9daq

Compare Revisions

Ignore whitespace Rev 53 → Rev 54

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