30,8 → 30,8 |
#define NCH 64 |
#define TDC_BIN 1.0416 // 1 TDC bin in ns |
#define MIKRO_BIN 0.49609/1000. //1 mikro step in mm; stage MM3MF |
#define OFFSETX 4800 // Right edge of SiPM+Lightguide |
#define OFFSETY 3400 // Lower edge of SiPM+Lightguide |
#define OFFSETX 15400 // Right edge of SiPM+Lightguide |
#define OFFSETY 6400 // Lower edge of SiPM+Lightguide |
|
#define RUNREC_ID 1 |
#define ENDREC_ID 2 |
103,7 → 103,7 |
//Chanel information |
|
double tdcOffset[NCH]; |
sprintf(fullname, "d2r.ini"); |
sprintf(fullname, "sipmScan.ini"); |
if( (fp=fopen(fullname, "rt")) == NULL ) |
printf("Cannot open pad centers file %s !!!\n", fullname); |
else { |
374,9 → 374,9 |
hnhitsx[channel]->Fill((pos.xset - OFFSETX) * MIKRO_BIN); |
hnhitsy[channel]->Fill((pos.yset - OFFSETY) * MIKRO_BIN); |
//h_threshold->Fill(channel, thr.threshold); |
if (position(pos.xset-OFFSETX, pos.yset-OFFSETY, channel)) { |
//if (position(pos.xset-OFFSETX, pos.yset-OFFSETY, channel)) { |
h2d[channel]->Fill((pos.xset - OFFSETX) * MIKRO_BIN, (pos.yset - OFFSETY) * MIKRO_BIN); |
} |
//} |
} |
//gV673A->Fill(data,channel); |
//gsumV673A[channel/16]->Fill(data); |