Rev 34 | Rev 39 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 34 | Rev 35 | ||
---|---|---|---|
Line 29... | Line 29... | ||
29 | #define MAXDATA 16 |
29 | #define MAXDATA 16 |
30 | #define NCH 64 |
30 | #define NCH 64 |
31 | #define TDC_BIN 1.0416 // 1 TDC bin in ns |
31 | #define TDC_BIN 1.0416 // 1 TDC bin in ns |
32 | #define MIKRO_BIN 0.49609/1000. //1 mikro step in mm; stage MM3MF |
32 | #define MIKRO_BIN 0.49609/1000. //1 mikro step in mm; stage MM3MF |
33 | #define OFFSETX 5200 // Right edge of SiPM+Lightguide |
33 | #define OFFSETX 5200 // Right edge of SiPM+Lightguide |
34 | #define OFFSETY |
34 | #define OFFSETY 5300 // Lower edge of SiPM+Lightguide |
35 | 35 | ||
36 | #define RUNREC_ID 1 |
36 | #define RUNREC_ID 1 |
37 | #define ENDREC_ID 2 |
37 | #define ENDREC_ID 2 |
38 | #define POSREC_ID 3 |
38 | #define POSREC_ID 3 |
39 | #define EVTREC_ID 4 |
39 | #define EVTREC_ID 4 |
Line 369... | Line 369... | ||
369 | double tdcmax=tdcOffset[channel] + tdcCut; |
369 | double tdcmax=tdcOffset[channel] + tdcCut; |
370 | double time = data*TDC_BIN; |
370 | double time = data*TDC_BIN; |
371 | if(time >= tdcmin && time <= tdcmax) { |
371 | if(time >= tdcmin && time <= tdcmax) { |
372 | h_correctedTDC->Fill((time - tdcOffset[channel]), channel); |
372 | h_correctedTDC->Fill((time - tdcOffset[channel]), channel); |
373 | hnhitsx[channel]->Fill((pos.xset - OFFSETX) * MIKRO_BIN); |
373 | hnhitsx[channel]->Fill((pos.xset - OFFSETX) * MIKRO_BIN); |
374 | hnhitsy[channel]->Fill((pos.yset - OFFSETY) * MIKRO_BIN); |
374 | hnhitsy[channel]->Fill((pos.yset - OFFSETY) * MIKRO_BIN); |
375 | h2d[channel]->Fill((pos.xset - OFFSETX) * MIKRO_BIN, (pos.yset - OFFSETY) * MIKRO_BIN); |
- | |
376 | //h_threshold->Fill(channel, thr.threshold); |
375 | //h_threshold->Fill(channel, thr.threshold); |
377 |
|
376 | if (position(pos.xset-OFFSETX, pos.yset-OFFSETY, channel)) { |
- | 377 | h2d[channel]->Fill((pos.xset - OFFSETX) * MIKRO_BIN, (pos.yset - OFFSETY) * MIKRO_BIN); |
|
378 |
|
378 | } |
379 | } |
379 | } |
380 | //gV673A->Fill(data,channel); |
380 | //gV673A->Fill(data,channel); |
381 | //gsumV673A[channel/16]->Fill(data); |
381 | //gsumV673A[channel/16]->Fill(data); |
382 | } |
382 | } |
383 | } |
383 | } |