ucesb status
Bastian Löher March 2017 TU Darmstadt
G S I H e l m h
- l
t z z e n t r u m f ü r S c h w e r i
- n
e n f
- r
s c h u n g G m b H
ucesb status Bastian Lher March 2017 TU Darmstadt G S I H e - - PowerPoint PPT Presentation
ucesb status Bastian Lher March 2017 TU Darmstadt G S I H e l m h o l t z z e n t r u m f r S c h w e r i o n e n f o r s c h u n g G m b H Last workshop (July 2015) Unpackers for each
G S I H e l m h
t z z e n t r u m f ü r S c h w e r i
e n f
s c h u n g G m b H
DAQ LMD R³BROOT Unpack & Map
Reconstruction Calib tools Calib Params ROOT Live Display DAQ WG R³BROOT WG User
external writer
ucesb hbook writer ntuple writer struct writer
DAQ LMD R³BROOT Unpack & Map
Reconstruction Calib tools Calib Params ROOT Live Display DAQ WG R³BROOT WG User
DAQ LMD R³BROOT Unpack & Map (ucesb)
Reconstruction Calib tools Calib Params ROOT Live Display DAQ WG R³BROOT WG User
– Why not reuse?
– Why not do it in a consistent manner?
– Why reinvent the wheel?
– R3BUcesbSource: Start unpacker and establish connection via
– R3BReader: Base class for extracting data from ucesb event – R3BPtofReader: Derived detector specifjc reader class
external writer ucesb struct writer external client R3BROOT e t h e r n e t p i p e
– Generated via ucesb:
– Needs to be modifjed (currently by hand), see existing
– Init(): Calls EXT_STR_h101_<det>_ITEMS_INFO – Read(): Copies data from ucesb structure into R3Broot data
struct { EXT_STR_h101_det1 det1; EXT_STR_h101_det2 det2; } EXT_STR_h101;
See: https://github.com/R3BRootGroup/R3BRoot/blob/dev/macros/r3b/unpack/ucesb/run_empty.C
EXT_STR_h101 event;
source = new R3BUcesbSource(file, options, ucesb, &event, sizeof(event));
See: https://github.com/R3BRootGroup/R3BRoot/blob/dev/macros/r3b/unpack/ucesb/run_empty.C
det2 = new Det2Reader(&event.det2, offsetof(EXT_STR_h101, det2)); source AddReader(det2); →
See: https://github.com/R3BRootGroup/R3BRoot/blob/dev/macros/r3b/unpack/ucesb/run_empty.C
From: https://github.com/R3BRootGroup/R3BRoot/tree/dev/r3bsource
– Get it here: git clone /u/land/bloeher/s438b/upexps – Check out: git checkout for_r3broot_workshop
– Get it here: /SAT/nyx/land/jun2016/stitched/… – Or cached: /d/land2/bloeher/nyx_cache/jun2016/… – Contains data from Tofd detector