<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
<!--
html{color:#555555;}body{line-height:1.5;font-family:'Trebuchet MS','Helvetica Neue',Arial,Helvetica,sans-serif;font-size:87.5%;}h1{font-size:1.6em;}h2.field-label{display:inline-block;font-size:1em;padding-right:5px;min-width:10em;margin:0.3em;}.problem_report{line-height:1.5;max-width:60em;}fieldset.problem_report.resolved
legend{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAy0lEQVQ4jWP8//8/AyWAiZACd3f3/xYWFrht+f//P1a84t3e/0obff4rbfT5D1GGXR0LuoEr3+/7X3W4n2gvwA0gVSOKAcqbfPGGpImJCU45JgYGBoa7fpsZ22wLSbadgYGBgRE9GrF55Vf2BYbHjx8zYjWB0ljAcAGGExkZ/0MtwuoCggmJEBh4AzBS4pMnT/7fuXOH4dKlSwwnT56EiwcGBv43MDBgMDExYdDX12eQkZGBhAlyiC5YsOA/AwMDUXjLli3/iYoFQgAA+pSxZrXofD0AAAAASUVORK5CYII=);background-repeat:no-repeat;padding-left:18px;}fieldset.problem_report.needs_attention
legend{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAA9ElEQVR42sWTvUoDQRSFv9wMKWxSBVmzdhZJIwTWv9pyLWxTpbE1kBeJPoLxBazzBgGFKNqlHXAhsITUw1y7sMpmjER0YJrDPWcO556BPzhjYPJjlhfT82LUpxcK6Lo5U0JMgcu56tXy7BQajeBDpkAcAEdz1W6uyrLdYieK2DMmKCArcqczpH/ddc0msy+OkyQJC4h3N0ynx+Q5ALtUNs5q5U+8e+R+VPFi4kjk3NZqd++qUK+TZVnYwSfAOyvejeLXt/2qVG/dYoG1dqseBNco27bs/wXKWhIDB8AhcFLAH4Bn4Al4AUqT7RVC++6mv/JVPwDi3VGzomYvyAAAAABJRU5ErkJggg==);background-repeat:no-repeat;padding-left:18px;}.problem_report div.field-items{display:inline-block;}div.date-vitals p{font-size:87.5%;}a{text-decoration:none;}.Readme a:link,.Readme a:visited,.Readme
a:active{color:red;}
-->
</style>
</head>
<body id="mimemail-body" class="elog-logentry-notify">
<div id="center">
<div id="main">
<style>
<!--/*--><![CDATA[/* ><!--*/
div.field-vitals{
margin: 0.5em 0;
}
div.field-vitals .field-type-taxonomy-term-reference {
margin: 0.1em 0;
}
article.comment {
padding-left: 10px;
}
article.comment.odd {
background-color: #EEEEEE;
}
article.comment.even {
background-color: #DDDDDD;
}
div.node-content.logentry table{
width: auto;
border-collapse: collapse;
border-spacing: 0;
border-width: 1px;
}
div.node-content.logentry th{
border: inherit;
}
div.node-content.logentry blockquote{
background-color: #FFFFFF;
}
div.node-content.logentry caption{
font-size: 1em;
font-weight: normal;
}
table.field-vitals{
margin-top: 1em;
margin-bottom: 1em;
font-size: 87.5%;
}
table.field-vitals th{
vertical-align: middle;
text-align: left;
width: 15%;
padding: 0.1em;
}
table.field-vitals td{
vertical-align: middle;
text-align: left;
width: auto;
padding: 0.1em;
}
table.field-vitals td li {
margin-left: 0;
list-style-type: none;
list-style-image: none;
}
table.downtime {
width: 30em;
margin-bottom: 1em;
border: 1px black dotted;
}
table.downtime th {
text-align: center;
}
table.downtime td {
text-align: center;
}
tr.caption th {
border-bottom: none;
}
table.downtime tfoot{
background-color:#EEEEEE;
}
div.field-name-body{
margin: 1em 0;
font-size: 110%;
}
div.date-vitals p{
margin: .1em 0;
}
article div.ctools-collapsible-container{
margin-left: -5px;
clear: both;
}
#comment-form{
margin-left: 5px;
border: graytext outset medium;
-moz-border-radius: 15px;
border-radius: 15px;
padding: 1em;
}
div.comments-form-box {
margin-top: 2em;
margin-bottom: 5em;
}
h3.comment-title {
/* display: none; */
}
p.author-datetime{
font-weight: bold;
}
/*--><!]]>*/
</style><article id="node-1272559" class="node node-logentry contextual-links-region article ia-n clearfix" role="article"><header class="node-header"><h1 class="node-title">
<a href="https://logbooks.jlab.org/entry/4199513" rel="bookmark">Updated NPSLib and nps_replay in JLab git repo and on cdaq</a>
</h1>
</header><div class="contextual-links-wrapper"><ul class="contextual-links"><li><a href="https://logbooks.jlab.org/entry/4199513/edit?destination=email/send">Edit</a></li><li><a href="https://logbooks.jlab.org/entry/4199513/delete?destination=email/send">Delete</a></li></ul></div>
<div class="date-vitals">
<p class="author-datetime">
Lognumber <a href="https://logbooks.jlab.org/entry/4199513" class="lognumber" data-lognumber="4199513">4199513</a>. Submitted by <a href="https://logbooks.jlab.org/user/jones">jones</a> on <time datetime="2023-10-14T14:46:38-0400" pubdate="pubdate"><a href="https://logbooks.jlab.org/entries?start_date=1697305598&end_date=1697312798&book=HCLOG&book=NPS">Sat, 10/14/2023 - 14:46</a></time>. </p>
<table class="field-vitals"><tr><th>Logbooks: </th><td><a href="https://logbooks.jlab.org/book/hclog">HCLOG</a> <a href="https://logbooks.jlab.org/book/nps">NPS</a></td></tr><tr><th>Entry Makers: </th><td><a href="mailto:jones@jlab.org">jones@jlab.org</a></td></tr></table></div>
<div class="logentry node-content">
<p>Made modification to NPSLib to correct the NPS cal ADC times for the<br />
HMS hodoscope start time. Also added code to get all trigger type<br />
in the VTP tree.<br />
Updated the nps_replay directory detials below. Main change<br />
is offsets in the FADC pulse time for each block by Peter.<br />
With these change one can see the 2ns beam structure in the FADC pulse time ( sigma around 0.7ns)<br />
and the NPS cluster time ( sigma around 0.45ns)</p>
<p>Add code to use Hodoscope starttime THcNPSArray<br />
Updated THcNPSArray::Init to initilize the hodoscope<br />
Updated THcNPSArray::FillADC_DynamicPedestal<br />
to uncomment<br />
if( fglHod ) StartTime = fglHod->GetStartTime();</p>
<p> hodoscope start time is centered around 50ns.<br />
hardcoded this 50ns offset.<br />
fGoodAdcPulseTime.at(npad) = pulseTime-(StartTime-50);</p>
<p> Also set the<br />
frAdcPulseTime and frAdcSampPulseTime to<br />
pulseTime-(StartTime-50)<br />
These are the tree variable NPS.cal.fly.adcPulseTime and<br />
NPS.cal.fly.adcSampPulseTime</p>
<p> To get the best time resolution need to use detector map<br />
which uses the the Hodoscope FADC 3of4 trigger as the<br />
reference time for the NPS calo detector.<br />
Hodoscope 3of4 trigger is in ROC1 SLot 18 channel 11.</p>
<p> When using the hodoscope reference time need to<br />
have an overall offset of +337ns to get the NPS ADC pulse<br />
time back to around 150ns for the coincidence peak.<br />
Add the parameter nps_cal_arr_adc_tdc_offset_all = 337.<br />
which is added to every blocks individual time offset.</p>
<p>Updated to detector map to use hodoscope reference time</p>
<p> Modified pcal_nps_coin.map</p>
<p> Modifier PARAM/NPS/CAL/nps_cuts_eel108.param<br />
to use nps_cal_arr_adc_tdc_offset_all = 337.<br />
to have the adcPulseTime centered at 150ns<br />
for good coincidences.</p>
<p> Set nps_cal_arr_adc_tdc_offset for each block<br />
using vaules determined by Peter Bosted</p>
</div>
<div class="attachment-box">
</div>
</article> </div>
</div>
</body>
</html>