<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div class=""><br class="">
</div>
<div class="">Igal,</div>
<div class=""><br class="">
</div>
<div class="">(sending again from the right address)</div>
<div class=""><br class="">
</div>
<div class="">
<blockquote type="cite" class="">
<div class="">On May 14, 2020, at 1:55 PM, Igal Jaegle <<a href="mailto:ijaegle@jlab.org" class="">ijaegle@jlab.org</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">
Matt,</div>
<div class="" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">
<br class="">
</div>
<div class="" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">
Where is stored the real threshold in the database? <br class="">
</div>
</div>
</blockquote>
</div>
<div class="">
<div class="">
<div class="" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">
<br class="">
</div>
</div>
</div>
<div class="">It is encoded in the pedestal which is in the database.  </div>
<div class=""><br class="">
</div>
<div class="">As noted before this is tricky because threshold in simulation and threshold in data are applied in fundamentally different ways.</div>
<div class=""><br class="">
</div>
<div class="">One must realize we use a flash ADC not an integrating ADC so in real life the threshold is applied to the pulse amplitude.  However, it is the integral of the pulse that is calibrated to energy.  The relationship between amplitude and integral
 is well-approximated by a constant but has some variations, especially for the small pulses at threshold.</div>
<div class=""><br class="">
</div>
<div class="">So, we take the true pedestal (from data) and the typical pedestal RMS, and we know the DAQ threshold in units of the least significant bit of the fADC.  And based on this we simulate the threshold on amplitude.  But then we need to convert this
 to an energy as the simulation only "knows" about energy (and it is the integral that is used for energy in the data anyway).  So we use the peak to integral ratio and the gain (again from data) to create an effective threshold energy.</div>
<div class=""><br class="">
</div>
<div class="">There some variances, e.g., the pedestal RMS and also variation of the peak-to-integral ratio.  They get convolved together, I believe we have put in a parameter (also in the DB) to get that variation on average correct.  It isn't clear they (especially
 the peak to integral ratio) are highly dependent on channel or could be quantified in a way that provides a significantly improved picture of reality.</div>
<div class=""><br class="">
</div>
<div class="">Matt</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
</div>
</body>
</html>