Data Acquisition Systems

CERN Summerstudent Programme 2008 Niko Neufeld, CERN-PH Introduction

• Data Acquisition is a specialized engineering discipline thriving mostly in the eco -system of large science experiments, particularly in HEP • It consists mainly of electronics , science, networking and (we hope) a little bit of ppyhysics • Some material and lots of inspiration for this lecture was taken from lectures byyy my predecessors •Manyyp thanks to S. Suman for his help with the drawings! Data Acquisition Systems, CERN Summerstudent Lecture 2008 2 Outline

• Introduction • A DAQ for a large – Data acquisition experiment – The first data acquisition – Sizing it up campaign – Trigger • A simple DAQ system – Front-end Electronics – One sensor – Readout with networks – More and more sensors • Event building in switched networks • Read-out with buses • Problems in switched – CtCrates & &Mh Mechani cs networks – The VME • A lightning tour of • Read-out with networks ALICE, ATLAS, CMS and LHCb DAQs

Data Acquisition Systems, CERN Summerstudent Lecture 2008 3 Disclaimer

• Trigger and DAQ are two vast subjects covering a lot of physics and electronics • Based entirelyyp on personal bias I have selected a few topics • While most of it will be only an overview at a few places we will go into some technical detail • Some things will be only touched upon or left out altogether – information on those you will find in the references at the end – Electronics (lectures by J. Christiansen) – High Level Trigger (lectures by G. Dissertori) – DAQ of experiments outside HEP/LHC – Management of large networks and farms –High-sppgeed mass storage – Experiment Control (= Run Control + Detector Control / DCS)

Data Acquisition Systems, CERN Summerstudent Lecture 2008 4 Tycho Brahe and the Orbit of Mars I've studied all available charts of the planets and stars and none of them match the others . There are just as many measurements and methods as there are astronomers and all of them disagree. What's needed is a long term project with the aim of mapping the heavens conducted from a single location over a period of several years. Tycho Brahe, 1563 (age 17). • First measurement campaign • Systematic data acquisition – Controlled conditions (same time of the day and month) – Careful observation of boundary conditions (weather, light conditions etc…) - important for data quality / systematic uncertainties

Data Acquisition Systems, CERN Summerstudent Lecture 2008 5 The First Systematic Data Acquisition

• Data acquired over 18 years, normally e every month • Eac h measuremen t l as te d a t l eas t 1 hr w ith the nak ed eye • Red line (only in the animated version) shows comparison with modern theory Data Acquisition Systems, CERN Summerstudent Lecture 2008 6 Tycho’s DAQ in Today’s Terminology • Bandwith (bw) = Amount of data transferred / per unit of time – “Transferred”= written to his logbook – “unit of time” = duration of measurement

