| 93,7 → 93,7 |
| |
| int analysisThreshold(char* dfile0="test", int dbg=0, double tdcCut=5.0) |
| { |
| const double c_tdcOffset = 368*TDC_BIN; // ns |
| const double c_tdcOffset = 1; // ns |
| |
| printf(" Data to root conversion program\nUsage:\nd2r(input file name <without.dat>, debug on/off, TDC cut +-[ns])\n\n"); |
| |
| 230,7 → 230,7 |
| h_correctedTDC = (TH3F*) gROOT->FindObject("h_correctedTDC"); |
| if (h_correctedTDC) delete h_correctedTDC; |
| nSteps = (run.thUp - run.thLow)/double(run.thStep) + 1; |
| if (dbg) printf("nSteps %f\n", nSteps); |
| if (dbg) printf("nSteps %d\n", nSteps); |
| h_correctedTDC = new TH3F("h_correctedTDC",";SiPM channel; ASD threshold [V]; t [ns]", |
| NCH, |
| -0.5, |
| 238,9 → 238,9 |
| nSteps, |
| (run.thLow - 0.5*run.thStep)/1000.0, |
| (run.thUp + 0.5*run.thStep)/1000.0, |
| 2*tdcCut+1, |
| (-tdcCut - 0.5)*TDC_BIN, |
| (tdcCut + 0.5)*TDC_BIN); |
| 2*tdcCut*TDC_BIN, |
| -tdcCut*TDC_BIN, |
| tdcCut*TDC_BIN); |
| //TH1F* gsumV673A[NCH/16] = new TH1F(hn,hname,256,-0.5,255.5); |
| for(int i=0; i<NCH; i++) { |
| /* |