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 16: Line 16:


=== Scaler Channels : Hardware Connections ===
=== Scaler Channels : Hardware Connections ===
Currently,
* experiment  <span style="color:#7b68ee; font-style=italic">bnmr</span> has two SIS3801 scalers
* experiment <span style="color:#20b2aa; font-style=italic">bnqr</span> has one SIS3820 scaler
<div id="sis3820_note"></div>
; NOTE
: 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
! Scaler !! Module!!Experiment !! Channel !! Contents
! Scaler !! Module !! Channel !! Contents
|-   
|-   
| colspan="1" rowspan="2" style="width:10%; text-align:center" | A  
| colspan="1" rowspan="2" style="width:10%; text-align:center" | A  
| colspan="1" rowspan="2" style="width:20%; text-align:center" | SIS3801  
| colspan="1" rowspan="2" style="width:20%; text-align:center" | SIS3801  
| colspan="1" rowspan="2" style="width:10%; text-align:center" | BNMR
| 1 || Front scalers (16 segments summed in hardware)
| 1 || Front scalers (16 segments summed in hardware)
|-
|-
| 2 || Front scalers (16 segments summed in hardware)
| 2 || Front scalers (16 segments summed in hardware)
|-
|-
| colspan="5" style="background-color:#ccccff; font-weight:bold; text-align:center;"| Total number of real scaler inputs : 2
| colspan="4" style="background-color:#ccccff; font-weight:bold; text-align:center;"| Total number of real scaler inputs : 2
|}
|}


Line 34: Line 41:
{|  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 2 : BNMR Scaler B Channels
|+  Table 2 : BNMR Scaler B Channels
! Scaler !! Module!!Experiment !! Channel !! Contents
! Scaler !! Module !! Channel !! Contents
|-   
|-   
| colspan="1" rowspan="5" style="width:10%; text-align:center" | B  
| colspan="1" rowspan="5" style="width:10%; text-align:center" | B  
| colspan="1" rowspan="5" style="width:20%; text-align:center" | SIS3801  
| colspan="1" rowspan="5" style="width:20%; text-align:center" | SIS3801  
| colspan="1" rowspan="5" style="width:10%; text-align:center" | BNMR
| 1 || Scaler Internal Clock (not connected)
| 1 || Scaler Internal Clock (not connected)
|-
|-
Line 49: Line 55:
| 9,10,11,12 || Neutral Beam Backwards counters (4)
| 9,10,11,12 || Neutral Beam Backwards counters (4)
|-
|-
| colspan="5" style="background-color:#ccccff; font-weight:bold; text-align:center;"| Total number of real scaler inputs : 12
| colspan="4" style="background-color:#ccccff; font-weight:bold; text-align:center;"| Total number of real scaler inputs : 12
|}
|}


Line 56: Line 62:
{|  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   
! Scaler !! Module!!Experiment !! Channel !! Contents
! Scaler !! Module!! Channel !! Contents
|-   
|-   
| colspan="1" rowspan="6" style="width:10%; text-align:center" | B  
| colspan="1" rowspan="6" style="width:10%; text-align:center" | B  
| colspan="1" rowspan="6" style="width:20%; text-align:center" | SIS3820 <span style=color:red>**</span>
| colspan="1" rowspan="6" style="width:20%; text-align:center" | SIS3820 <span style=color:red>*</span>
| colspan="1" rowspan="6" style="width:10%; text-align:center" | BNQR
| 1 || Scaler Internal Clock (not connected)
| 1 || Scaler Internal Clock (not connected)
|-
|-
Line 73: Line 78:
| 22,23,24,25 || Alpha Counters
| 22,23,24,25 || Alpha Counters
|-
|-
| colspan="5" style=" background-color: #e6ffff; font-weight:bold; text-align:center;"| Total number of real scaler inputs : 10
| colspan="4" style=" background-color: #e6ffff; font-weight:bold; text-align:center;"| Total number of real scaler inputs : 10
|}
|}


;NOTE
;NOTE
:  <span style=color:red>**</span> SIS3820 module has ECL inputs 1-16, NIM 17-32. Therefore BNQR's input channel start at 17 (NIM).
:  <span style=color:red>*</span> SIS3820 module has ECL inputs 1-16, NIM 17-32. Therefore BNQR's input channel start at 17 (NIM).