– bwTycho = ~ 100 Byy/(tes / h (com pare with LHCb 40.000.000.000 Bytes / s) • Trigger = in general something which tells you when is the “right” moment to take your data – In Tycho’s case the position of the sun, respectively the moon was the trigger – the trigger rate ~ 3 .85 x 10 -6 Hz (compare with LHCb 1.0 x 106 Hz) Data Acquisition Systems, CERN Summerstudent Lecture 2008 7 Some More Thouggyhts on Tycho

• ThdidtdthTycho did not do the correct anal liysis of the Mars data, this was done by Johannes Kepler (1571-1630), eventuallyyp pavin g the wa y for Newton’s laws • Morale: the size & speed of a DAQ system are not correlated with the importance of the discovery!

Data Acquisition Systems, CERN Summerstudent Lecture 2008 8 A Very Simple Data Acqqyuisition System Measuringgp Temperature

• Suppose you are given a Pt100 thermo-resistor • We read the temperature as a voltage with a digital voltmeter

Data Acquisition Systems, CERN Summerstudent Lecture 2008 10 Reading Out Automatically #include struct usb_bus *bus; struct usb_device *dev; usb_dev _handle *vmh = 0; usb_find_busses(); usb_find_devices(); for (bus = usb_busses; bus; bus = bus->next) for (dev = bus->devices; dev; dev = dev- >next) if (dev ->descriptor. idVendor == HOBBICO) vmh = usb_open(dev); Note how small usb_bulk_read(vmh ,3,&u,sizeof(float),500); the sensor has become. In DAQ we normally need not worry about USB/RS232 the details of the things we readout

Data Acquisition Systems, CERN Summerstudent Lecture 2008 11 Read-out 16 Sensors

• Buy 4 x 4-port USB hub (very cheap) (+ 3 more voltmeters) • Adapt our little DAQ ppgrogram • No fundamental (architectural) chtDAQhange to our DAQ

Data Acquisition Systems, CERN Summerstudent Lecture 2008 12 Read-out 160 Sensors

• For a moment we (might) consider to buy 52 USB hubs, 160 Voltmeters • …but hopefully we abandon the idea veryyq quickl y, before we start cablin g this! • Expensive, cumbersome, fragile Æ our data acquisition system is not scalable

Data Acquisition Systems, CERN Summerstudent Lecture 2008 13 Read-out with Buses A Better DAQ for Many (temperature) Sensors

19” • Buy or build a compact multi-port volt -meter module , e.g. 16 inputs • Put many of these multi-port modules together in a common chassis or crate 7U VME Crate 7U (a.k.a. “Subrack”) • The modules need – Mechanical support –Power – A standardized way to access their data (our Backplane Connectors (for power and data) measurement values) • All this is provided by VME Board Plugs into Backplane standards for (readout) electronics such as VME (IEEE 1014)

Data Acquisition Systems, CERN Summerstudent Lecture 2008 15 DAQ for 160 Sensors Using VME

• Readout boards in a VME-crate – mechanical standard for – electrical standard for power on the backplane – signal and protocol standard for communication on a bus

Data Acquisition Systems, CERN Summerstudent Lecture 2008 16 A Word on Mechanics and Pizzas

• The width and height of racks and crates are measured in US units: inches (in, '') and U – 1 in = 25.4 mm – 1 U = 1.75 in = 44.45 mm • The width of a "standard" rack is 19 in. • The height of a crate (also sub-rack) is measured in Us • RkRack-mountblthitable things, in par tilticular , which are 1 U high are often called pizza-boxes 49 U • At least in Europe, the depth is measured in mm • Gory details can be found in IEEE 1101.x (VME mechanics standard) Data Acquisition Systems, CERN Summerstudent Lecture 2008 17 Communication in a Crate: Buses • A bus connects two or more devices and allows them to communicate • The b us i s shdhared btbetween a lldll dev ices on thbthe bus Æ arbitration is required • Devices can be masters or slaves (some can be both) • Devices can be uniquely identified ("addressed") on the bus MasterSlave Slave Master

DeviceDevice 11 DeviceDevice 2 2 Device 3 DeviceDevice 4 4

DataData Lines Lines

Select Line Data Acquisition Systems, CERN Summerstudent Lecture 2008 Select Line 18 Buses

• Famous examples: PCI , USB , VME , SCSI – older standards: CAMAC, ISA – uppgcoming: ATCA – many more: FireWire, I2C, Profibus, etc… •Buses can be – local: PCI – external peripherals: USB – in crates: VME , compactPCI , ATCA – long distance: CAN, Profibus

Data Acquisition Systems, CERN Summerstudent Lecture 2008 19 The VME Bus

• In a VME crate we can find

0x000-0x1ff three mai n types of mod u les

0x200-0x2ff – The controller which monitors and arbitrates the bus 0x300-0x3ff – Masters read data from and 0x400-0x4ff write data to slaves 0x 500-005x5ff – Slaves send data to and receive 0x600-0x6ff data from masters • Addressing of modules – In VME each module occupies a part of a (flat) range of addresses (24 bit to 32 bit) – Address range of modules is hardwired (conflicts!)

Data Acquisition Systems, CERN Summerstudent Lecture 2008 20 VME pp)rotocol 1) Arbitration

• AbitArbitrati on: M ast er assert s*) BR#, Con tro ller answers by asserting BG# • If there are several masters requesting at the same time the one physically closest to the controller wins • The winning master drives BBSY * high to indicate that the bus is now in use

