<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-535585" class="node node-logentry  article ia-n clearfix" role="article"><header class="node-header"><h1 class="node-title">
          <a href="https://logbooks.jlab.org/entry/3462743" rel="bookmark">Follow-up Re: Beam trip map for reconstruction</a>
        </h1>
          </header><div class="date-vitals">
        <p class="author-datetime">
      Lognumber <a href="https://logbooks.jlab.org/entry/3462743" class="lognumber" data-lognumber="3462743">3462743</a>.        Submitted by <a href="https://logbooks.jlab.org/user/davidl">davidl</a> on <time datetime="2017-02-26T10:48:43-0500" pubdate="pubdate">Sun, 02/26/2017 - 10:48</time>.        </p>
            
    
    
      
         
   
    
      
    <table class="field-vitals"><tr><th>Logbooks: </th><td><a href="https://logbooks.jlab.org/book/hdlog">HDLOG</a></td></tr><tr><th>References: </th><td><a href="https://logbooks.jlab.org/entry/3461528">3461528 - Follow-up Re: Beam trip map for reconstruction</a></td></tr></table></div>
  
    
  
    
  <div class="logentry node-content">
    <p>I have made an initial population of the CCDB tables that contain beam current information for runs 30343 to 30815 (runs 30745 to 30815 are ongoing but should complete within a couple of hours). The tables are:</p>
<p>/ELECTRON_BEAM/current_map_epics<br />
/ELECTRON_BEAM/timestamp_to_unix</p>
<p>The first gives the current map as obtained from the EPICS archive using times relative to the start time of the run as recorded in the RCDB.<br />
The second gives the parameters needed to convert from tics of the 250MHz clock (read out every event) to seconds since the start time of the run as recorded in the RCDB. It also has a copy of the RCDB recorded start time for convenience though it is not used in DBeamCurrent at the moment.</p>
<p>A pull request has been submitted that updates DBeamCurrent factory to use this format. For the conversion from tics to seconds of the 250MHz clock, the value stored in CCDB is actually ignored for the moment and a fixed value of 250.011MHz is used based on the plot below. This is because the values for the slope and offset of the 250MHZ clock tics recorded in CCDB are obtained from just the first 3 files of the run. This is sufficient to accurately determine the offset to within 1 second. However, to calculate the time in seconds from the 250MHz clock to within 1 sec over a 5000-6000 sec run, the slope needs to be known at the 10^-4 level. Thus, the first and next-to-last file from a long production run (30804) was used to fit the slope. The quoted error was the result of the ROOT fit using error bars of 1sec/sqrt(12).</p>
<p>The bottom figure shows the report from the hdbeam_current utility (also updated in the recent pull request). This should be more immediately useful if one wants the total "beam ON" time for a given run for normalization.</p>
<p></p><div class="image-wrapper"><img class="image-style-plentybig" src="cid:14bef7c89a4c27b5d8f04954f7e91746@logbooks.jlab.org" width="960" height="526" alt="" /></div>
<p></p><div class="image-wrapper"><img class="image-style-plentybig" src="cid:3ca0137218ee868d6801f289937dd06f@logbooks.jlab.org" width="317" height="194" alt="" /></div>
  </div>
  

  <div class="attachment-box">
        </div>

       
</article>      </div>
    </div>
  </body>
</html>