<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
If I understand correctly, the bank number is a 16-bit integer, so
it is always less or equal 65535 ;-)<br>
<br>
Ole<br>
<br>
<div class="moz-cite-prefix">On 6.7.21 at 13:19, Alexandre Camsonne
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAP0WL2wTWeGHURm6fqTR-zODt7NLSy-BeCojKOPgs4OpV6FCvA@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Thanks David, that is good to know, so it seems we
can go ahead with this scheme as long as model number is less
than 0xffff=65535.
<div><br>
</div>
<div>Alexandre</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Tue, Jul 6, 2021 at 12:58
PM David Abbott <<a href="mailto:abbottd@jlab.org"
moz-do-not-send="true">abbottd@jlab.org</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div
style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">I
am assuming the Bank Tags you are essentially talking
about are those that you define inside your readout lists
for readout of raw data.</div>
<div
style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"><br>
</div>
<div
style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">While
it would be good to avoid the CODA "reserved" Bank Tags in
general, if you decide you just have to use a subset for
some internal indentification this will not really be a
problem for CODA since your tags are effectively buried
within the ROC Banks. This will not break anything that
CODA needs as we do not look into the User data in any way
during the online DAQ or for EVIO file writing or
decoding.<br>
</div>
<div
style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"><br>
</div>
<div
style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">David<br>
</div>
<div>
<div
style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"><br>
</div>
<div
style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"><br>
</div>
<div id="gmail-m_5995096685056110927Signature">
<div>
<div
id="gmail-m_5995096685056110927divtagdefaultwrapper"
dir="ltr"
style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif">
<p style="margin-top:0px;margin-bottom:0px">-----</p>
<p style="margin-top:0px;margin-bottom:0px"><span
style="font-size:12pt">David Abbott</span></p>
<p style="margin-top:0px;margin-bottom:0px"><span
style="font-size:12pt">Jefferson Lab</span></p>
<p style="margin-top:0px;margin-bottom:0px"><span
style="font-size:12pt">Suite #10</span></p>
<p style="margin-top:0px;margin-bottom:0px"><span
style="font-size:12pt">12000 Jefferson Avenue</span></p>
<p style="margin-top:0px;margin-bottom:0px"><span
style="font-size:12pt">Newport News, VA 23606</span></p>
<p style="margin-top:0px;margin-bottom:0px"><br>
</p>
<p style="margin-top:0px;margin-bottom:0px"><span
style="font-size:12pt">email: <a
href="mailto:abbottd@jlab.org" target="_blank"
moz-do-not-send="true">abbottd@jlab.org</a></span></p>
<p style="margin-top:0px;margin-bottom:0px"><span
style="font-size:12pt">Tel: (757) 269-7190
Fax: (757) 269-6331</span></p>
<p style="margin-top:0px;margin-bottom:0px"><span
style="font-size:12pt">------------------------------------------------------</span><br>
</p>
</div>
</div>
</div>
</div>
<div>
<div
style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"><br>
</div>
<hr style="display:inline-block;width:98%">
<div id="gmail-m_5995096685056110927divRplyFwdMsg"
dir="ltr"><font style="font-size:11pt" face="Calibri,
sans-serif" color="#000000"><b>From:</b> Sbs_daq <<a
href="mailto:sbs_daq-bounces@jlab.org"
target="_blank" moz-do-not-send="true">sbs_daq-bounces@jlab.org</a>>
on behalf of Benjamin Raydo <<a
href="mailto:braydo@jlab.org" target="_blank"
moz-do-not-send="true">braydo@jlab.org</a>><br>
<b>Sent:</b> Tuesday, July 6, 2021 10:56 AM<br>
<b>To:</b> David Flay <<a
href="mailto:flay@jlab.org" target="_blank"
moz-do-not-send="true">flay@jlab.org</a>>;
Alexandre Camsonne <<a
href="mailto:camsonne@jlab.org" target="_blank"
moz-do-not-send="true">camsonne@jlab.org</a>>; <a
href="mailto:sbs_daq@jlab.org" target="_blank"
moz-do-not-send="true">sbs_daq@jlab.org</a> <<a
href="mailto:sbs_daq@jlab.org" target="_blank"
moz-do-not-send="true">sbs_daq@jlab.org</a>><br>
<b>Subject:</b> Re: [Sbs_daq] [EXTERNAL] Bank
numbering guideline for SBS</font>
<div> </div>
</div>
<div dir="ltr">
<div
style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">There
are some reserved bank tags you need to avoid:<br>
</div>
<div
style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"><img
size="64583" style="max-width: 100%; height: auto;"
src="cid:part9.AF911B08.3BD64B1B@jlab.org" class=""><br>
</div>
<hr style="display:inline-block;width:98%">
<div id="gmail-m_5995096685056110927x_divRplyFwdMsg"
dir="ltr"><font style="font-size:11pt" face="Calibri,
sans-serif" color="#000000"><b>From:</b> Sbs_daq
<<a href="mailto:sbs_daq-bounces@jlab.org"
target="_blank" moz-do-not-send="true">sbs_daq-bounces@jlab.org</a>>
on behalf of David Flay <<a
href="mailto:flay@jlab.org" target="_blank"
moz-do-not-send="true">flay@jlab.org</a>><br>
<b>Sent:</b> Tuesday, July 6, 2021 10:54 AM<br>
<b>To:</b> Alexandre Camsonne <<a
href="mailto:camsonne@jlab.org" target="_blank"
moz-do-not-send="true">camsonne@jlab.org</a>>;
<a href="mailto:sbs_daq@jlab.org" target="_blank"
moz-do-not-send="true">sbs_daq@jlab.org</a> <<a
href="mailto:sbs_daq@jlab.org" target="_blank"
moz-do-not-send="true">sbs_daq@jlab.org</a>><br>
<b>Subject:</b> Re: [Sbs_daq] [EXTERNAL] Bank
numbering guideline for SBS</font>
<div> </div>
</div>
<div dir="ltr">
<div
style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">Hi
Alex,</div>
<div
style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)"><br>
</div>
<div
style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">In
the analyzer, ~/hana_decode/Decoder.h, we have:</div>
<div
style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)"><br>
</div>
<div
style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span
style="font-family:Consolas,Courier,monospace">namespace
Decoder { </span></div>
<div
style="font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)"><font
face="Consolas, Courier, monospace"><span
style="font-family:Consolas,Courier,monospace">...</span></font></div>
<div
style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span
style="font-family:Consolas,Courier,monospace">static
const int MAXBANK = (1<<16)-1; // = 65535</span></div>
<div
style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span
style="font-family:Consolas,Courier,monospace">...</span></div>
<div
style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span
style="font-family:Consolas,Courier,monospace">}</span></div>
<div
style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)"><br>
</div>
<div>
<div id="gmail-m_5995096685056110927x_x_Signature">
<div>
<div
style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">Best
regards,</div>
<div
style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">David </div>
<div
style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"><br>
</div>
<div
style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"></div>
<div
style="margin:0px;font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;background-color:rgb(255,255,255)"><span
style="margin:0px">----------------------------------------------------------------</span></div>
<div
style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">David
Flay, Ph. D.</div>
<div
style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">Hall
A/C Staff Scientist</div>
<div
style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">Thomas
Jefferson National Accelerator Facility</div>
<div
style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"><span
style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt">----------------------------------------------------------------</span><br>
</div>
<div
style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"><span
style="font-family:Calibri,Arial,Helvetica,sans-serif;background-color:rgb(255,255,255);display:inline"><br>
<br>
</span></div>
</div>
</div>
</div>
<hr style="display:inline-block;width:98%">
<div id="gmail-m_5995096685056110927x_x_divRplyFwdMsg"
dir="ltr"><font style="font-size:11pt"
face="Calibri, sans-serif" color="#000000"><b>From:</b>
Sbs_daq <<a
href="mailto:sbs_daq-bounces@jlab.org"
target="_blank" moz-do-not-send="true">sbs_daq-bounces@jlab.org</a>>
on behalf of Alexandre Camsonne <<a
href="mailto:camsonne@jlab.org" target="_blank"
moz-do-not-send="true">camsonne@jlab.org</a>><br>
<b>Sent:</b> Tuesday, July 6, 2021 9:43 AM<br>
<b>To:</b> <a href="mailto:sbs_daq@jlab.org"
target="_blank" moz-do-not-send="true">sbs_daq@jlab.org</a>
<<a href="mailto:sbs_daq@jlab.org"
target="_blank" moz-do-not-send="true">sbs_daq@jlab.org</a>><br>
<b>Subject:</b> [Sbs_daq] [EXTERNAL] Bank
numbering guideline for SBS</font>
<div> </div>
</div>
<div><font size="2"><span style="font-size:11pt">
<div>Hi all,<br>
<br>
the bank number can be a random number, for
simplification I would<br>
like people use the same number for bank
number as the model number in<br>
the analyzer database, so by default the
decoder would first try to<br>
look for the model corresponding to the bank
number and if it does not<br>
seem to correspond it could use a model number
from the cratemap.<br>
<br>
So if you read out list has a random bank
number, could you make sure<br>
it is changed to match the model number so
when we start taking data<br>
it will be consistent for all the detector
subsystems.<br>
<br>
Does anyone know what is maximum limit on bank
number value ?<br>
<br>
Thank you,<br>
<br>
Alexandre<br>
_______________________________________________<br>
Sbs_daq mailing list<br>
<a href="mailto:Sbs_daq@jlab.org"
target="_blank" moz-do-not-send="true">Sbs_daq@jlab.org</a><br>
<a
href="https://mailman.jlab.org/mailman/listinfo/sbs_daq"
target="_blank" moz-do-not-send="true">https://mailman.jlab.org/mailman/listinfo/sbs_daq</a><br>
</div>
</span></font></div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Sbs_daq mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Sbs_daq@jlab.org">Sbs_daq@jlab.org</a>
<a class="moz-txt-link-freetext" href="https://mailman.jlab.org/mailman/listinfo/sbs_daq">https://mailman.jlab.org/mailman/listinfo/sbs_daq</a>
</pre>
</blockquote>
<br>
</body>
</html>