Line 92: Line 97:
<tr>
<tr>
<td><b>Scaler A</b></td>
<td><b>Scaler A</b></td>
<td><b>Channel</b></td>
<td>
<td>
<center><b>Histogram no.</b></center>
<center><b>Histogram no.</b></center>
Line 104: Line 108:
<tr>
<tr>
<td>sum Back scalers</td>
<td>sum Back scalers</td>
<td>0</td>
<td>
<td>
<center>h0</center>
<center>h0</center>
Line 116: Line 119:
<tr>
<tr>
<td>sum Front scalers</td>
<td>sum Front scalers</td>
<td>1</td>
<td>
<td>
<center>h1</center>
<center>h1</center>
Line 128: Line 130:
<tr>
<tr>
<td>userbits</td>
<td>userbits</td>
<td></td>
<td>
<td>
<center>h2</center>
<center>h2</center>
Line 138: Line 138:
</td>
</td>


<tr><td colspan=4 style="font-weight:bold; text-align:center; background-color:#ccccff;"> Total number of histograms: 3</td></tr>
<tr><td colspan=4 style="font-weight:bold; text-align:center; background-color:#ccccff;"> Total number of BNMR Scaler A histograms: 3</td></tr>
</table>
</table>


Line 146: Line 146:
<tr>
<tr>
<td><b>Scaler B </b></td>
<td><b>Scaler B </b></td>
<td><b>Channel</b></td>


<td>
<td>
Line 159: Line 158:
<tr>
<tr>
<td>sum scaler B (scaler clock)</td>
<td>sum scaler B (scaler clock)</td>
<td>1</td>
<td>
<td>
<center>h3</center>
<center>h3</center>
Line 171: Line 169:
<tr>
<tr>
<td>sum scaler B (fluorescence mon)</td>
<td>sum scaler B (fluorescence mon)</td>
<td>2</td>
<td>
<td>
<center>h4</center>
<center>h4</center>
Line 183: Line 180:
<tr>
<tr>
<td>sum scaler B  (pol monitor 1)</td>
<td>sum scaler B  (pol monitor 1)</td>
<td>3</td>
<td>
<td>
<center>h5</center>
<center>h5</center>
Line 195: Line 191:
<tr>
<tr>
<td>sum scaler B 3 (pol monitor 2)</td>
<td>sum scaler B 3 (pol monitor 2)</td>
<td>4</td>
<td>
<td>
<center>h6</center>
<center>h6</center>
Line 207: Line 202:
<tr>
<tr>
<td>sum scaler B (Backwards&nbsp; neutral beam monitors)</td>
<td>sum scaler B (Backwards&nbsp; neutral beam monitors)</td>
<td>5-8</td>
<td>
<td>
<center>h7</center>
<center>h7</center>
Line 219: Line 213:
<tr>
<tr>
<td>sum scaler B  (Forwards&nbsp; neutral beam monitors)</td>
<td>sum scaler B  (Forwards&nbsp; neutral beam monitors)</td>
<td>9-12</td>
<td>
<td>
<center>h8</center>
<center>h8</center>
Line 228: Line 221:
</td>
</td>
</tr>
</tr>
<tr><td colspan=4 style="font-weight:bold; text-align:center; background-color:#ccccff;"> Total number of histograms: 6</td></tr>
<tr><td colspan=4 style="font-weight:bold; text-align:center; background-color:#ccccff;"> Total number of BNMR Scaler B histograms: 6</td></tr>
</table>
</table>


 
'''Total number of histograms from both scalers: 9 '''  {{bnmr}}




Line 238: Line 231:
<tr>
<tr>
<td><b>Scaler B </b></td>
<td><b>Scaler B </b></td>
<td><b>Channel</b></td>


<td>
<td>
Line 248: Line 240:
</td>
</td>
</tr>
</tr>


<tr>
<tr>
<td>sum scaler B (scaler clock)</td>
<td>sum scaler B (scaler clock)</td>
<td>1</td>
<td>
<td>
<center>h3</center>
<center>h1</center>
</td>
</td>


Line 263: Line 255:
<tr>
<tr>
<td>sum scaler B (fluorescence mon)</td>
<td>sum scaler B (fluorescence mon)</td>
<td>17</td>
<td>
<td>
<center>h4</center>
<center>h2</center>
</td>
</td>


Line 275: Line 266:
<tr>
<tr>
<td>sum scaler B  (pol monitor 1)</td>
<td>sum scaler B  (pol monitor 1)</td>
<td>18</td>
<td>
<td>
<center>h5</center>
<center>h3</center>
</td>
</td>


Line 287: Line 277:
<tr>
<tr>
<td>sum scaler B 3 (pol monitor 2)</td>
<td>sum scaler B 3 (pol monitor 2)</td>
<td>19</td>
<td>
<td>
<center>h6</center>
<center>h4</center>
</td>
</td>


