CDC run 2551 drift time fits
From GlueXWiki
Fit function: TF1 *g2 = new TF1("g2","[0] * (1 + [1]*exp(([3]-x)/[2]) + [7]*exp(([3]-x)/[8]) ) / ( (1+exp(([3]-x)/[5])) * (1+exp((x-[4])/[6])) )"); [0] overall height [1] amplitude of 1st exp contrib to peak [2] first exp fall-off [3] t0 [4] tmax [5] slope up of t0 edge [6] slope down of tmax edge [7] amplitude of 2nd exp contrib to peak [8] second exp fall-off
Fit statistics from first pass over data with ~5k counts per straw
Second pass over data for straws with a successful fit, tmax edge slope < 35 and number of hits > 100
T->Scan("N","par6<35&&!status&&entries>100"); >batch.sh