Rev 182 | Rev 199 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 182 | Rev 192 | ||
---|---|---|---|
Line 236... | Line 236... | ||
236 | tccalib[ich]=t[(DWIDTH-trgcell)%DWIDTH]; |
236 | tccalib[ich]=t[(DWIDTH-trgcell)%DWIDTH]; |
237 | 237 | ||
238 | for (i=0; i<DWIDTH; i++) { |
238 | for (i=0; i<DWIDTH; i++) { |
239 | if (version) t[i]-=(tccalib[ich]-tccalib[0]); // assume ich 0 is connected and always first in the data |
239 | if (version) t[i]-=(tccalib[ich]-tccalib[0]); // assume ich 0 is connected and always first in the data |
240 | y[i]=-0.5+(float)ichdat[ich][i]/0xFFFF; |
240 | y[i]=-0.5+(float)ichdat[ich][i]/0xFFFF; |
241 | if (version) y[i]+=evrec.rc; |
241 | if (version) y[i]+=evrec.rc/1000.; |
242 | h2_dpo[ich]->Fill(t[i],y[i]); |
242 | h2_dpo[ich]->Fill(t[i],y[i]); |
243 | gr_wfm[ich]->SetPoint(i,t[i],y[i]+0.05*(ich-1)); |
243 | gr_wfm[ich]->SetPoint(i,t[i],y[i]+0.05*(ich-1)); |
244 | } |
244 | } |
245 | 245 | ||
246 | 246 |