Line 299: Line 288:
<tr>
<tr>
<td>sum scaler B (Backwards&nbsp; neutral beam monitors)</td>
<td>sum scaler B (Backwards&nbsp; neutral beam monitors)</td>
<td>20</td>
<td>
<td>
<center>h7</center>
<center>h5</center>
</td>
</td>


Line 311: Line 299:
<tr>
<tr>
<td>sum scaler B  (Forwards&nbsp; neutral beam monitors)</td>
<td>sum scaler B  (Forwards&nbsp; neutral beam monitors)</td>
<td>21</td>
<td>
<td>
<center>h8</center>
<center>h6</center>
</td>
</td>


Line 324: Line 311:
<td>userbits</td>
<td>userbits</td>


<td></td>
<td>
<td>
<center>h2</center>
<center>h7</center>
</td>
</td>


<td>
<td>
<center>UBIT</center>
<center>UBIT<span style=color:red>**</span></center>
</td>
</td>
</tr>
<tr><td colspan=3 style="font-weight:bold; text-align:center; background-color:#e6ffff;"> Total number of BNQR histograms: 7</td></tr>


<tr><td colspan=4 style="font-weight:bold; text-align:center; background-color:#e6ffff;"> Total number of histograms: 7</td></tr>
</table>


<!-- Alpha Mode -->
<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;">
<td>Alpha1</td>
<td>
<center>h7</center>
</td>


<td>
<center>HM06</center>
</td>
</tr>




'''Table 7 : Scaler B histograms in Alpha mode '''  ({{bnqr}})
<tr style="background-color:#94b8b8;">
<table BORDER WIDTH="50%" NOSAVE  style="background-color: #b3ffff;">
<td>Alpha2</td>
<tr>
<td><b>Scaler B </b></td>
<td><b>Channel</b></td>
 
<td>
<td>
<center><b>Histogram no.</b></center>
<center>h8</center>
</td>
</td>


<td>
<td>
<center><b>Midas Bankname</b></center>
<center>HM07</center>
</td>
</td>
</tr>
</tr>


<tr>
 
<td>sum scaler B (scaler clock)</td>
<tr style="background-color:#94b8b8;">
<td>1</td>
<td>Alpha3</td>
<td>
<td>
<center>h3</center>
<center>h9</center>
</td>
</td>


<td>
<td>
<center>HM00</center>
<center>HM08</center>
</td>
</td>
</tr>
</tr>


<tr>
 
<td>sum scaler B (fluorescence mon)</td>
<tr style="background-color:#94b8b8;">
<td>17</td>
<td>Alpha4</td>
<td>
<td>
<center>h4</center>
<center>h10</center>
</td>
</td>


<td>
<td>
<center>HM01</center>
<center>HM09</center>
</td>
</td>
</tr>
</tr>


<tr>
<tr style="background-color:#94b8b8;">
<td>sum scaler B  (pol monitor 1)</td>
<td>userbits</td>
<td>18</td>
 
<td>
<td>
<center>h5</center>
<center>h11</center>
</td>
</td>


<td>
<td>
<center>HM02</center>
<center>UBIT <span style=color:red>**</span></center>
</td>
</td>
</tr>
</tr>


<tr>
<tr><td colspan=4 style="font-weight:bold; text-align:center; background-color:#d1e0e0;"> Total number of BNQR histograms (Alpha mode): 11</td></tr>
<td>sum scaler B 3 (pol monitor 2)</td>
</table>
<td>19</td>
 
;NOTE
:<span style=color:red>**</span> Userbit bank is always the final bank
 
 
=== Type 2 ===
 
 
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 BORDER COLS=6 WIDTH=50% style="background-color: #e6e6ff;" NOSAVE >
<tr style="text-align:center;font-weight:bold">
<td>
<td>
<center>h6</center>
Contents
</td>
</td>
<td>Helicity </td>


<td>
<td>
<center>HM03</center>
<center>Scaler</center>
</td>
</td>
</tr>


<tr>
<td>sum scaler B (Backwards&nbsp; neutral beam monitors)</td>
<td>20</td>
<td>
<td>
<center>h7</center>
Bank Name
</td>
</td>


<td>
<td>
<center>HM04</center>
Histogram Name
</td>
</td>
</tr>
</tr>


<tr>
<tr style="text-align:center;">
<td>sum scaler B (Forwards&nbsp; neutral beam monitors)</td>
<td>Back Scalers '''+'''</td>
<td>21</td>
 
