84,18 → 84,23 |
|
double padCenter[NCH][2]; |
|
// Test if the hit(x,y) lies inside the coordinates of the channel |
// file with pad centers (without offset) should be provided |
int analysisScan(char* dfile0="test", double c_tdcOffset=97, double tdcCut=5.0, int dbg=0); |
|
int position(int, int, int); |
|
// ------------------------------------------------------------------------------ |
|
int analysisScan(char* dfile0="test", double c_tdcOffset=97, double tdcCut=5.0, int dbg=0) |
int main() |
{ |
analysisScan(); |
return 0; |
} |
|
//const double c_tdcOffset = +98*TDC_BIN; // ns |
c_tdcOffset *= TDC_BIN; //ns |
|
int analysisScan(char* dfile0, double c_tdcOffset, double tdcCut, int dbg) |
{ |
|
//const double c_tdcOffset = +97*TDC_BIN; // ns, SiPM4 |
c_tdcOffset *= TDC_BIN; |
printf(" Data to root conversion program\nUsage:\nd2r(input file name <without .dat>, debug on/off, TDC cut +-[ns])\n\n"); |
printf(" OFFSETS: \n x: %d\n y: %d\n t:%f\n", OFFSETX, OFFSETY, c_tdcOffset); |
|