Pictures from http://www. interfacebus.com *) assert means driving the line to logical 0 (VME control lines are inverted or active-low)

Data Acquisition Systems, CERN Summerstudent Lecture 2008 21 VME pp)rotocol 2) Write transfer • The Master writes data and address to the dat a / r espectiv el y data bus • It asserts DS* and AS* to signal that the data and a ddress are va lid • The slave reads and acknowledges by asserting DTACK • The master releases DS*, AS* and BSBSY*, the cycle is complete • Note: there is no clock! The slave can respond whenever it wants. VME is an asynchronous bus

Data Acquisition Systems, CERN Summerstudent Lecture 2008 22 Speed Considerations

• Theoretically ~ 16 MB/s can be achieved – assumithdtbtbfll32ing the databus to be full 32-bit wide – the mast er never h as t o reli nqui sh b us master ship • Better perfiformance by using block- transfers

Data Acquisition Systems, CERN Summerstudent Lecture 2008 23 VME pp)rotocol 3) Block transfer

• After an address cycll(tle several (up to 256) data cycles are performed • The slave is supposed to increment the address counter • The additional delays for asserting and • Block transfers are essential acknowledging the for Direct Memory Access address are removed (DMA) •Performance goes • MfMore performance can b e up to 40 MB/s gained by using the address • In PCI this is referred bus also for data (VME64) to as "burst-transfer"

Data Acquisition Systems, CERN Summerstudent Lecture 2008 24 Advantages of buses

• RltilRelatively s imp le to imp lemen t – Constant number of lines – Each device implements the same interface • Easy to add new devices – tliliftifthbtopological information of the bus can be used for automagically choosing addresses for bus dev ices: this is w ha t plug and play is all about.

Data Acquisition Systems, CERN Summerstudent Lecture 2008 25 Buses for DAQ at LHC?

• A bus is shared between all devices (each new active device slows everybody down) – Bus-width can only be increased up to a certain point (128 bit for PC-system bus) – Bus-frequency (number of elementary operations per second) can be increased, but decreases the physical bus-length • Number of devices and physical bus-length is limited (scalability!) – For synchronous high-speed buses, physical length is correlated with the number of devices (e.g. PCI) –Typilbhical buses have a lot o f contro ldl, data an dddlid address lines (look at a SCSI or ATA cable) • Buses are typicall y useful for s ystems < 1 GB /s

Data Acquisition Systems, CERN Summerstudent Lecture 2008 26 Network based DAQ

•In largg(e (HEP) ex periments we t ypicall y have thousands of devices to read, which are sometimes very far from each other • Net work t ech nol ogy sol ves th e scal abilit y issues o f buses – In a network devices are eqq(p)ual ("peers") – In a network devices communicate directly with each other • no arbitration necessary • bandwidth guaranteed – data and control use the same path •much f ewer li nes ( e.g. i n traditi ona l Etherne t on ly two ) – At the signaling level buses tend to use parallel copper lines. Network technologies can be also optical, wire-less andtill(difftil)ild are typically (differential) serial

Data Acquisition Systems, CERN Summerstudent Lecture 2008 27 Network Technologies

• Examples: – The telephone network – Ethernet (IEEE 802.3) – ATM (the backbone for GSM cell -phones) – Infiniband –Myrinet –many, many more • Note: some of these have "bus"-features as well (Ethernet, Infiniband) • Network technologies are sometimes functionally grouped – Cluster interconnect (Myrinet, Infiniband) 15 m – Local area network (Ethernet), 100 m to 10 km – Wide area ne twor k (ATM, SONET) > 50 k m

Data Acquisition Systems, CERN Summerstudent Lecture 2008 28 Connecting Devices in a Network • On an network a device is identifed by a network address – eggp: our phone-number, the MAC address of your computer • Devices communicate by sending messages (frames , packets) to each other • Some establish a connection lilke the telephone network, some simply send messages • Modern networks are switched with point-to- point links – circuit switching, packet switching

Data Acquisition Systems, CERN Summerstudent Lecture 2008 29 Switched Networks

• In a switched network each node is connected either to another node or to a switch • Switches can be connected to other switches • A path from one node to another leads through 1 or more switches (this number is sometimes referred to as the number of "hops" )

Data Acquisition Systems, CERN Summerstudent Lecture 2008 30 A Switched Network

• While 2 can 3 send data to 1 4 and 4, 3 can 1 2 send at full speed to 5 5 •2 can distribute the share the bandwidth between 1 and 4 as needed

Data Acquisition Systems, CERN Summerstudent Lecture 2008 31 Switches

• Switches are the key to good network performance • They must move frames reliably and as fast as possible between nodes • They face two problems – Finding the right path for a frame – Handling congestion (two or more frames want to go to the same destination at the same time)

Data Acquisition Systems, CERN Summerstudent Lecture 2008 32 Ethernet

• Cheap • Unreliable – but in practice transmission errors are very low • Available in manyyp different speeds and physical media • We use IP or TCP/IP over Ethernet • By far the most widely used local area netkthl(twork technology (even st ttiarting on the WAN)

Data Acquisition Systems, CERN Summerstudent Lecture 2008 33 IP Pack et s ov er Ethe rne t Ethernet Header

IP Header

UDP Header

Data

0 … 32 bits

Data Acquisition Systems, CERN Summerstudent Lecture 2008 34 Data Acquisition for a Large Experiment Movinggggg on to Bigger Things…

The CMS Detector

Data Acquisition Systems, CERN Summerstudent Lecture 2008 36 Movinggggg on to Bigger Things…

• 15 million detector channels • @ 40 MHz •= ~15 * 1, 000, 000 * 40 * 1, 000, 000 by tes

• = ~ 600 TB/sec ?

Data Acquisition Systems, CERN Summerstudent Lecture 2008 37 Designing a DAQ System for a Large HEP E xper imen t • What defines "large" ? – The number of channels: for LHC experiments O(107) channels • a (digitized) channel can be between 1 and 14 bits – The rate: for LHC experiments everything happens at 40.08 MHz, the LHC bunch crossing frequency (This corresponds to 24.9500998 ns or 25 ns among friends) • HEP experiments usually consist of many different sub-detectors: tracking, calorimetry, particle-ID, muon-detectors

Data Acquisition Systems, CERN Summerstudent Lecture 2008 38 First Questions

• Can w e or do w e w ant to sav e all the data? • How do we select the data • Is continuous read-out needed, i.e. an experiment in a collider? Or are there idle periods mixed with periods with many events – this is typically the case for fixed- target experiments • How do we make sure that the values from the many different channels refer to the same original event (collision)

Data Acquisition Systems, CERN Summerstudent Lecture 2008 39 What Do We Need to Read OtOut a D Dtetect or ( successf fll)?ully)? • AltiA selection mech hianism (“t (“ti”)rigger”) • Electronic readout of the sensors of the detectors (“front-end electronics”) •A syypstem to keep all those thin gygs in sync (“clock”) • A system to collect the selected data (“DAQ”) • A Control System to configure , control and monitor the entire DAQ

Data Acquisition Systems, CERN Summerstudent Lecture 2008 40 Trigger • No (affordable) DAQ system Black magic could read out O(107) happening here channels at 40 MHz Æ 400 TBit/s to read out – even assuminggy binary channels! • What’s worse: most of these millions of events per second are totally uninteresting: one Higgs event every 0.02 seconds • A firs t leve l titrigger (Leve l-1, L1) must somehow select the more interesting events and tlltell us w hihhich ones to dea l with any further

Data Acquisition Systems, CERN Summerstudent Lecture 2008 41 Inside the Box: How does a Level-1trigger work? • Millions of channels Æ: try to work as much as possible with “local” information – Keeps number of interconnections low • Must be fast: look for “simple” signatures – Keep the good ones , kill the bad ones – Robust, can be implemented in hardware (fast) • Design principle: – fast: to keep buffer sizes under control – every 25 nanoseconds (ns) a new event: have to decide within a few microseconds (μs): trigger- latency

Data Acquisition Systems, CERN Summerstudent Lecture 2008 42 Challenges for the L1 at LHC

• N (channels) ~ O(107); ≈20 interactions every 25 ns – need huge number of connections • Need to synchronize detector elements to (better than))5 25 ns • In some cases: detector signal/time of flight > 25 ns – integrate more than one bunch crossing's worth of ifinforma tion – need to identify bunch crossing... • It'sOn s On-Line (cannot go back and recover events) – need to monitor selection - need very good control over all conditions

Data Acquisition Systems, CERN Summerstudent Lecture 2008 43 Know Your Enemy: pp Collisions at 14 TeV at 10 34 cm-2s-1 • σ(pp) = 70 mb --> >7 x 108 /(!)/s (!) • In ATLAS and CMS* 20 mibiin bias events will overlap •H→ZZ Z →μμ Reconstructed tracks with pt > 25 GeV H→ 4muons:4 muons: AdthiAnd this the cleanest (“golden”) (not the H though…) sitignature repeats every 25 ns…

*)LHCb @2x1033 cm-2-1 isn’t much nicer and in Alice (PbPb) it will be even worse Data Acquisition Systems, CERN Summerstudent Lecture 2008 44 MMotherother NatureNature isis a … KindKind WomanWoman AfterAfter All