<td>1</td>
 
<td>A</td>
 
<td>HIBP</td>
<td>B+</td>
</tr>
 
<tr style="text-align:center;">
<td>Front Scalers '''+'''</td>
 
<td>1</td>
 
<td>A</td>
 
<td>HIFP</td>
 
<td>F+</td>
</tr>
 
<tr style="text-align:center;">
<td>Back Scalers '''-'''</td>
 
<td>0</td>
 
<td>A</td>
 
<td>HIBN</td>
 
<td>B-</td>
</tr>
 
<tr style="text-align:center;">
<td>Front Scalers '''-'''</td>
 
<td>0</td>
 
<td>A</td>
 
<td>HIFN</td>
 
<td>F-</td>
</tr>
</table>
 
 
 
'''Table 8: Scaler B histograms '''  ({{bnmr}} and {{bnqr}})
<table BORDER COLS=6 WIDTH=50% style="background-color: whitesmoke;" NOSAVE >
<tr style="text-align:center;font-weight:bold">
<td>
<td>
<center>h8</center>
Contents
</td>
</td>
<td>Helicity </td>


<td>
<td>
<center>HM05</center>
<center>Scaler</center>
</td>
</td>
</tr>


<tr>
<td>Alpha1</td>
<td>22</td>
<td>
<td>
<center>h9</center>
Bank Name
</td>
</td>


<td>
<td>
<center></center>
Histogram Name
</td>
</td>
</tr>
</tr>


<tr style="text-align:center;">
<td>Reference Ticks</td>
<td>n/a</td>
<td>B</td>
<td>HMF1</td>
<td>Const</td>
</tr>
<tr style="text-align:center;">
<td>Fluorescence monitor</td>
<td>n/a</td>
<td>B</td>
<td>HMF2</td>
<td>FluM2</td>
</tr>
<tr style="text-align:center;">
<td>Polarimeter Left '''+'''</td>
<td>1</td>
<td>B</td>
<td>HMLP</td>
<td>L+</td>
</tr>
<tr style="text-align:center;">
<td>Polarimeter Right '''+'''</td>
<td>1</td>
<td>B</td>
<td>HMRP</td>
<td>R+</td>
</tr>
<tr style="text-align:center;">
<td>Polarimeter Left '''-'''</td>
<td>0</td>
<td>2</td>
<td>HMLN</td>
<td>L-</td>
</tr>
<tr style="text-align:center;">
<td>Polarimater Right&nbsp; '''-'''</td>


<tr>
<td>0</td>
<td>Alpha2</td>
 
<td>23</td>
<td>3</td>
<td>
 
<center>h10</center>
<td>HMRN</td>
</td>
 
<td>R-</td>
</tr>
 
<tr style="text-align:center;">
<td>&nbsp;Neutral Beam Backwards '''+'''</td>
 
<td>1</td>
 
<td>B</td>


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


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


<tr>
<td>HMFP</td>
<td>Alpha3</td>
<td>24</td>
<td>
<center>h11</center>
</td>


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


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


<tr>
<td>0</td>
<td>Alpha4</td>
 
<td>25</td>
<td>B</td>
<td>
 
<center>h12</center>
<td>HMBN</td>
</td>


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


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


<td></td>
<td>B</td>
<td>
<center>h13</center>
</td>


<td>
<td>HMFN</td>
<center>UBIT</center>
</td>


<tr><td colspan=4 style="font-weight:bold; text-align:center; background-color:#e6ffff;"> Total number of histograms: 7</td></tr>
<td>NBMF-</td>
</tr>
</table>
</table>
<!-- alpha <tr style="background-color:#cae6e3; color:white;">  -->

Revision as of 16:46, 5 July 2018


Links

Introduction

In the 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.

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

Front-end histograms and Cycle Scalers

Scaler Channels : Hardware Connections

Currently,

  • experiment bnmr has two SIS3801 scalers
  • experiment bnqr has one SIS3820 scaler
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

Type 1

Only includes data from last cycle.


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


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


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

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

Histograms accumulate through the run

4 histograms from Scaler A:       
10 Histograms from Scaler B:
Total histograms  : 10 for BNQR, 14 for BNMR
  Table 7: Scaler A histograms (bnmr only)

Contents

Helicity
Scaler

Bank Name

Histogram Name

Back Scalers + 1 A HIBP B+
Front Scalers + 1 A HIFP F+
Back Scalers - 0 A HIBN B-
Front Scalers - 0 A HIFN F-


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 2 HMLN L-
Polarimater Right  - 0 3 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-