Plotting with CERN@school: an introduction to functions

2014-08-12T16:42:10Z (GMT) by Tom Whyntie Nicole Shearer
<p>This set of slides provides a guide to creating a plot with the Python programming language, making use of the matplotlib and numpy libraries. The function plotted is the surrogate function that describes the relationship between the number of Time-over-Threshold (ToT) counts and the energy measured by the Timepix detector [1], as described by Jakubek et al [2, 3] - though the code may be altered to plot any function required. The calibration constants used are those that were obtained for pixel 00000 of the LUCID experiment's TPX 0 detector: <em>a</em> = 2.24852, <em>b</em> = 80.6086, <em>c</em> = 252.004 and <em>t</em> = -0.62902.</p><p>This workshop was first given at the CERN@school Research Symposium 2014 on Monday the 8th September 2014 at the University of Surrey. The symposium formed part of the 10th International Conference on Position Sensitive Detectors (PSD10).  This is <b>CAS-PUB-GEN-000012</b> (formerly 000193<strong>)</strong> in the CERN@school document index.</p><p><i>The work was kindly supported by the Institute of Physics through the Top50 work placement scheme, and the Royal Commission for the Exhibition of 1851 through a Special Award.  CERN@school was supported by the UK Science and Technology Facilities Council (STFC) via grant numbers ST/J000256/1 and ST/N00101X/1.</i></p> <p>[1] X. Llopart et al, "<em>Timepix, a 65k programmable pixel readout chip for arrival time, energy and/or photon counting measurements</em>", Nucl. Instr. and Meth. A. <strong>581</strong> (2007) 485-494 http://dx.doi.org/10.1016/j.nima.2007.08.079</p> <p>[2] J. Jakubek et al, "<em>Pixel detectors for imaging with heavy charged particles</em>", Nucl. Instr. and Meth. A. <strong>591</strong> (2008) 155-158 http://dx.doi.org/10.1016/j.nima.2008.03.091</p> <p>[3] J. Jakubek, "<em>Precise energy calibration of pixel detector working in time-over-threshold mode</em>", Nucl. Instr. and Meth. A. <strong>633</strong> (2010) S262--S266 http://dx.doi.org/10.1016/j.nima.2010.06.183</p>