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:
Each class is documented below:
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() ) |
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