New analysis code being developed for 2014 data format

New code is being developed by Daniel Arcaro with help from Eric Hazen and Dan Gastler to analyze the new/final data format documented here: AMC13CommonFirmwareProposal.

A preliminary API is documented below. Three classes are foreseen:

Class Description
FedEvent one event fragment as received from an AMC13 in response to a single L1A
FedAmc Payload for one AMC
AMC13Block internal block structure of event fragment

Each class is documented below:

Class FedEvent

Function Description
FedEvent( uint64_t* data, size_t size) Constructor using raw data
EvN(), BcN(), OrN() Access Event, Bunch and Orbit numbers from event header
vector amc Vector of 1...12 FedAmc objects representing AMC payloads
CalcSize() Size calculated from structure (should match total word count)
CRC() CRC16 from event trailer
CalcCRC() CRC16 calculated from event data (should match CRC())

FedAmc

For preliminary HCAL data format used through 2013

I've developed a simple unpacker and some command-line tools to dump and error-check the data from the VME system or the new MicroTCA system (data formats are a bit different). The original version was developed as a CMSSW job "EricDIM" TWiki page.

To get the tools from our svn and build them:

  $ svn co svn://cms1.bu.edu/Eric
  $ cd Eric/RawAnalysis
  $ make
  $ ./dump_DTC.exe
  usage:  dump_DTC.exe [options] file_name
    -e (check for sequential EvN)
    -h (check for uHTR EvN)
    -v (verbose)
    -d 
       1=DTC header 2=uHTR headers  3=uHTR payload
  $

If you run e.g. ./dump_DTC.exe -h dump1.dat it will check the file dump1.dat for EvN, BcN and OrN errors. The data format is documented here. ("HCAL Upgrade Data Format", latest version).

-- EricHazen - 18 Oct 2013

Edit | Attach | Watch | Print version | History: r22 | r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r2 - 13 Jun 2014 - EricHazen
 
  • Edit
  • Attach
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback