Data analysis
ATLAS SCT hybrid - Measurement for Saclay Lab, January 2008
Basic steps how to evaluate data from test beam
The steps are mainly common for 1D (pixel) and 2D (strip) sensors. Format of DST is common for both and evaluated macros are partly the sames and parlty they are derivate. In text below many examples are from DEPFET test beam in January 2006 in DESY, Hamburg, Germany.
-
Reading of raw data format from test beam (only for experts)
-
Basic preprocessing of data to prepare them for any physicist users and non-programmers
-
Generation of DST data files with including some special information inside
-
Prepare basic set of macros to help non experts to work with DST
-
To do some special analysis on telescopes to support simulation results of quality of test beam geometry
-
DUT analysis:
-
Remove pedestal nad common noise of DUT
-
Find hits/clusters on DUT
-
Alignment of DUT and masking of bad channels
-
Residual plots of DUT
-
Efficiency of DUT, timing
-
Noise occupancy of DUT
-
Cluster size of DUT
-
Bias of DUT
-
Angle scans of DUT
-
Interstrip analysis of all before of DUT
-
Special analysis DAQ parameters of DUT
-
If it is possible to do analysis compare with simulation to find space resolution in DUT position
-
Laser tests
Raw data
Example (from DEPFET test beam in January 2006 in DESY, Hamburg, Germany) how to read source raw data file in ROOT include many more-less useful plots is on FirstRead.zip
Data preprocessing
Basic pre-processing of data include (more details, sources of theory and precise descriptions are on my lectures), there is shown example from DEPFET analysis:
-
precise telescope intersection point using Eta correction alghoritm (R. Turchetta: Spatial resolution of silicon microstrip detectors, Nuclear Instruments and Methods in Physics Research A335 (1993) 44-58 North-Holland, S. Straulino at al.: Spatial resolution of double-sided silicon microstrip detectors for the PAMELA apparatus, Nuclear Instruments and Methods in Physics Research A 556
(2006) 100–114)
-
telescope alignment was realized to find shift and rotation for each telescope plane, note that TMinuit class in ROOT was not working precisely if sharp cut for tracks was realized! Basic minimizing steps are:

