Difference between revisions of "ROC Configuration File to User Event"

From Hall A Wiki
Jump to: navigation, search
(xml format)
(hex dump)
Line 6: Line 6:
  
 
=== hex dump ===
 
=== hex dump ===
+
 
  0x7A75F    # Length of User Event
+
  0x0007A75F  # Length of User Event
  0x821000   # User Event Header ( Tag = 130, num = 0, type = Bank of Banks)
+
  0x00891000   # User Event Header ( Tag = 137, num = 0, type = Bank of Banks)
  0x290      #  Length of Bank
+
  0x00000290  #  Length of Bank
  0x64301    #  Bank Header ( Tag = 6 = ROCID, Num = 0, type = string)
+
  0x00064301  #  Bank Header ( Tag = 6 = ROCID, Num = 0, type = string)
   ....     #    ... file0 dump ...
+
   ....       #    ... file0 dump ...
  0x7A4CC    #  Length of Bank
+
  0x0007A4CC  #  Length of Bank
  0x60302    #  Bank Header ( Tag = 6 = ROCID, Num = 1, type = string)
+
  0x00060302  #  Bank Header ( Tag = 6 = ROCID, Num = 1, type = string)
   ....     #    ... file1 dump ...
+
   ....       #    ... file1 dump ...
  
 
=== xml format ===
 
=== xml format ===

Revision as of 03:03, 13 October 2021

Here we'll describe the user event structure that contains the configuration files used by the ROCs to initialize various modules and settings.


Example User Event Structure

hex dump

0x0007A75F   # Length of User Event
0x00891000   # User Event Header ( Tag = 137, num = 0, type = Bank of Banks)
0x00000290   #   Length of Bank
0x00064301   #   Bank Header ( Tag = 6 = ROCID, Num = 0, type = string)
 ....        #     ... file0 dump ...
0x0007A4CC   #   Length of Bank
0x00060302   #   Bank Header ( Tag = 6 = ROCID, Num = 1, type = string)
 ....        #     ... file1 dump ...

xml format

 <!-- ===================== Buffer 3 contains 501600 words (2006400 bytes) ===================== -->

   <!-- header words: 501599, 0x891000 -->
   <event format="evio" count="3" content="bank" data_type="0x10" tag="137" padding="0" num="0" length="501599" ndata="501598">

      <!-- header words: 656, 0x64301 -->
      <bank content="string" data_type="0x3" tag="6" padding="1" num="1" length="656" ndata="1">
             ... file0 dump ...
      </bank>
      <!-- header words: 500940, 0x60302 -->
      <bank content="string" data_type="0x3" tag="6" padding="0" num="2" length="500940" ndata="1">
             ... file1 dump ...
      </bank>
   </event>

   <!-- end buffer 3 -->

 

jeviodmp capture

Jeviodmp.png