/* For detector i and channel x on tape (ie. no compression) the proton energy */ /* deposited in the CsI(Tl) (ie. the energy after going through the absorbers) */ /* is given by: E_proton = protonSlope[i] * (x - pedestal[i]) in MeV */ /* and the alpha energy in the CsI(Tl) for a given channel is given in terms */ /* of the proton energy for that channel by: */ /* E_alpha = A[i]*E_prot + B[i] * ln(1.0 + C[i]*E_prot), in MeV */ /* or if you want to use a single A,B,C for all detectors */ /* a global fit to the E_alpha vs E_proton data for all detectors gives the */ /* parameters A = 0.92986, B = 1.2883, C = 2.5926 */ static float pedestal[96] = { -31.417999,-26.602875,-25.701447,-30.699951,-29.858002,-29.523987,-28.926620,-29.910782, -23.065392,-27.149094,-23.346344,-22.029060,-22.860756,-22.105705,-26.111420,-23.128830, -20.618423,-24.299446,-17.625519,-18.900787,-19.101212,-23.431839,-23.242981,-19.429260, -25.296173,-17.228760,-20.672302,-19.495438,-18.000542,-22.445908,-29.324493,-22.331436, -26.148209,-29.451614,-32.968567,-44.182495,-35.649994,-48.341553,-36.031937,-39.162491, -23.467377,-25.948547,-21.944977,-30.393402,-17.779907,-14.364349,-71.318329,-19.667236, -22.176468,-11.476334,-15.262009,-13.981049,-17.060303,-19.371262,-36.402313,-38.852997, -34.096924,-49.401855,-38.470398,-43.035034,-43.120026, 0.000000,-46.904205,-42.833160, -31.463684,-42.163025,-42.480682,-43.186249,-51.847717,-35.699646,-45.548553,-48.231018, -45.124237,-48.347382,-41.066864,-37.240906,-33.332764,-49.538330,-35.085388,-33.455994, -47.293152,-46.043854,-44.608673,-49.190430,-55.966553,-41.549500,-45.173798,-41.563721, -39.656097,-43.791504,-44.810425,-42.697205,-43.008240,-27.815063,-36.300629,-44.940735}; static float protonSlope[96] = { 0.039985, 0.038578, 0.040460, 0.036082, 0.037378, 0.038248, 0.038408, 0.034924, 0.041477, 0.038670, 0.036387, 0.037195, 0.036566, 0.037488, 0.033497, 0.036773, 0.034223, 0.034283, 0.034263, 0.032327, 0.033665, 0.033479, 0.033992, 0.035081, 0.033083, 0.034555, 0.036639, 0.033917, 0.036074, 0.024733, 0.027529, 0.027228, 0.025767, 0.025261, 0.022748, 0.025298, 0.023178, 0.025432, 0.021409, 0.023737, 0.018497, 0.019448, 0.018424, 0.018538, 0.020049, 0.017958, 0.017447, 0.020037, 0.021896, 0.024123, 0.026608, 0.024157, 0.027213, 0.027560, 0.017469, 0.017064, 0.019079, 0.018416, 0.014452, 0.017296, 0.014504, 0.000000, 0.013707, 0.015180, 0.015402, 0.017868, 0.014520, 0.016106, 0.010889, 0.012788, 0.013917, 0.012954, 0.011917, 0.013859, 0.013258, 0.012694, 0.012487, 0.013951, 0.012200, 0.013130, 0.010690, 0.011359, 0.009530, 0.013030, 0.009245, 0.010825, 0.009443, 0.010855, 0.009652, 0.010978, 0.008961, 0.011947, 0.009290, 0.012575, 0.010340, 0.011735}; static float A[96] = { 0.934200, 0.942299, 0.936925, 0.959343, 0.937798, 0.928362, 0.921240, 0.912639, 0.901005, 0.908404, 0.940089, 0.912461, 0.912350, 0.901195, 0.914769, 0.892475, 0.896736, 0.899863, 0.902169, 0.933028, 0.922739, 0.928672, 0.899594, 0.939483, 0.937672, 0.920185, 0.906493, 0.892060, 0.904419, 0.935633, 0.911003, 0.923204, 0.942717, 0.953565, 0.952435, 0.951577, 0.942402, 0.949788, 0.954599, 0.952521, 0.915878, 0.928887, 0.912831, 0.922268, 0.898698, 0.893863, 0.904683, 0.911713, 0.904549, 0.905733, 0.912470, 0.909260, 0.919230, 0.919775, 0.996623, 0.994609, 0.993291, 1.010100, 0.998824, 0.989882, 1.003585, 0.000000, 0.993215, 0.995257, 0.996364, 1.003246, 1.012534, 0.990252, 1.004867, 0.999765, 0.994611, 1.017524, 0.993539, 1.011617, 1.003621, 1.030644, 1.012893, 1.027525, 1.012459, 1.011196, 1.012816, 1.027115, 1.045016, 1.016040, 1.042942, 1.019954, 1.063221, 1.025518, 1.036987, 1.015121, 1.055128, 1.034737, 1.042734, 1.025288, 1.027369, 1.040136}; static float B[96] = { 1.263646, 1.244334, 1.344514, 1.261847, 1.256271, 1.422589, 1.409140, 1.273158, 1.454960, 1.343008, 1.357531, 1.428617, 1.367857, 1.354336, 1.356435, 1.444668, 1.230925, 1.343830, 1.344840, 1.248203, 1.256978, 1.337096, 1.258376, 1.239182, 1.218393, 1.235717, 1.250234, 1.365658, 1.246750, 1.302025, 1.301854, 1.288867, 1.289211, 1.268643, 1.313126, 1.270537, 1.318379, 1.286654, 1.200452, 1.305638, 1.279761, 1.271001, 1.305433, 1.289665, 1.416753, 1.367293, 1.311324, 1.288310, 1.265963, 1.248262, 1.246121, 1.262277, 1.244915, 1.313498, 1.005219, 1.017346, 1.013901, 0.995649, 1.003055, 1.040711, 0.959026, 0.000000, 1.011970, 1.013911, 0.980561, 0.978653, 0.925989, 1.027979, 1.109114, 1.045096, 1.104403, 1.031438, 1.062865, 1.006176, 1.082263, 0.997566, 1.040285, 1.047964, 1.091244, 1.042422, 1.087310, 1.022978, 0.997175, 1.050182, 1.000465, 1.077645, 0.985055, 1.045362, 1.047004, 1.088751, 0.958184, 1.002613, 0.977186, 0.999757, 1.002293, 0.993558}; static float C[96] = { 2.772990, 2.296231, 3.044439, 2.484341, 2.753946, 2.933591, 2.860706, 3.162925, 3.581383, 3.121153, 3.217770, 2.774136, 3.222666, 2.964709, 3.263576, 3.262366, 3.026444, 2.924540, 2.921840, 3.218950, 3.136670, 2.795932, 3.215227, 2.588296, 2.273101, 2.383447, 2.860040, 3.042692, 2.549426, 2.431569, 2.457300, 2.478588, 2.464625, 2.441392, 2.305521, 2.442723, 2.310726, 2.333163, 2.612827, 2.273497, 2.507488, 2.616465, 2.798524, 2.725375, 2.491995, 2.868137, 2.618502, 2.764037, 2.694419, 2.660241, 2.715499, 2.762967, 2.728182, 2.445356, 2.303395, 2.414088, 2.395042, 2.318093, 2.392956, 2.581927, 2.307777, 0.000000, 2.529146, 2.419894, 2.345280, 2.234665, 2.186570, 2.376382, 2.630177, 2.481780, 2.725228, 2.471283, 2.533020, 2.361137, 2.603937, 2.386167, 2.509250, 2.602179, 2.813197, 2.492308, 2.619832, 2.494498, 2.449003, 2.517344, 2.452461, 2.587436, 2.441491, 2.536896, 2.528284, 2.622791, 2.402187, 2.450238, 2.412056, 2.410418, 2.383656, 2.435109};