-
particle track find for each event where in each axis was exactly one hit in each telescope detected (independent for each axis)
-
Chi2 for track was calculate
-
intersection with detector under test (DUT) was calculate
-
confidence and predicted region for estimation level 95% (2*sigma) was calculate in DUT position
Track descritption:
where x is corrected by alignment using equotions:
DST production
DST file was created by MakeNewDST_depfet.cpp, details of format are describe. Basic files are on http://ipnp.cz/kodys/depfet/TestbeamDESYJanuary2006/DST/
Basic macros for evaluation
Macros:
-
UpgreatDST_depfet.cpp
call .x UpgreatDST_depfet.cpp(RunNo)
functions: macro show content of some event, all histograms, example how to
write loop over some/all events, how to use tracking, how to find
intersection point in telescope plane and make residuals include alignment
information, how to open DST for append next histograms (danger for
non-experts)
-
LinearFit.cpp
content some functions for find track, using of this function is also
include: call .x LinearFit.cpp,
or it is also in macro UpgreatDST_depfet.cpp
Possible is also looking to ROOT DST files straight from command
line, there is example:
root [0] new TCanvas() //to create panel for looking plots
(class TCanvas*)0x5a3a168
root [1] TFile *f = new TFile("./dst/DST2116.root") //open DST file - in ROOT memory
root [2] DST->Draw("Channel2") //to show histogram of all telescopes - mixture of all (wrong)
root [3] DST->Draw("Channel2[0][1][1]") //to show histogram of first each hit in tel 1 axis 1
root [4] DST->Draw("Channel2[0][0][0]:Channel2[0][2][0]") //scater plot - correlations btw tel0 and tel2
root [5] DST->Draw("Channel2[0][0][0]:Channel2[0][2][0]","flag==1") //the same but only if exist track
root [6] DST->Draw("Channel2[0][0][0]:Channel2[0][0][1]","flag==1") //correlation btw axis0 and axis1 (hitmap)
root [7] DST->Draw("Channel2[0][1][1]","Channel2[0][1][1]<400&Channel2[0][1][1]>200&Flag=1") // hitmap in smaller region
root [8] DST->Show() //content of event 0
root [9] DST->Show(10) //content of event 10
Space precision in DUT
Special analysis for checking of precision of telescopes for
different cut applied to Chi2 histogram base on some theory
Using macros: UpgreatDST_depfet2.cpp,
DepfetTelEval.cpp, DepfetTelEval3.cpp
There was used two possible solutions:
-
telescope errors was set to value calculate base on theory
of Eta correction
-
telescope errors was set to constant value 12 um
Results: Telescope errors was set to value calculate
base on theory of Eta correction:
Chi2Cut: 10 30 50 70 100 %
Tel 0 Resolution at Ifinity Energy, Axis 0 : 2.0 3.6 5.2 5.9 6.2
Tel 0 Resolution at Ifinity Energy, Axis 1 : 4.8 6.7 7.3 7.2 7.0
Tel 1 Resolution at Ifinity Energy, Axis 0 : 4.2 5.9 6.8 6.7 6.9
Tel 1 Resolution at Ifinity Energy, Axis 1 : 1.1 2.8 4.6 5.4 5.8
Tel 2 Resolution at Ifinity Energy, Axis 0 : 1.9 3.3 5.0 5.6 6.0
Tel 2 Resolution at Ifinity Energy, Axis 1 : 1.9 3.6 5.1 5.7 6.0
Tel 3 Resolution at Ifinity Energy, Axis 0 : 0.8 1.7 3.3 4.6 5.4
Tel 3 Resolution at Ifinity Energy, Axis 1 : 2.2 3.4 5.1 5.6 5.8
Chi2Cut: 10 30 50 70 100 %
DUT: Confidence Region of Track Ifinity Energy, Tel 0 : 4.2 6.8 9.9 12.5 14.5
DUT: Confidence Region of Track Ifinity Energy, Tel 1 : 4.0 6.8 9.8 11.4 13.6
Chi2Cut: 10 30 50 70 100 %
DUT: Prediction of Intersection Ifinity Energy, Tel 0 : 9.3 15.1 22.2 28.3 32.1
DUT: Prediction of Intersection Ifinity Energy, Tel 1 : 8.9 15.2 22.2 27.1 30.6
Other text results:
Illustrated plots:
-
TelResiduals1_TelErr.gif
- for each telescope each Chi2 cut SigmaResiduals vs Energy, similar for DUT
mean of confidence and prediction region vs Energy
-
TelResiduals2_TelErr.gif
- for each telescope each Chi2 cut SigmaResiduals^2 vs 1/(Energy^2), similar
for DUT mean of confidence and prediction region square vs 1/(Energy^2)
-
R15_DUTResid2_Cut100_2153.gif
- for DUT: hitmap, confidence and prediction region, chi2 for track, all for
no Chi2 cut, energy 5GeV
-
R15_AlignResid2_Cut100_2153.gif
- for telescopes: residuals, all for no Chi2 cut, energy 5GeV
-
R15_DUTResid2_Cut50_2153.gif
- for DUT: hitmap, confidence and prediction region, chi2 for track, all for
Chi2 cut 50% of tracks accept, energy 5GeV
-
R15_AlignResid2_Cut50_2153.gif
- for telescopes: residuals, all for Chi2 cut 50% of tracks accept,
energy 5GeV
note: big maxima in mid of residuals is
effect of "magnetism" in case some telescope has very small error from
Eta analysis, this give bigger spread of residuals because other telescopes with
bigger error gives bigger "freedom" to track. This efefct is not
visible in case all telescopes have the same error - see below.
Telescope errors was set to constant value 12
um
Chi2Cut: 10 30 50 70 100 %
Tel 0 Resolution at Ifinity Energy, Axis 0 : 1.4 1.8 3.3 4.3 5.9
Tel 0 Resolution at Ifinity Energy, Axis 1 : 1.2 2.0 2.8 4.2 5.5
Tel 1 Resolution at Ifinity Energy, Axis 0 : 1.6 2.6 3.9 5.8 7.1
Tel 1 Resolution at Ifinity Energy, Axis 1 : 1.6 2.2 3.8 5.1 6.7
Tel 2 Resolution at Ifinity Energy, Axis 0 : 1.5 2.3 3.6 5.5 6.7
Tel 2 Resolution at Ifinity Energy, Axis 1 : 1.2 2.4 3.9 5.3 6.4
Tel 3 Resolution at Ifinity Energy, Axis 0 : 1.4 1.8 3.2 4.1 5.6
Tel 3 Resolution at Ifinity Energy, Axis 1 : 1.1 1.9 3.0 4.2 5.4
Chi2Cut: 10 30 50 70 100 %
DUT: Confidence Region of Track Ifinity Energy, Tel 0 : 3.0 5.0 7.1 9.4 11.4
DUT: Confidence Region of Track Ifinity Energy, Tel 1 : 2.6 4.4 7.4 9.1 10.2
Chi2Cut: 10 30 50 70 100 %
DUT: Prediction of Intersection Ifinity Energy, Tel 0 : 5.7 10.3 13.0 22.1 25.7
DUT: Prediction of Intersection Ifinity Energy, Tel 1 : 6.5 9.9 14.8 18.7 23.4
Other text results:
Illustrated plots:
-
TelResiduals1_12umTelErr.gif
- for each telescope each Chi2 cut SigmaResiduals vs Energy, similar for DUT
mean of confidence and prediction region vs Energy
-
TelResiduals2_12umTelErr.gif
- for each telescope each Chi2 cut SigmaResiduals^2 vs 1/(Energy^2), similar
for DUT mean of confidence and prediction region square vs 1/(Energy^2)
-
R15_DUTResidConstErr2_Cut100_2153.gif
- for DUT: hitmap, confidence and prediction region, chi2 for track, all for
no Chi2 cut, energy 5GeV
-
R15_AlignResidConstErr2_Cut100_2153.gif
- for telescopes: residuals, all for no Chi2 cut, energy 5GeV
-
R15_DUTResidConstErr2_Cut50_2153.gif
- for DUT: hitmap, confidence and prediction region, chi2 for track, all for
Chi2 cut 50% of tracks accept, energy 5GeV
-
R15_AlignResidConstErr2_Cut50_2153.gif
- for telescopes: residuals, all for Chi2 cut 50% of tracks accept, energy
5GeV
DUT analysis
Following part will be filled based on real work on test beam data evaluation
Skeleton of macro for using is: ExampleReadDST.cpp, where is section labeled:
// *********************************************************************************
// ***************** Here you add your code for DUT evaluation *********************
// *********************************************************************************
for call your own macros and routines.
Example how to use it is on: DUT1_DST.cpp
Remove pedestal nad common noise of DUT
Using macro: DUTAnalysis2.cpp call: DUTAnalysis1(...)
Example how to use it is on: DUT1_DST.cpp
Example of real data acquised DUTMap.gif
Removing of pedestal DUTMap2.gif
Removing of pedestal - detail, common noise is visible DUTMap2a.gif
Removing of pedestal - detail, common noise is visible DUTMap2b.gif
Removing of pedestal and common noise - detail DUTMap3.gif
Removing of pedestal and common noise - detail DUTMap3a.gif
Histogram of noise distribution DUTMap3a.gif
Find hits/clusters on DUT
Using macro: DUTAnalysis2.cpp call: DUTAnalysis4(...)
Example how to use it is on: DUT1_DST.cpp
Alignment of DUT and masking of bad channels
Residual plots of DUT
Efficiency of DUT and timing analysis
Noise occupancy of DUT
Cluster size of DUT
Bias of DUT
Angle scans of DUT
Interstrip analysis of all before of DUT
Special analysis
Special analysis DAQ parameters of DUT e.g. scan of tunable voltages of DUT front end and DAQ electronics.
Analysis and simulations
Bachelor thesis from Daniel Scheirich show an example how analysis using simulation set resolution and efficiency conditions in DUT: Testing Semiconductor Detectors Using Beam
of Charged Particles, Institute of Particle and Nuclear Physics, Charles Univestity, May 2006.
Laser tests
If there are available laser tests results or beta source measurements, compare them with test beam results.