• pp collisions produce mainly hadrons with transverse momentum “pt” ~1GeV1 GeV • Interesting physics (old and new) has particles (leptons and hadrons) with large pt: → ν 2 –W e : M(W)=80 GeV/ ; pt(e) ~ 30-40 GeV →γγ γ – H(120 GeV) : pt( ) ~ 50-60 GeV p →μ *+ν μ pt –B D pt( ) ~ 1.4 GeV • Impose high thresholds on the pt of particles – Implies distinguishing particle types; possible for electrons, muons and “jets”; beyond that, need complex algorithms • Conclusion: in the L1 trigger we need to watch out for high transverse momentum electrons, jets or muons

Data Acquisition Systems, CERN Summerstudent Lecture 2008 45 How to defeat minimum bias:

transverse momentum pt Use ppprompt data (calorimetr y MUON System and muons) to identify: Segment and track finding ν High pt electron, muon, jets, µ missing ET γ e

η n φ

CALORIMETERs p Cluster finding and energy deposition evaluation

New data every 25 ns Decision latency ~ µs Data Acquisition Systems, CERN Summerstudent Lecture 2008 46 Distributingggg the L1 Trigger

• Assuming now that a Local level-1 trigger magibic box tllftells for Glob al T ri gger 1 Primitive e, γ, jets, µ each bunch crossing ≈ 2-3 µs (cl ocock-ticc)yesok) yes or n o latency – Triggering is not for loop philosophers – “perhaps” is not an option • This decision has to bbbe broug htfht for each Front-End Digitizer Trigger crossing to all the Pipeline delay Primitive detector front-end ( ≈ 3 µs) Generator electronics elements so that they can Accept/Reject LV-1 send of their data or discard it Data Acquisition Systems, CERN Summerstudent Lecture 2008 47 Clock Distribution and Synchronisation

•An event is a snapshot of Plus: the val ues of all de tect or Trigger decision 40 MHz front-end electronics Bunch cross ID elements, which have their value caused by the same collision • A common clock signal must be provided to all detector elements – Since the c is constant, the detectors are large and the electronics is fast, the detector elements must be carefully time-aligned • Common system for all LHC experiments TTC based on radiation-hard opto- electronics

Data Acquisition Systems, CERN Summerstudent Lecture 2008 48 Bird’s-Eye View on (front-end) Electronics Detttector Amplifier Filter Shaper

Range compression clock (TTC) Sampling Digital filter Zero suppression All this exp la ine d in great detail by Buffer J. Christiansen Feature extraction this week --> focus on the Buffer green arrow on Format & Readout beyond to Data Acquisition System Data Acquisition Systems, CERN Summerstudent Lecture 2008 49 FEE & DAQ by electronics engineers

FEE = Front End Electronics

Example from LHCb

Data Acquisition Systems, CERN Summerstudent Lecture 2008 50 Data Acquisition

• Event-data are now digitized , pre- processed and tagged with a unique, monotonically increasing number • The event data are distributed over many read-out boards (“sources”) • For the next stage of selection, or even simply to write it to tape we have to get the pieces of the event together: event building

Data Acquisition Systems, CERN Summerstudent Lecture 2008 51 Event Building Event Building

To Trigger Algorithms

Even t Bu ilder 3

Event Builder 3 Data Acquisition Switch

Event Builder 3

Event fragments are Event fragments are Event builder Complete events are received from read out over a assembles fragments processed by trigger detector front-end network to an event into a complete event algorithms builder 1 Data2 Acquisition Systems, CERN Summerstudent3 Lecture 2008 4 53 Push-Based Event Building

Switch Buffer

Event Builder 1

Event Builder 2 Data Acquisition Switch

Readout “Send Supervisor next event“Send to EB1next ”event to EB2”

Readout Supervisor Readout boards do No feedback from tells readout boards not buffer , so switch Event Builders to where events must must Readout system be sent (round-robin) 1 Data Acquisition Systems,2 CERN Summerstudent Lecture 2008 3 54 Congestion

• "Bang" translates into 1 3 2 2 random, uncontrolled packet-loss • In Ethernet this is perfiifectly valid behavior and implemented by veryyp cheap devices • Higher Level protocols are supposed to handle the packet loss due to lack of buffering Bang • This problem comes from synchronized sources sending to the same destination at the same 2 time

Data Acquisition Systems, CERN Summerstudent Lecture 2008 55 Overcoming Congestion: Queuing at the Input

1 3 • Two frames destined 2 2 to the same destination arrive • While one is switched through the other is waiting at the inppput port • When the output port is free the queued packet is sent 2 Data Acquisition Systems, CERN Summerstudent Lecture 2008 56 Pull-Based Event Building

“Send“Sen d me me anan event!” event!”E v Event Builder 1 e n t

Event Builder“Send 2 meB an event!”u Data Acquisition i Switch l Event Builder“Send 3 d me EB1: 01 an event!”e EB2: 01 “Send next event“Send r EB3: 01 “Send tonext EB1 event” nextto EB event2” 1 to EB3”

Event Builders notify Readout Supervisor Readout system Readout Supervisor ensures that data are relies on feedback of available capacity sent only to nodes with from Event Builders available capacity 1 Data Acquisition Systems,2 CERN Summerstudent Lecture 2008 3 57 Head of Line Blocking

1 3 • The reason f or thi s i s th e 2 42 First in First Out (FIFO) structure of the input buffer

• QueuingPacket to theory node 4 musttells waitus* thaevent f or though rand omport tot ra nodeffi c 4 is free (and infinitely many switch ports) the througgphput of the switch will go down to 58.6% Æ that means on 100 MBit/s network the nodes will "see" effectively 2 only ~ 58 MBit/s 4 *) "Input Versus Output Queueing on a Space- Division Packet Switch"; Karol, M. et al. ; IEEE Trans. Comm., 35/12 Data Acquisition Systems, CERN Summerstudent Lecture 2008 58 Output Queuing

•In practice virtual 1 3 output queueing is 2 42 used: at each input there is a queue Æ for n ports O(n2) queues must be managed • Assuming the buffers are large enough(!) Packet to node 2 waits at output to portsuch 2. Way a toswitch node 4 will is free sustain random traffic at 100% nominal link ldload

4 2

Data Acquisition Systems, CERN Summerstudent Lecture 2008 59 AACL

ALICE, ATLAS, CMS, LHCb DAQs in 4 slides ALICE DAQ

Rare/All CTP L0, L1a, L2 BUSY BUSY LTU LTU DDL L0, L1a, L2 H-RORC TTC TTC FEP FEP HLT F arm FERO FERO FERO FERO Event 144 DDLs 342 DDLs 10 DDLs Fragment 416 D-RORC 10 D-RORC

Load Bal. LDC 194 Detector LDC LDC LDC 10 HLT LDC LDC LDC Sub-event EDM Even t B u ilding N et work 2500 MB/ s Event 50 GDC GDC GDC GDC GDC DS DS 5 DSS 25 TDS File Storage Network 1250 MB/s PDS

