1 / 13

TRB / HADAQ plug-ins for DABC and Go4 Jörn Adamczewski-Musch

TRB / HADAQ plug-ins for DABC and Go4 Jörn Adamczewski-Musch GSI, Experiment Electronics: Data Processing group EE-meeting, 23.07.2012. Outline. Motivation Go4 trb v2/v3 unpacker and .hld user event source DABC plugin for hadaq Tests and Experience Conclusions. 2. Motivation.

swaimm
Download Presentation

TRB / HADAQ plug-ins for DABC and Go4 Jörn Adamczewski-Musch

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. TRB / HADAQ plug-ins for DABC and Go4 Jörn Adamczewski-Musch GSI, Experiment Electronics: Data Processing group EE-meeting, 23.07.2012 Jörn Adamczewski-Musch

  2. Outline • Motivation • Go4 trb v2/v3 unpacker and .hld user event source • DABC plugin for hadaq • Tests and Experience • Conclusions Jörn Adamczewski-Musch 2

  3. Motivation • Goal: Integration of TRB frontends to CBM (PANDA, R3B?) test DAQ • Read out TRB data with DAQ software DABC • Combine hadaq events with mbs/roc/spadic data (common trigger or sync message) • Data analysis with Go4 framework (process hadaq .hld files) • Online monitoring with Go4 (at DABC stream server) Jörn Adamczewski-Musch 3

  4. Go4 implementations • File input for .hld files (THadaqEventSource) • knows HADES hadtu / event / subevent formats • each hadaq event is wrapped “as is” in a MBS subevent • MBS output event is passed to subsequent unpacker • Data analysis class (THadaqUnpackProc) • Can dump any hadaq-formatted data • Unpacking and histogramming of TRB v2 and v3 formats • Time bin correction/calibration • Channel correlations + delta t evaluation (configurable) • Special MCP mapping for PANDA-DIRC / Mainz (Cahit Ugur) • Repository: https://subversion.gsi.de/go4/trunk/applications/hadaq-go4 Jörn Adamczewski-Musch 4

  5. Hadaq-go4 data flow THadaqEventSource THadaqUnpackProc TGo4MbsSubEvent THadaqUnpackEvent TGo4MbsEvent Unpack, analysis File Input std::vector<UShort_t> fLCoarseTime std::vector<UShort_t> fLFineTime std::vector<UShort_t> fTCoarseTime std::vector<UShort_t> fTFineTime .hld file “MBS Container” Jörn Adamczewski-Musch 5

  6. Go4 trbmonitor for CBM testbeam monitoring “Unpacker” step “Detector” step “Tracking” step MBScontainer Detector Event DAQEvent Tracks Event DABC processor processor processor DET1 Track1 MBS DET1 MBS TRB Tracker TRB DAQ DETN ROC DETN TrackN ROC Composite processor TTrbProc ROOT Tree i/o Composite Event TTrbEvent hadaq-go4 adjusted to CBM beamtime framework (classes TTrb*.cxx): https://subversion.gsi.de/cbm/ROC/trunk/onlinemonitor/trbmonitor Jörn Adamczewski-Musch 6

  7. DABC hadaq plugin CBM beam tests • Read .hld files • Wrap hadaq event into MBS subevent • export to .lmd file or stream server (-> Go4) • combine hadaq and mbs data (to do!) • Receive data from TRBnet hubs via udp sockets • Combine hadaq subevents from different trb inputs • Export control variables to shared memory • connect to HADES eventbuilder controls / EPICS • Write .hld files • Repository: https://subversion.gsi.de/dabc/trunk/plugins/hadaq Like Go4 event source Full HADES eventbuilder! (daq_netmem, daq_evtbuild) Jörn Adamczewski-Musch 7

  8. DABC hadaq components • Classes: • HldFile – input and output of hld file format • HldInput – read hadtu format from file • HldOutput- write hadtu format to file • UdpDataSocket – receive hadtu packets from trb frontend (single stream) • MbsTransmitterModule – wrap hadtu format into mbs event container • CombinerModule – eventbuilding of hadtu format from several data streams • Observer – Control system interface to hades shared memory • Example application configurations: • HldConverter.xml – read hld file and write to lmd file • HldServer.xml – read hld file and serve at mbs transport server • NetmemServer.xml– receive trbnet dataat 1 udp socket and serve events at mbs transport/stream server • EventBuilder.xml - receive trbnet data at n udp sockets and do a full eventbuilding Jörn Adamczewski-Musch 8

  9. Use case : converter, online monitoring server TRBnet hub hadaq::MbsTransmitterModule UDP/IP GbE hadaq:: UDPDataSocket mbs:: ServerTransport Input Output “eventbuilding mode” stream server, transport server NetmemServer.xml hadaq:: HldInput mbs::LmdOutput HldServer.xml .hld file .lmd file HldConverter.xml Jörn Adamczewski-Musch 9

  10. Use case: HADES event builder hadaq::MbsTransmitterModule Input Output EventBuilder.xml hadaq::CombinerModule hadaq:: UDPDataSocket Input0 Input1 ServOut Input2 Input.. Input.. hadaq:: UDPDataSocket FileOut Input N hadaq:: HldOutput dabc Parameters .hld file hadaq::Observer HADES ebctrl /dev/shm HADES medm GUI EPICS IOC “worker statistics” EPICS PV Jörn Adamczewski-Musch 10

  11. Use case: CBM beamtest DAQ hadaq::CombinerModule Input0 Input1 Output hadaq::MbsTransmitterModule Input2 Input.. Input.. Input N Input Output mbs::Combiner roc::Combiner spadic::Combiner hadaq:: UDPDataSocket hadaq:: UDPDataSocket mbs:: Combiner MBS ServOutput ROC “Supercombiner” SPADIC FileOutput TRB .lmd file Jörn Adamczewski-Musch 11

  12. Tests + Experience • PANDA-DIRC@Mainz (C.Ugur): • hadaq-go4 for offline analysis of .hld files (acquired with old HADES production eventbuilder) • Used for MAMI beamtimes June and July 2012 • dabc_run NetmemServer.xml + hadaq-go4 for online monitoring: • Usable, but dabc fails for high event rates >40kHz? ?? Mb/s(queue full, or crash) => dabc v1.9 debugging! Fine tuning of buffer setup! • dabc_run EventBuilder.xml + hld file output + hadaq-go4: • Works with 1 trb input up to some event rate limit, see above • can not yet deliver performance (100kHz writing) of old hadaq eventbuilder! • Tests with udp data sender simulator (JAM): • dabc_run EventBuilder.xml + hld file output + hadaq-go4 + EPICS ioc + MEDM gui With 5 UDP streams, localhost (10kHz/1000Bytes/ 20s spill): 19 Mbyte/s with file to local disk (41 Mb/s without file) Limit: hld file io -> queue back pressure -> 60% dropped events Jörn Adamczewski-Musch 12

  13. Conclusions • Go4 analysis of hld files and trbdata from DABC online is ready (still under development) • Go4 trb classes adjusted for CBM online monitoring framework • DABC plugin for trbnet udp inputs is readyTODO: trb/mbs super combiner implementation for CBM • DABC can almost emulate the HADES production eventbuilder! (missing: RFIO, disk load balancing, multi-EBserver tests..) • DABC hadaq modules still lack performance of HADES eventbuilderTODO: optimization of i/o implementations + memory set up DABC v1.9 debugging (stability? error recovery?) Jörn Adamczewski-Musch 13

More Related