Difference between revisions of "CDC prototype more on timing"

From GlueXWiki
Jump to: navigation, search
Line 68: Line 68:
 
|}
 
|}
 
{| border="0" cellpadding="2"|width="900pt"|
 
{| border="0" cellpadding="2"|width="900pt"|
[[Image:run_31716_track54_le1_p3_tz6_tfix1_thr5_xchunks2.png|thumb|900px|Ch 20 (straw 17) resolution 2100V thr 5 and 1, tz 6ns, early hits moved to t0+1ns ]]
 
|}
 
{| border="0" cellpadding="2"|width="900pt"|
 
[[Image:run_31716_track54_le1_p3_tz6_tfix1_thr5_xchunks3.png|thumb|900px|Ch 20 (straw 17) resolution 2100V thr 5 and 1, tz 6ns, early hits moved to t0+1ns ]]
 
|}
 
 
 
{| border="0" cellpadding="2" align="left"
 
|width="300pt"|
 
[[Image:run_31716_track54_le1_p3_tz6_tfix1_thr5_xchunks1.png|thumb|300px|Ch 20 (straw 17) resolution 2100V thr 5 and 1, tz 6ns, early hits moved to t0+1ns ]]
 
|}
 
 
{| border="0" cellpadding="2" align="left"
 
|width="900pt"|
 
 
[[Image:run_31716_track54_le1_p3_tz6_tfix1_thr5_xchunks2.png|thumb|900px|Ch 20 (straw 17) resolution 2100V thr 5 and 1, tz 6ns, early hits moved to t0+1ns ]]
 
[[Image:run_31716_track54_le1_p3_tz6_tfix1_thr5_xchunks2.png|thumb|900px|Ch 20 (straw 17) resolution 2100V thr 5 and 1, tz 6ns, early hits moved to t0+1ns ]]
 
|-
 
|-
 
[[Image:run_31716_track54_le1_p3_tz6_tfix1_thr5_xchunks3.png|thumb|900px|Ch 20 (straw 17) resolution 2100V thr 5 and 1, tz 6ns, early hits moved to t0+1ns ]]
 
[[Image:run_31716_track54_le1_p3_tz6_tfix1_thr5_xchunks3.png|thumb|900px|Ch 20 (straw 17) resolution 2100V thr 5 and 1, tz 6ns, early hits moved to t0+1ns ]]
 
|}
 
|}

Revision as of 14:30, 24 October 2011

Current analysis code procedure:

  1. Calculate s.d. of pedestal for first 100 samples, 100 events, save for later use (sigma)

For each event...

  1. Calculate mean pedestal over 100 samples ending 10 samples before the trigger time (every 4th of these samples also works)
  2. Search forward for sample x where adc value > high threshold n1 sigma
  3. Step back p samples to sample x-p, take adc value of sample x-p to be local pedestal value
  4. Subtract local pedestal value from a number (10+p) of samples starting at sample x-(p+5) to the LE algo for unsampling
  5. Search through unsampled data, start with last sample (highest adc value) search backwards until adc value < low threshold n2 sigma
  6. Calculate time where interpolated unsampled data cross n2 sigma, and add to time of sample x-p, this is the estimated drift time.

Unsampled adc values (z) using different values for p (local pedestal lead time ahead of first/high threshold crossing) for high threshold of 5 sigma. x-axis=0 corresponds to sample x-p-4.2, x-xaxis=5 corresponds to 1+x-p-4.2, etc. 5 unsampled values per 8ns sample, all events for ch17 (central straw) included (no tracking)

p=4
p=5
p=2
p=3

High threshold 4 sigma

4 sigma, p=2
4 sigma, p=3

High threshold 6 sigma

6 sigma, p=2
6 sigma, p=3


Previous best resolutions for 50/50 gas mix using single threshold of 4sigma:
Resolutions for ch20 ignoring hits before tzero, using 50/50 mix in Garfield and wire diameter of 17.8um instead of 20um, 2100V (left) and 2050V (right).

50/50 Ar/CO2 gas mix Resolution vs fitted drift distance, hit thr=4sigma dt=7ns hits before tzero ignored
50/50 Ar/CO2 gas mix Resolution vs fitted drift distance, hit thr=4sigma dt=10ns hits before tzero ignored

Current best resolutions for 50/50 gas mix and 17.8um wire, using high threshold 5sigma followed by low threshold 1sigma, p=3
Ignoring hits before tzero (tzero = fitted value + dt, dt=6ns)

Ch 20 (straw 17) resolution 2100V thr 5 and 1, tz 6ns, early hits ignored
Ch 20 (straw 17) resolution 2100V thr 5 and 1, tz 6ns, early hits ignored
Ch 20 (straw 17) resolution 2100V thr 5 and 1, tz 6ns, early hits ignored

Moving early hits to tzero+1ns

Ch 20 (straw 17) resolution 2100V thr 5 and 1, tz 6ns, early hits moved to t0+1ns
Ch 20 (straw 17) resolution 2100V thr 5 and 1, tz 6ns, early hits moved to t0+1ns
Ch 20 (straw 17) resolution 2100V thr 5 and 1, tz 6ns, early hits moved to t0+1ns