Tutorial to run simple analysis on GRPC May 2010 test

Introduction on data format

The data are now stored in LCIO format in 2 kinds of collections:

  • Raw data, i.e DIF buffer, are stored as an integer array in a GenericObject collection called RU_XDAQ
  • RawCalorimeterHits, the frames are decoded and hits are stored in a RawCalorimeterHit collection called DHCALRawHits

The format of the RawCalorimeterHIt is the following:

Table 1: Format of the RawCalorimeter hit for DHCAL
Field Content
ID0 bit 0-7 DIF Id
ID0 bit 8-15 Asic Id
ID0 bit 16-21 Channel
ID0 bit 22-31 Module
ID1 Bunch crossing time (in clock unit)
Amplitude threshold's bits
TimeStamp distance in clock unit to trigger


The slow control parameters of HardRoc (version 1 or 2 ) are stored as parameters of the run header with the following syntax:

DIF_Asic_parameter.

Code

The code can be downloaded from svn

The main class is the DHCalEventReader, it controls the input/output of the data. It can read and write LCIO files and also build the RU_XDAQ entries from a memory buffer. It builds the DHCALRawHits collection from the RU_XDAQ one. Finally it includes a mechanism to run several analysis on the built event.

--++ Installation

Two additional packages has to be installed to run this code:

  • LCIO in the directory pointed by the variable LCIODIR
  • ROOT in the directory pointed by the variable ROOTSYS

--+++ Compilation

The following lines have to be added to the .bashrc file to use the makefile

export ROOTSYS=/usr/local/root
export PATH=${ROOTSYS}/bin:$PATH
export LCIODIR=/data/online/lcio/v01-12/
export LD_LIBRARY_PATH=${LCIODIR}/lib:${ROOTSYS}/lib:$LD_LIBRARY_PATH
-- LaurentMirabito - 15-Jul-2010
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r3 - 2010-07-20 - LaurentMirabito
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    CALICE All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback