version HiLumRead2014_05_20.C ***** KNOWN ISSUES ***** 1. Scrambled data in structure struct miniEventHeader { Int_t burst; // burst number in run (some may be missing due to // missing or rejected GADC data) Int_t event; // event# in run Int_t burstEvent; // event# in burst Int_t scaler10mhz; // 10MHz counter Int_t scaler6mhz; // 6MHz (165ns, accelerator RF) counter Int_t firstGated; // same as firstGADCsample above...??? Bool_t isEmpty; // no activity in S123 and Cherenkov for low rate, // no activity in (some of) modules and Cherenkov for high rate Bool_t notEmpty; // some activity detected! Bool_t S123inBeam; // S123 are placed in the beam Bool_t filledSegment; // event is in 'active' part of GatedADC record Double_t RFperiod; // RF A*sin(omega*(t+t0)) fit Double_t RFfreq; // RF A*sin(omega*(t+t0)) fit Double_t RFamp; // RF A*sin(omega*(t+t0)) fit Double_t TimeGlobal; // RF A*sin(omega*(t+t0)) fit Double_t SignalFactor;// effective signal/noise ratio in GlobalPhase finder .... } - Starting with RFperiod and down, all values are severed. - Data in .root files looks good when using TBrowser; - Data became ruined immediately after the "eventTree->GetEntry(iEnt);" statement; - All other trees and branches were taken out of code - no effect; 2. Abnormal negative amplitudes in eventEssentials.MPICevent[i] (and S123 once in a while). - Rare but annoying occasions. - Will check the reconstruction of amplitude next week. - Most likely caused by 'local' (way too tight?!) baseline subtraction method, when the bunch comes in wrong time relative to RF clock. - Such bunches must be identified by pulse position and rejected as BAD! - note that in the example below, that S1, S2, S3 also are negative. - "drawing" following the Example explains source of the trouble. Example: --------- samp# 0 T= 0.0ns GADC= 1.3 in=0 samp# 1 T= 165.0ns GADC= 10.3 in=0 samp# 2 T= 330.0ns GADC= 6.3 in=0 samp# 3 T= 495.0ns GADC= -2.7 in=0 samp# 4 T= 660.0ns GADC= -6.7 in=0 samp# 5 T= 825.0ns GADC= 61.3 in=0 samp# 6 T= 990.0ns GADC= 14.3 in=0 samp# 7 T=1155.0ns GADC= 3.3 in=1 MPIC= 3.2 tracks: S123=( -0.0 0.0 -0.0) N= 0 act=2 samp# 8 T=1320.0ns GADC= -5.7 in=1 MPIC= 0.4 tracks: S123=( 1.6 1.8 1.8) N= 2 act=1 samp# 9 T=1485.0ns GADC= -11.7 in=1 MPIC= 2.3 tracks: S123=( -0.0 0.0 -0.0) N= 0 act=0 samp#10 T=1650.0ns GADC= -7.7 in=1 MPIC= 0.6 tracks: S123=( -0.0 -0.0 -0.0) N= 0 act=0 samp#11 T=1815.0ns GADC= 5.3 in=1 MPIC= 1.3 tracks: S123=( 0.0 -0.0 -0.0) N= 0 act=0 samp#12 T=1980.0ns GADC= 5.3 in=1 MPIC= 3.9 tracks: S123=( -0.0 0.0 -0.0) N= 0 act=2 samp#13 T=2145.0ns GADC= -6.7 in=1 MPIC= 2.4 tracks: S123=( 0.0 0.0 -0.0) N= 0 act=2 samp#14 T=2310.0ns GADC= -10.7 in=1 MPIC= -1.6 tracks: S123=( 0.0 -0.0 0.0) N= 0 act=2 samp#15 T=2475.0ns GADC= -1.7 in=1 MPIC= -3.9 tracks: S123=( 0.0 0.0 0.0) N= 0 act=2 samp#16 T=2640.0ns GADC= 3.3 in=1 MPIC= -1.2 tracks: S123=( 0.0 -0.0 0.0) N= 0 act=2 samp#17 T=2805.0ns GADC= -7.7 in=1 MPIC= 2.0 tracks: S123=( 0.0 -0.0 -0.0) N= 0 act=2 samp#18 T=2970.0ns GADC= -12.7 in=1 MPIC= 1.8 tracks: S123=( -0.0 0.0 -0.0) N= 0 act=1 samp#19 T=3135.0ns GADC= -3.7 in=1 MPIC= 9.5 tracks: S123=( 1.7 1.8 2.3) N= 2 act=1 samp#20 T=3300.0ns GADC= 113.3 in=1 MPIC= 124.5 tracks: S123=( 1.7 2.2 0.8) N= 1 act=1 samp#21 T=3465.0ns GADC= 16.3 in=1 MPIC= 2.5 tracks: S123=( -0.0 -0.0 -0.0) N= 0 act=0 samp#22 T=3630.0ns GADC= 16.3 in=1 MPIC= -1.6 tracks: S123=( 0.0 -0.0 -0.0) N= 0 act=0 samp#23 T=3795.0ns GADC= -3.7 in=1 MPIC= 0.2 tracks: S123=( -0.0 -0.0 0.0) N= 0 act=0 samp#24 T=3960.0ns GADC= -0.6 in=1 MPIC= 1.1 tracks: S123=( 0.0 0.0 -0.0) N= 0 act=2 samp#25 T=4125.0ns GADC= -6.6 in=1 MPIC= -0.2 tracks: S123=( 0.0 0.0 0.0) N= 0 act=2 samp#26 T=4290.0ns GADC= -3.6 in=1 MPIC= 1.4 tracks: S123=( 0.0 0.0 -0.0) N= 0 act=2 samp#27 T=4455.0ns GADC= 4.4 in=1 MPIC= 3.6 tracks: S123=( 0.0 -0.0 0.0) N= 0 act=2 samp#28 T=4620.0ns GADC= -6.6 in=1 MPIC= 3.2 tracks: S123=( 0.0 0.0 0.0) N= 0 act=2 samp#29 T=4785.0ns GADC= 9.4 in=1 MPIC= -97.3 tracks: S123=( -0.7 -6.3 -3.5) N= 0 act=1 NEGATIVE samp#30 T=4950.0ns GADC= -6.6 in=1 MPIC= 4.7 tracks: S123=( -0.0 -0.0 -0.0) N= 0 act=0 samp#31 T=5115.0ns GADC= 6.4 in=1 MPIC= 2.5 tracks: S123=( 0.0 -0.1 -0.0) N= 0 act=0 samp#32 T=5280.0ns GADC= 4.4 in=1 MPIC= 1.4 tracks: S123=( -0.0 0.0 0.0) N= 0 act=0 samp#33 T=5445.0ns GADC= 0.4 in=1 MPIC= -1.0 tracks: S123=( 0.0 -0.0 -0.0) N= 0 act=2 samp#34 T=5610.0ns GADC= 0.4 in=1 MPIC= 2.2 tracks: S123=( -0.0 0.0 -0.0) N= 0 act=2 samp#35 T=5775.0ns GADC= 2.4 in=1 MPIC= 2.9 tracks: S123=( 0.0 -0.0 0.0) N= 0 act=2 samp#36 T=5940.0ns GADC= 1.4 in=0 samp#37 T=6105.0ns GADC= -2.6 in=0 Good signal . .. . . RF . . RF "RF to RF" = 165ns ........... .......... | ---- +++++++ ---- | intervals "---" constitute baseline, "++++" - signal 35ns 70ns 35ns Negative signal! Seen those occasionnaly, shall be removed by timing criteria (half-rise time mark). . .. . . RF . . RF "RF to RF" = 165ns ............... .......... | ---- +++++++ ---- | intervals "---" constitute baseline, "++++" - signal 35ns 70ns 35ns