Rev 90 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 90 | Rev 91 | ||
|---|---|---|---|
| Line 82... | Line 82... | ||
| 82 | THRREC *thrrec; |
82 | THRREC *thrrec; |
| 83 | THRREC thr; |
83 | THRREC thr; |
| 84 | 84 | ||
| 85 | double padCenter[NCH][2]; |
85 | double padCenter[NCH][2]; |
| 86 | 86 | ||
| 87 | // Test if the hit(x,y) lies inside the coordinates of the channel |
- | |
| 88 |
|
87 | int analysisScan(char* dfile0="test", double c_tdcOffset=97, double tdcCut=5.0, int dbg=0); |
| - | 88 | ||
| 89 | int position(int, int, int); |
89 | int position(int, int, int); |
| 90 | 90 | ||
| 91 | // ------------------------------------------------------------------------------ |
91 | // ------------------------------------------------------------------------------ |
| 92 | 92 | ||
| - | 93 | int main() |
|
| - | 94 | { |
|
| - | 95 | analysisScan(); |
|
| - | 96 | return 0; |
|
| - | 97 | } |
|
| - | 98 | ||
| 93 | int analysisScan(char* |
99 | int analysisScan(char* dfile0, double c_tdcOffset, double tdcCut, int dbg) |
| 94 | { |
100 | { |
| 95 | 101 | ||
| 96 | //const double c_tdcOffset = + |
102 | //const double c_tdcOffset = +97*TDC_BIN; // ns, SiPM4 |
| 97 | c_tdcOffset *= TDC_BIN; |
103 | c_tdcOffset *= TDC_BIN; |
| 98 | - | ||
| 99 | printf(" Data to root conversion program\nUsage:\nd2r(input file name <without .dat>, debug on/off, TDC cut +-[ns])\n\n"); |
104 | printf(" Data to root conversion program\nUsage:\nd2r(input file name <without .dat>, debug on/off, TDC cut +-[ns])\n\n"); |
| 100 | printf(" OFFSETS: \n x: %d\n y: %d\n t:%f\n", OFFSETX, OFFSETY, c_tdcOffset); |
105 | printf(" OFFSETS: \n x: %d\n y: %d\n t:%f\n", OFFSETX, OFFSETY, c_tdcOffset); |
| 101 | 106 | ||
| 102 | char fullname[256]; |
107 | char fullname[256]; |
| 103 | char sbuff[256]; |
108 | char sbuff[256]; |