BNMR: Histograms and Scalers: Difference between revisions

From DaqWiki
Jump to navigation Jump to search
en>Suz
mNo edit summary
en>Suz
mNo edit summary
Line 8: Line 8:
</div>
</div>


== Introduction ==
== Cycle Scalers ==
In the [[BNMR: frontend|frontend]], data is read from the VME scaler(s) (SIS3801 or SIS3820) and saved in histograms. The number of histograms is greater than the number of active scaler channels. For example, some scaler data are saved in separate histograms according to the helicity.  In the case of Type 1 runs, the histograms are sent every cycle, whereas for Type 2 the histograms are accumulated in the frontend memory, and sent every few minutes.  A data logger running on the host computer saves the data onto disk. The data is handled differently for Type 1 and Type 2 runs. For Type 1 runs, the data are saved in a MIDAS file by mlogger, and converted to MUD format by mdarc. For Type 2 runs, mdarc saved the data directly in a MUD file, and no MIDAS file is produced.
In the [[BNMR: frontend|frontend]], data read from the VME scaler(s) (SIS3801 or SIS3820) after each PPG cycle  (known as ''Cycle Scaler Data'').
The data consists of arrays containing the counts in each time bin for each active input channel. The cycle scaler data are read into
[[#Frontend Histograms|histograms]].


The histograms and data logging will therefore be described separately for Type 1 and Type 2 runs.  
Also the data from each scaler channel are summed, and assymmetries and ratios are calculated. The Cycle Scaler data sums and calculated data are output as MIDAS bank HSCL, and sent to the ODB under {{Odbpath|path=/Equipment/Cycle_Scalers}}.


== Front-end histograms and Cycle Scalers ==
For {{bnmr}}, the Front and Back Cycle data sums (Scaler A) are added together and used to check against the threshold. For {{bnqr}} sums of the Neutral Beam counters are used for thresholds.


=== Scaler Channels : Hardware Connections ===
== Frontend Histograms ==
The number of frontend histograms into which the scaler data are saved is greater than the number of active scaler channels. For example, some scaler data are saved in separate histograms according to the helicity.  In the case of Type 1 runs, the histograms are sent out every cycle, whereas for Type 2 the histograms are accumulated in the frontend memory, and sent out every few minutes.  A data logger running on the host computer saves the data onto disk. The data is handled differently for Type 1 and Type 2 runs. For Type 1 runs, the data are saved in a MIDAS file by the MIDAS logger [https://midas.triumf.ca/MidasWiki/index.php/Mlogger|mlogger], and converted to MUD format by the custom logger [[BNMR: mdarc|mdarc]]. For Type 2 runs, [[BNMR: mdarc|mdarc]] saved the data directly in a MUD file, and no MIDAS file is produced.
 
The histograms and data logging will therefore be described separately for Type 1 and Type 2 runs.
 
 
== Scaler Channels : Hardware Connections ==
Currently,  
Currently,  
* experiment  <span style="color:#7b68ee; font-style=italic">bnmr</span> has two SIS3801 scalers
* experiment  <span style="color:#7b68ee; font-style=italic">bnmr</span> has two SIS3801 scalers known as ''Scaler A'' and ''Scaler B''
* experiment <span style="color:#20b2aa; font-style=italic">bnqr</span> has one SIS3820 scaler
* experiment <span style="color:#20b2aa; font-style=italic">bnqr</span> has one SIS3820 scaler, ''Scaler B''


<div id="sis3820_note"></div>
<div id="sis3820_note"></div>
Line 24: Line 32:
: The sis3820 scaler is needed for <span style="color:#20b2aa; font-style=italic">bnqr</span> alpha mode as it has a larger buffer and greater resolution.  
: The sis3820 scaler is needed for <span style="color:#20b2aa; font-style=italic">bnqr</span> alpha mode as it has a larger buffer and greater resolution.  
   
   
==== BNMR ====
=== BNMR ===
{|  style="text-align: left; width: 80%; background-color: #e6e6ff;" border="3" cellpadding="2" cellspacing="2"
{|  style="text-align: left; width: 80%; background-color: #e6e6ff;" border="3" cellpadding="2" cellspacing="2"
|+  Table 1 : BNMR Scaler A Channels
|+  Table 1 : BNMR Scaler A Channels
Line 59: Line 67:




==== BNQR ====
=== BNQR ===
{|  style="text-align: left; width: 80%; background-color: #b3ffff;" border="3" cellpadding="2" cellspacing="2"
{|  style="text-align: left; width: 80%; background-color: #b3ffff;" border="3" cellpadding="2" cellspacing="2"
|+  Table 3 : BNQR Scaler B Channels   
|+  Table 3 : BNQR Scaler B Channels   
Line 88: Line 96:


== Midas histograms built in the frontend ==
== Midas histograms built in the frontend ==
Histograms are built in the frontend (VMIC) using the data from the Scalers - see [[#Front-end histograms and Cycle Scalers|Cycle Scalers]].<br>
The scaler inputs are listed in [[#Scaler Channels : Hardware Connections|scaler connections]].


=== Type 1 ===
=== Type 1 Histograms ===
<span style= "color:#FF0000">Only includes data from last cycle.</span>
Type 1 histograms
<span style= "color:#FF0000">only includes data from last cycle.</span>


==== Scaler A BNMR only ====


'''Table 4: Scaler A histograms '''  ({{bnmr}} only)
'''Table 4: Scaler A histograms '''  ({{bnmr}} only)
Line 141: Line 153:
</table>
</table>


==== Scaler B BNMR only ====
The Type 2 histograms built from data from Scaler B are shown in Table 5.


'''Table 5 : Scaler B histograms'''  ({{bnmr}})
'''Table 5 : Scaler B histograms'''  ({{bnmr}})
Line 226: Line 240:
'''Total number of histograms from both scalers: 9 '''  {{bnmr}}
'''Total number of histograms from both scalers: 9 '''  {{bnmr}}


==== Scaler B BNQR only ====
The Type 2 histograms built for {{bnqr}} from data from Scaler B are shown in Table 6.  For Alpha Mode (1h) only, four extra histograms are built containing the data from the Alpha counters.


'''Table 6 : Scaler B histograms'''  ({{bnqr}})
'''Table 6 : Scaler B histograms'''  ({{bnqr}})
Line 322: Line 338:




<!-- Alpha Mode -->
<!-- Alpha Mode (1h) -->
<tr><td colspan=3 style="font-weight:bold; text-align:center; background-color:#94b8b8;"> Alpha mode (1h) only</td></tr>
<tr><td colspan=3 style="font-weight:bold; text-align:center; background-color:#94b8b8;"> Alpha mode (1h) only</td></tr>
<tr style="background-color:#94b8b8;">
<tr style="background-color:#94b8b8;">
Line 390: Line 406:




=== Type 2 ===
=== Type 2 Histograms ===


For Type 2 (TD style), Midas histograms are built in the PPC frontend.
<p><font color="#FF0000">Histograms accumulate through the run</font> and are sent periodically
to be saved by the data logger [[BNMR: mdarc|mdarc]].
==== Scaler A BNMR only ====
The histograms built with data from Scaler A are shown in Table 7. Note that the fifth histogram (userbits) is built
in the frontend for BNMR Mode 2s only.


For Type 2 (TD style), Midas histograms are built in the PPC frontend.
<p><font color="#FF0000">Histograms accumulate through the run</font>
<p>4 histograms from Scaler A:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;


<br>10 Histograms from Scaler B:
<br>Total histograms&nbsp; : 10 for <font color="#33CC00">BNQR</font>,
14 for <font color="#3366FF">BNMR</font>
<br>&nbsp;
'''Table 7: Scaler A histograms '''  ({{bnmr}} only)
'''Table 7: Scaler A histograms '''  ({{bnmr}} only)
<table BORDER COLS=6 WIDTH=50% style="background-color: #e6e6ff;" NOSAVE >
<table BORDER COLS=6 WIDTH=50% style="background-color: #e6e6ff;" NOSAVE >
Line 409: Line 425:


<td>Helicity </td>
<td>Helicity </td>
<td>
<center>Scaler</center>
</td>


<td>
<td>
Line 427: Line 439:


<td>1</td>
<td>1</td>
<td>A</td>


<td>HIBP</td>
<td>HIBP</td>
Line 438: Line 448:


<td>1</td>
<td>1</td>
<td>A</td>


<td>HIFP</td>
<td>HIFP</td>
Line 450: Line 458:


<td>0</td>
<td>0</td>
<td>A</td>


<td>HIBN</td>
<td>HIBN</td>
Line 462: Line 468:


<td>0</td>
<td>0</td>
<td>A</td>


<td>HIFN</td>
<td>HIFN</td>


<td>F-</td>
<td>F-</td>
<tr style="text-align:center;">
<td>Userbits</td>
<td>n/a</td>
<td>USER</td>
<td></td>
</tr>
</tr>
</table>
</table>


 
==== Scaler B  BNMR and BNQR ====
The following histograms using data from Scaler B are sent out for {{bnmr}} and all {{bnqr}} modes except
for Sample/Reference and Alpha Modes. See
[[#BNQR Sample/Reference Mode|Sample/Reference histograms]] and [[BNQR Alpha Mode (2h)#Alpha Histograms]] for details.
<br>10 Histograms from Scaler B:
<br>Total histograms&nbsp; : 10 for <font color="#33CC00">BNQR</font>,
14 for <font color="#3366FF">BNMR</font>
<br>&nbsp;


'''Table 8: Scaler B histograms '''  ({{bnmr}} and {{bnqr}})
'''Table 8: Scaler B histograms '''  ({{bnmr}} and {{bnqr}})
Line 615: Line 638:




==== Scaler B BNQR Sample/Reference Mode ====
Some of the modes on BNQR can be run in sample/reference mode. An external signal is alternately turned on/off and the scaler data is sent to a different set of histograms depending on the state of the sample/reference signal.  This mode is not supported for {{bnmr}}.


 
'''Table 9a: Scaler B histograms '''  {{bnqr}} sample/reference
'''Table 9a: Scaler B histograms '''  ({{bnmr}} and {{bnqr}})
<table BORDER COLS=6 WIDTH=50% style="background-color: #b3ffff;">
<table BORDER COLS=7 WIDTH=60% style="background-color: whitesmoke;" NOSAVE >
<tr style="text-align:center; font-weight:bold; background-color: #20b2aa;">
<tr style="text-align:center;font-weight:bold">
<td>
 
Contents
<td>Contents</td>
</td>


<td>Helicity </td>
<td>Helicity </td>


<td>Scaler</td>
<td>
<center>Sample/Ref</center>
</td>


<td>Bank Name</td>
<td>
Bank Name
</td>


<td>Histogram Name</td>
<td>
 
Histogram Name
<td  style="background-color:#7b68ee;">BNMR</td>
</td>
 
<td  style="background-color:#20b2aa;">BNQR</td>
 
<td colspan=2 style="background-color:#009973;">BNQR<br>Sample/Ref</td>
 
<td style="background-color:#94b8b8;">BNQR Alpha Mode  </td>
</tr>
</tr>


<tr style="text-align:center;">
<tr style="text-align:center;">
Line 645: Line 667:
<td>n/a</td>
<td>n/a</td>


<td>B</td>
<td>n/a</td>


<td>HMF1</td>
<td>HMF1</td>


<td>Const</td>
<td>Const</td>
<td style="background-color:#e6e6ff;">Y</td>  <!-- BNMR-->
<td style="background-color:#b3ffff;">Y</td>  <!-- BNQR-->
<td style="background-color:#4dffd2;">Y</td>  <!-- BNQR Sample/Ref -->
<td style="background-color:#4dffd2;"></td>
<td style="background-color:#94b8b8;">N</td>  <!-- BNQR Alpha -->
</tr>
</tr>


<tr style="text-align:center;">
<tr style="text-align:center;">
Line 667: Line 679:
<td>n/a</td>
<td>n/a</td>


<td>B</td>
<td>n/a</td>


<td>HMF2</td>
<td>HMF2</td>


<td>FluM2</td>
<td>FluM2</td>
<td style="background-color:#e6e6ff;">Y</td>  <!-- BNMR-->
<td style="background-color:#b3ffff;">Y</td>  <!-- BNQR-->
<td style="background-color:#4dffd2;">Y</td>  <!-- BNQR Sample/Ref -->
<td style="background-color:#4dffd2;"></td>
<td style="background-color:#94b8b8;">N</td>  <!-- BNQR Alpha -->
</tr>
</tr>


Line 688: Line 691:
<td>1</td>
<td>1</td>


<td>B</td>
<td>R</td>


<td>HMLP</td>
<td>HMLP</td>


<td>L+</td>
<td>L+</td>
<td style="background-color:#e6e6ff;">Y</td>  <!-- BNMR-->
<td style="background-color:#b3ffff;">Y</td>  <!-- BNQR-->
<td style="background-color:#4dffd2;">Y</td>  <!-- BNQR Sample/Ref -->
<td style="background-color:#4dffd2;">Ref</td>
<td style="background-color:#94b8b8;">Y</td>  <!-- BNQR Alpha -->
</tr>
</tr>


Line 710: Line 703:
<td>1</td>
<td>1</td>


<td>B</td>
<td>R</td>


<td>HMRP</td>
<td>HMRP</td>


<td>R+</td>
<td>R+</td>
<td style="background-color:#e6e6ff;">Y</td>  <!-- BNMR-->
<td style="background-color:#b3ffff;">Y</td>  <!-- BNQR-->
<td style="background-color:#4dffd2;">Y</td>  <!-- BNQR Sample/Ref -->
<td style="background-color:#4dffd2;">Ref</td>
<td style="background-color:#94b8b8;">Y</td>  <!-- BNQR Alpha -->
</tr>
</tr>


Line 732: Line 715:
<td>0</td>
<td>0</td>


<td>b</td>
<td>R</td>


<td>HMLN</td>
<td>HMLN</td>


<td>L-</td>
<td>L-</td>
<td style="background-color:#e6e6ff;">Y</td>  <!-- BNMR-->
<td style="background-color:#b3ffff;">Y</td>  <!-- BNQR-->
<td style="background-color:#4dffd2;">Y</td>  <!-- BNQR Sample/Ref -->
<td style="background-color:#4dffd2;">Ref</td>
<td style="background-color:#94b8b8;">Y</td>  <!-- BNQR Alpha -->
</tr>
</tr>


Line 754: Line 727:
<td>0</td>
<td>0</td>


<td>B</td>
<td>R</td>


<td>HMRN</td>
<td>HMRN</td>


<td>R-</td>
<td>R-</td>
<td style="background-color:#e6e6ff;">Y</td>  <!-- BNMR-->
<td style="background-color:#b3ffff;">Y</td>  <!-- BNQR-->
<td style="background-color:#4dffd2;">Y</td>  <!-- BNQR Sample/Ref -->
<td style="background-color:#4dffd2;">Ref</td>
<td style="background-color:#94b8b8;">Y</td>  <!-- BNQR Alpha -->
</tr>
</tr>


Line 776: Line 739:
<td>1</td>
<td>1</td>


<td>B</td>
<td>R</td>


<td>HMBP</td>
<td>HMBP</td>
<td>NBMB+</td>
<td>NBMB+</td>
<td style="background-color:#e6e6ff;">Y</td>  <!-- BNMR-->
<td style="background-color:#b3ffff;">Y</td>  <!-- BNQR-->
<td style="background-color:#4dffd2;">Y</td>  <!-- BNQR Sample/Ref -->
<td style="background-color:#4dffd2;">Ref</td>
<td style="background-color:#94b8b8;">Y</td>  <!-- BNQR Alpha -->
</tr>
</tr>


Line 797: Line 750:
<td>1</td>
<td>1</td>


<td>B</td>
<td>R</td>


<td>HMFP</td>
<td>HMFP</td>


<td>NBMF+</td>
<td>NBMF+</td>
</tr>


<td style="background-color:#e6e6ff;">Y</td> <!-- BNMR-->
<tr style="text-align:center;">
<td>&nbsp;Neutral Beam Backwards '''-'''</td>


<td style="background-color:#b3ffff;">Y</td>  <!-- BNQR-->
<td>0</td>


<td style="background-color:#4dffd2;">Y</td>  <!-- BNQR Sample/Ref -->
<td>R</td>
<td style="background-color:#4dffd2;">Ref</td>


<td style="background-color:#94b8b8;">Y</td>  <!-- BNQR Alpha -->
<td>HMBN</td>


<td>NBMB-</td>
</tr>
</tr>


<tr style="text-align:center;">
<tr style="text-align:center;">
<td>&nbsp;Neutral Beam Backwards '''-'''</td>
<td>&nbsp;Neutral Beam Forwards '''-'''</td>


<td>0</td>
<td>0</td>


<td>B</td>
<td>R</td>
 
<td>HMFN</td>
 
<td>NBMF-</td>
 
<!-- Sample -->
 
<tr style="text-align:center;background-color:#4dffd2;">
<td>Polarimeter Left '''+'''</td>
 
<td>1</td>
 
<td>S</td>


<td>HMBN</td>
<td>HMLP</td>


<td>NBMB-</td>
<td></td>
</tr>


<td style="background-color:#e6e6ff;">Y</td> <!-- BNMR-->
<tr style="text-align:center;background-color:#4dffd2;">
<td>Polarimeter Right '''+'''</td>


<td style="background-color:#b3ffff;">Y</td>  <!-- BNQR-->
<td>1</td>


<td style="background-color:#4dffd2;">Y</td>  <!-- BNQR Sample/Ref -->
<td>S</td>
<td style="background-color:#4dffd2;">Ref</td>


<td style="background-color:#94b8b8;">Y</td>  <!-- BNQR Alpha -->
<td>HMRP</td>


<td></td>
</tr>
</tr>


<tr style="text-align:center;">
<tr style="text-align:center;background-color:#4dffd2;">
<td>&nbsp;Neutral Beam Forwards '''-'''</td>
<td>Polarimeter Left '''-'''</td>


<td>0</td>
<td>0</td>


<td>B</td>
<td>S</td>


<td>HMFN</td>
<td>HMLN</td>


<td>NBMF-</td>
<td></td>
</tr>


<td style="background-color:#e6e6ff;">Y</td> <!-- BNMR-->
<tr style="text-align:center;background-color:#4dffd2;">
<td>Polarimater Right&nbsp; '''-'''</td>


<td style="background-color:#b3ffff;">Y</td>  <!-- BNQR-->
<td>0</td>


<td style="background-color:#4dffd2;">Y</td>  <!-- BNQR Sample/Ref -->
<td>S</td>
<td style="background-color:#4dffd2;">Ref</td>


<td style="background-color:#94b8b8;">Y</td>  <!-- BNQR Alpha -->
<td>HMRN</td>


<td></td>
</tr>
</tr>


<tr style="text-align:center;background-color:#4dffd2;">
<tr style="text-align:center;background-color:#4dffd2;">
<td>Polarimeter Left '''+'''</td>
<td>&nbsp;Neutral Beam Backwards '''+'''</td>


<td>1</td>
<td>1</td>


<td>B</td>
<td>S</td>


<td>HSLP</td>
<td>HMBP</td>
<td></td>
<td></td>
<td style="background-color:#e6e6ff;">N</td>  <!-- BNMR-->
<td style="background-color:#b3ffff;">N</td>  <!-- BNQR-->
<td>Y</td>
<td>Sample</td>
<td style="background-color:#94b8b8;">N</td>  <!-- BNQR Alpha -->
</tr>
</tr>


<tr style="text-align:center;background-color:#4dffd2;">
<tr style="text-align:center;background-color:#4dffd2;">
<td>Polarimeter Right '''+'''</td>
<td>&nbsp;Neutral Beam Forwards '''+'''</td>


<td>1</td>
<td>1</td>


<td>B</td>
<td>S</td>
 
<td>HMFP</td>


<td>HSRP</td>
<td></td>
<td></td>
<td style="background-color:#e6e6ff;">N</td>  <!-- BNMR-->
<td style="background-color:#b3ffff;">N</td>  <!-- BNQR-->
<td>Y</td>
<td>Sample</td>
<td style="background-color:#94b8b8;">N</td>  <!-- BNQR Alpha -->
</tr>
</tr>


<tr style="text-align:center;background-color:#4dffd2;">
<tr style="text-align:center;background-color:#4dffd2;">
<td>Polarimeter Left '''-'''</td>
<td>&nbsp;Neutral Beam Backwards '''-'''</td>


<td>0</td>
<td>0</td>


<td>B</td>
<td>S</td>
 
<td>HSBN</td>


<td>HSLN</td>
<td></td>
<td></td>
<td style="background-color:#e6e6ff;">N</td>  <!-- BNMR-->
<td style="background-color:#b3ffff;">N</td>  <!-- BNQR-->
<td>Y</td>
<td>Sample</td>
<td style="background-color:#94b8b8;">N</td>  <!-- BNQR Alpha -->
</tr>
</tr>


<tr style="text-align:center;background-color:#4dffd2;">
<tr style="text-align:center;background-color:#4dffd2;">
<td>Polarimeter Right '''-'''</td>
<td>&nbsp;Neutral Beam Forwards '''-'''</td>


<td>0</td>
<td>0</td>


<td>B</td>
<td>S</td>
 
<td>HSFN</td>


<td>HSRN</td>
<td></td>
<td></td>
<td style="background-color:#e6e6ff;">N</td>  <!-- BNMR-->
<td style="background-color:#b3ffff;">N</td>  <!-- BNQR-->
<td>Y</td>
<td>Sample</td>
<td style="background-color:#94b8b8;">N</td>  <!-- BNQR Alpha -->
</tr>
</tr>
</table>






<tr style="text-align:center;background-color:#4dffd2;">
<td>&nbsp;Neutral Beam Backwards '''+'''</td>


<td>1</td>
==== Scaler B BNQR Alpha Mode (2h) ====
Alpha Mode (mode 2h) involves very long histograms with a very short bin width. To save space, histograms for the Reference Clock and Fluorescence Monitor are not saved. Furthermore, if the total number of bins requested for all histograms exceeds the maximum event size allowed by MIDAS, the histogram bin size for all histograms will be reduced to 16 bits from 32 (the default). The histograms will be sent out from the frontend in 4 chunks, and reassembled by the data logger (mdarc) before being saved. The histograms sent from the frontend in Alpha Mode are shown in Table 10. Alpha mode is not supported for {{bnmr}}.


<td>B</td>
'''Table 10: Scaler B histograms '''  {{bnqr}} Alpha Mode
<table BORDER COLS=6 WIDTH=50% style="background-color: #b3ffff;" NOSAVE >
<tr style="text-align:center;font-weight:bold; background-color:  #20b2aa;">
<td>
Contents
</td>


<td>HSBP</td>
<td>Helicity </td>
<td></td>


<td style="background-color:#e6e6ff;">N</td>  <!-- BNMR-->
<td>
Bank Name
</td>


<td style="background-color:#b3ffff;">N</td> <!-- BNQR-->
<td>
Histogram Name
</td>
</tr>


<td style="background-color:#4dffd2;">Y</td>  <!-- BNQR Sample/Ref -->
<td style="background-color:#4dffd2;">Sample</td>


<td style="background-color:#94b8b8;">N</td> <!-- BNQR Alpha -->
<tr style="text-align:center;">
<td>Polarimeter Left '''+'''</td>


<td>1</td>
<td>HMLP</td>
<td>L+</td>
</tr>
</tr>


<tr style="text-align:center;background-color:#4dffd2;">
<tr style="text-align:center;">
<td>&nbsp;Neutral Beam Forwards '''+'''</td>
<td>Polarimeter Right '''+'''</td>


<td>1</td>
<td>1</td>


<td>B</td>
<td>HMRP</td>
 
<td>R+</td>
</tr>
 
<tr style="text-align:center;">
<td>Polarimeter Left '''-'''</td>


<td>HSFP</td>
<td>0</td>


<td></td>
<td>HMLN</td>


<td style="background-color:#e6e6ff;">N</td> <!-- BNMR-->
<td>L-</td>
</tr>


<td style="background-color:#b3ffff;">N</td> <!-- BNQR-->
<tr style="text-align:center;">
<td>Polarimater Right&nbsp; '''-'''</td>


<td style="background-color:#4dffd2;">Y</td>  <!-- BNQR Sample/Ref -->
<td>0</td>
<td style="background-color:#4dffd2;">Sample</td>


<td style="background-color:#94b8b8;">N</td>  <!-- BNQR Alpha -->
<td>HMRN</td>


<td>R-</td>
</tr>
</tr>


<tr style="text-align:center;background-color:#4dffd2;">
<tr style="text-align:center;">
<td>&nbsp;Neutral Beam Backwards '''-'''</td>
<td>&nbsp;Neutral Beam Backwards '''+'''</td>
 
<td>1</td>


<td>0</td>
<td>HMBP</td>
<td>NBMB+</td>
</tr>


<td>B</td>
<tr style="text-align:center;">
<td>&nbsp;Neutral Beam Forwards '''+'''</td>


<td>HMBN</td>
<td>1</td>


<td></td>
<td>HMFP</td>


<td style="background-color:#e6e6ff;">N</td> <!-- BNMR-->
<td>NBMF+</td>
</tr>


<td style="background-color:#b3ffff;">N</td> <!-- BNQR-->
<tr style="text-align:center;">
<td>&nbsp;Neutral Beam Backwards '''-'''</td>


<td style="background-color:#4dffd2;">Y</td>  <!-- BNQR Sample/Ref -->
<td>0</td>
<td style="background-color:#4dffd2;">Sample</td>


<td style="background-color:#94b8b8;">N</td>  <!-- BNQR Alpha -->
<td>HMBN</td>


<td>NBMB-</td>
</tr>
</tr>


<tr style="text-align:center;background-color:#4dffd2;">
<tr style="text-align:center;">
<td>&nbsp;Neutral Beam Forwards '''-'''</td>
<td>&nbsp;Neutral Beam Forwards '''-'''</td>


<td>0</td>
<td>0</td>


<td>B</td>
<td>HMFN</td>
 
<td>NBMF-</td>
</tr>
 
 
 
<tr style="text-align:center;background-color:#94b8b8;">
<td>Alpha1'''+'''</td>
 
<td>1</td>


<td>HMFN</td>
<td>HA0P</td>


<td></td>
<td></td>
</tr>


<td style="background-color:#e6e6ff;">N</td>  <!-- BNMR-->


<td style="background-color:#b3ffff;">N</td> <!-- BNQR-->
<tr style="text-align:center;background-color:#94b8b8;">
<td>Alpha2'''+'''</td>


<td style="background-color:#4dffd2;">Y</td>  <!-- BNQR Sample/Ref -->
<td>1</td>
<td style="background-color:#4dffd2;">Sample</td>


<td style="background-color:#94b8b8;">N</td>  <!-- BNQR Alpha -->
<td>HA1P</td>


<td></td>
</tr>
</tr>


<tr style="text-align:center;background-color:#94b8b8;">
<tr style="text-align:center;background-color:#94b8b8;">
<td>Alpha1</td>
<td>Alpha3'''+'''</td>
 
<td>1</td>
 
<td>HA2P</td>
 
<td></td>
</tr>
 
<tr style="text-align:center;background-color:#94b8b8;">
<td>Alpha4'''+'''</td>


<td>1</td>
<td>1</td>


<td>B</td>
<td>HA3P</td>


<td></td>
<td></td>
</tr>
<tr style="text-align:center;background-color:#94b8b8;">
<td>Alpha1'''-'''</td>
<td>0</td>
<td>HA0N</td>


<td></td>
<td></td>
</tr>


<td style="background-color:#e6e6ff;">N</td>  <!-- BNMR-->


<td style="background-color:#b3ffff;">N</td> <!-- BNQR-->
<tr style="text-align:center;background-color:#94b8b8;">
<td>Alpha2'''-'''</td>


<td style="background-color:#4dffd2;">N</td>  <!-- BNQR Sample/Ref -->
<td>0</td>
<td style="background-color:#4dffd2;"></td>


<td style="background-color:#94b8b8;">Y</td>  <!-- BNQR Alpha -->
<td>HA1N</td>


<td></td>
</tr>


<tr style="text-align:center;background-color:#94b8b8;">
<td>Alpha3'''-'''</td>


<td>0</td>
<td>HA2N</td>
<td></td>
</tr>
<tr style="text-align:center;background-color:#94b8b8;">
<td>Alpha4'''-'''</td>
<td>0</td>
<td>HA3N</td>
<td></td>
</tr>
</table>
</table>
=== BNQR Alpha Mode (2h) ===
Alpha Mode (mode 2h) involves very long histograms with a very short bin width. To save space, histograms for the Reference Clock and Fluorescence Monitor are not saved. Furthermore, if the total number of bins requested for all histograms exceeds the maximum event size allowed by MIDAS, the histogram bin size will be reduced to 16 bits from 32 (the default). The histograms will be sent out from the frontend in 4 chunks, and reassembled by the data logger (mdarc) before being saved.

Revision as of 17:10, 6 July 2018


Links

Cycle Scalers

In the frontend, data read from the VME scaler(s) (SIS3801 or SIS3820) after each PPG cycle (known as Cycle Scaler Data). The data consists of arrays containing the counts in each time bin for each active input channel. The cycle scaler data are read into histograms.

Also the data from each scaler channel are summed, and assymmetries and ratios are calculated. The Cycle Scaler data sums and calculated data are output as MIDAS bank HSCL, and sent to the ODB under /Equipment/Cycle_Scalers.

For bnmr, the Front and Back Cycle data sums (Scaler A) are added together and used to check against the threshold. For bnqr sums of the Neutral Beam counters are used for thresholds.

Frontend Histograms

The number of frontend histograms into which the scaler data are saved is greater than the number of active scaler channels. For example, some scaler data are saved in separate histograms according to the helicity. In the case of Type 1 runs, the histograms are sent out every cycle, whereas for Type 2 the histograms are accumulated in the frontend memory, and sent out every few minutes. A data logger running on the host computer saves the data onto disk. The data is handled differently for Type 1 and Type 2 runs. For Type 1 runs, the data are saved in a MIDAS file by the MIDAS logger [1], and converted to MUD format by the custom logger mdarc. For Type 2 runs, mdarc saved the data directly in a MUD file, and no MIDAS file is produced.

The histograms and data logging will therefore be described separately for Type 1 and Type 2 runs.


Scaler Channels : Hardware Connections

Currently,

  • experiment bnmr has two SIS3801 scalers known as Scaler A and Scaler B
  • experiment bnqr has one SIS3820 scaler, Scaler B
NOTE
The sis3820 scaler is needed for bnqr alpha mode as it has a larger buffer and greater resolution.

BNMR

Table 1 : BNMR Scaler A Channels
Scaler Module Channel Contents
A SIS3801 1 Front scalers (16 segments summed in hardware)
2 Front scalers (16 segments summed in hardware)
Total number of real scaler inputs : 2


Table 2 : BNMR Scaler B Channels
Scaler Module Channel Contents
B SIS3801 1 Scaler Internal Clock (not connected)
2 Fluorescence Monitor (not used)
3,4 Polarimeter counters (2)
5,6,7,8 Neutral Beam Forwards counters (4)
9,10,11,12 Neutral Beam Backwards counters (4)
Total number of real scaler inputs : 12


BNQR

Table 3 : BNQR Scaler B Channels
Scaler Module Channel Contents
B SIS3820 * 1 Scaler Internal Clock (not connected)
17 Fluorescence Monitor (not used)
18,19 Polarimeter counters (2)
20 Neutral Beam Forwards counter (summed in hardware)
21 Neutral Beam Backwards counter (summed in hardware)
22,23,24,25 Alpha Counters
Total number of real scaler inputs : 10
NOTE
* SIS3820 module has ECL inputs 1-16, NIM 17-32. Therefore BNQR's input channel start at 17 (NIM).



Midas histograms built in the frontend

Histograms are built in the frontend (VMIC) using the data from the Scalers - see Cycle Scalers.
The scaler inputs are listed in scaler connections.

Type 1 Histograms

Type 1 histograms only includes data from last cycle.

Scaler A BNMR only

Table 4: Scaler A histograms (bnmr only)

Scaler A
Histogram no.
Midas Bankname
sum Back scalers
h0
HIBP
sum Front scalers
h1
HIFP
userbits
h2
UBIT
Total number of BNMR Scaler A histograms: 3

Scaler B BNMR only

The Type 2 histograms built from data from Scaler B are shown in Table 5.

Table 5 : Scaler B histograms (bnmr)

Scaler B
Histogram no.
Midas Bankname
sum scaler B (scaler clock)
h3
HM00
sum scaler B (fluorescence mon)
h4
HM01
sum scaler B (pol monitor 1)
h5
HM02
sum scaler B 3 (pol monitor 2)
h6
HM03
sum scaler B (Backwards  neutral beam monitors)
h7
HM04
sum scaler B (Forwards  neutral beam monitors)
h8
HM05
Total number of BNMR Scaler B histograms: 6

Total number of histograms from both scalers: 9 bnmr

Scaler B BNQR only

The Type 2 histograms built for bnqr from data from Scaler B are shown in Table 6. For Alpha Mode (1h) only, four extra histograms are built containing the data from the Alpha counters.

Table 6 : Scaler B histograms (bnqr)


Scaler B
Histogram no.
Midas Bankname
sum scaler B (scaler clock)
h1
HM00
sum scaler B (fluorescence mon)
h2
HM01
sum scaler B (pol monitor 1)
h3
HM02
sum scaler B 3 (pol monitor 2)
h4
HM03
sum scaler B (Backwards  neutral beam monitors)
h5
HM04
sum scaler B (Forwards  neutral beam monitors)
h6
HM05
userbits
h7
UBIT**
Total number of BNQR histograms: 7
Alpha mode (1h) only
Alpha1
h7
HM06
Alpha2
h8
HM07
Alpha3
h9
HM08
Alpha4
h10
HM09
userbits
h11
UBIT **
Total number of BNQR histograms (Alpha mode): 11
NOTE
** Userbit bank is always the final bank


Type 2 Histograms

For Type 2 (TD style), Midas histograms are built in the PPC frontend.

Histograms accumulate through the run and are sent periodically to be saved by the data logger mdarc.

Scaler A BNMR only

The histograms built with data from Scaler A are shown in Table 7. Note that the fifth histogram (userbits) is built in the frontend for BNMR Mode 2s only.


Table 7: Scaler A histograms (bnmr only)


Contents

Helicity

Bank Name

Histogram Name

Back Scalers + 1 HIBP B+
Front Scalers + 1 HIFP F+
Back Scalers - 0 HIBN B-
Front Scalers - 0 HIFN F-
Userbits n/a USER

Scaler B BNMR and BNQR

The following histograms using data from Scaler B are sent out for bnmr and all bnqr modes except for Sample/Reference and Alpha Modes. See Sample/Reference histograms and BNQR Alpha Mode (2h)#Alpha Histograms for details.


10 Histograms from Scaler B:
Total histograms  : 10 for BNQR, 14 for BNMR
 

Table 8: Scaler B histograms (bnmr and bnqr)

Contents

Helicity
Scaler

Bank Name

Histogram Name

Reference Ticks n/a B HMF1 Const
Fluorescence monitor n/a B HMF2 FluM2
Polarimeter Left + 1 B HMLP L+
Polarimeter Right + 1 B HMRP R+
Polarimeter Left - 0 b HMLN L-
Polarimater Right  - 0 B HMRN R-
 Neutral Beam Backwards + 1 B HMBP NBMB+
 Neutral Beam Forwards + 1 B HMFP NBMF+
 Neutral Beam Backwards - 0 B HMBN NBMB-
 Neutral Beam Forwards - 0 B HMFN NBMF-


Scaler B BNQR Sample/Reference Mode

Some of the modes on BNQR can be run in sample/reference mode. An external signal is alternately turned on/off and the scaler data is sent to a different set of histograms depending on the state of the sample/reference signal. This mode is not supported for bnmr.

Table 9a: Scaler B histograms bnqr sample/reference


Contents

Helicity
Sample/Ref

Bank Name

Histogram Name

Reference Ticks n/a n/a HMF1 Const
Fluorescence monitor n/a n/a HMF2 FluM2
Polarimeter Left + 1 R HMLP L+
Polarimeter Right + 1 R HMRP R+
Polarimeter Left - 0 R HMLN L-
Polarimater Right  - 0 R HMRN R-
 Neutral Beam Backwards + 1 R HMBP NBMB+
 Neutral Beam Forwards + 1 R HMFP NBMF+
 Neutral Beam Backwards - 0 R HMBN NBMB-
 Neutral Beam Forwards - 0 R HMFN NBMF-
Polarimeter Left + 1 S HMLP
Polarimeter Right + 1 S HMRP
Polarimeter Left - 0 S HMLN
Polarimater Right  - 0 S HMRN
 Neutral Beam Backwards + 1 S HMBP
 Neutral Beam Forwards + 1 S HMFP
 Neutral Beam Backwards - 0 S HSBN
 Neutral Beam Forwards - 0 S HSFN



Scaler B BNQR Alpha Mode (2h)

Alpha Mode (mode 2h) involves very long histograms with a very short bin width. To save space, histograms for the Reference Clock and Fluorescence Monitor are not saved. Furthermore, if the total number of bins requested for all histograms exceeds the maximum event size allowed by MIDAS, the histogram bin size for all histograms will be reduced to 16 bits from 32 (the default). The histograms will be sent out from the frontend in 4 chunks, and reassembled by the data logger (mdarc) before being saved. The histograms sent from the frontend in Alpha Mode are shown in Table 10. Alpha mode is not supported for bnmr.

Table 10: Scaler B histograms bnqr Alpha Mode

Contents

Helicity

Bank Name

Histogram Name

Polarimeter Left + 1 HMLP L+
Polarimeter Right + 1 HMRP R+
Polarimeter Left - 0 HMLN L-
Polarimater Right  - 0 HMRN R-
 Neutral Beam Backwards + 1 HMBP NBMB+
 Neutral Beam Forwards + 1 HMFP NBMF+
 Neutral Beam Backwards - 0 HMBN NBMB-
 Neutral Beam Forwards - 0 HMFN NBMF-
Alpha1+ 1 HA0P
Alpha2+ 1 HA1P
Alpha3+ 1 HA2P
Alpha4+ 1 HA3P
Alpha1- 0 HA0N
Alpha2- 0 HA1N
Alpha3- 0 HA2N
Alpha4- 0 HA3N