•TthdtiL0+Two stage hardware trigger L0 + L1 TDS TDS •High Level Trigger (HLT) on Data Acquisition Systems, CERN Summerstudent Lecture 2008 separate farm 61 ATLAS DAQ ATLAS •L1 selects events at 100 kHz and defines regions of interest •L2 pulls data from the region of interest and processes the data in a farm of processors L2 accepts data at ~ 1 kHz •Event Filter reads the entire detector (pull), processes the events in a farm and accepts at 100 Hz

Data Acquisition Systems, CERN Summerstudent Lecture 2008 6262 CMS DAQ

Congestion is handled by synchronizing the sources to send in discrete time- sltlots: BlShiftiBarrel Shifting

Collision rate 40 MHz No. of In-Out units 512 LlLevel-1M1 Max imum t tirigger rat e RdtReadout ne twork kbdidth bandwidth ≈ 1T1 Tera bit/s 100 kHz Event filter computing power ≈ 106 SI95 Average event size ≈ 1 Mbyte Data production ≈ Tbyte/day Event Flow Control ≈ 106 No. of PC ≈ Thousands Mssg/s

Data Acquisition Systems, CERN Summerstudent Lecture 2008 63 LHCb DAQ

Detector VELO ST OT RICH ECal HCal Muon L0 Trigger

L0 trigger FE FE FE FE FE FE FE Electronics Electronics Electronics Electronics Electronics Electronics Electronics LHC clock TFC ECS)

Readout Readout Readout Readout Readout Readout Readout (( StSystem Board Board Board Board Board Board Board

Front-End

MEP Request System l oo READOUT NETWORK 40 GB/s Event building

80 MB/s ent Contr mm SWITCHSWITCH SWITCH SWITCH SWITCH SWITCH SWITCH

SWITCH C C C C C C C C C C C C C C C C C C C C C C C C Experi C C C C P P P P P P P P P P P P P P P P P P P P P P P P P P P P U U U U U U U U U U U U U U U U U U U U U U U U U U U U MON farm HLT farm Event data Average event size 40 kB Timing and Fast Control Signals Average rate into farm 1 MHz Control and Monitoring data Average rate to tape 2 kHz Data Acquisition Systems, CERN Summerstudent Lecture 2008 64 LHC Experiments DAQ Level-1Event Storage kHz MByte MByte/s ATLAS 100 1 100

CMS 100 1 100

LHCb 1000 0.04 80

ALICE 1 25 1250

Data Acquisition Systems, CERN Summerstudent Lecture 2008 65 High Level Trigger

Complicated Event structure with hadronic jets (ATLAS) or secondary vertices (LHCb) require full detector information

Methods and algorithms are the same as for offline reconstruction ((ecueLecture “Fro m ra w da daaopyscs)ta to physics”)

Data Acquisition Systems, CERN Summerstudent Lecture 2008 66 On to tape...and the GRID Networks, farms and data flows

To regional centers 622 Mbit/s

Remote control rooms

Controls: 1 Gbit/s 1 Gbit/s Events: 10 Gbit/s

Controls: 1 Gbit/s

Raw Data: 1000 Gbit/s

Data Acquisition Systems, CERN Summerstudent Lecture 2008 67 Further Reading

• Buses • Conferences –VME: http://www.vita.com/ – IEEE Realtime –PCI –ICALEPCS http://www.pcisig.com/ –CHEP • Network and Protocols – IEEE NSS-MIC – Ethernet • Journals “Ethernet: The Definitive Guide”, – IEEE Transactions on Nuclear O’Reilly, C. Spurgeon Science, in particular the –TCP/IP proceedings of the IEEE Realtime “TCP/IP Illustrated ”, W. R . Stevens conferences – Protocols: RFCs – IEEE Transactions on www.ietf.org Communications in particular RFC1925 http://www.ietf.org/rfc/rfc1925.txt “The 12 net worki ng t ruth s” i s required reading • Wikipedia (!!!) and references therein – for all computing related stuff this is usually excellent

Data Acquisition Systems, CERN Summerstudent Lecture 2008 68