introduction to hep computing...hep experiments - present collision detectors event fragments full...

53

Upload: others

Post on 12-Jul-2020

7 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton
Page 2: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

Outline

omodern High Energy Physics (HEP) experiments

o physics software

o online processing

o triggering, selection

o offline processing

o simulation

o conclusions

2

Page 3: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

HEP experiments - past

3

S. Livingstone and E. Lawrence 69cm cyclotron

Page 4: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

HEP experiments - present

4

Page 5: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

HEP experiments - present

Collision Detectors Eventfragments

Fullevent

StorageOffline

analysis

Trigger

5

Page 6: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

Collisions at the LHC

6

Particle

Proton - Proton 2804 bunch/beam

Protons/bunch 1011

Beam energy 7 TeV (7x1012 eV)

Luminosity 1034cm-2s-1

Crossing rate 40 MHz

Collision rate ≈ 107-109 Hz

Parton(quark, gluon)

Proton

ll

jetjet

Bunch

SUSY.....

Higgs

Zo

Zo

e+

e+

e-

e-

Page 7: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

Physics selection at LHC

7

o Cross sections of physics processes vary over many orders of magnitudeo Inelastic: 109 Hz

o W l n: 102 Hz

o t t production: 10 Hz

o Higgs (100 GeV/c2): 0.1 Hz

o Higgs (600 GeV/c2): 10–2 Hz

oQCD backgroundo Jet ET ~250 GeV: rate = 1 kHz

o Jet fluctuations electron bkg

o Decays of K, p, b muon bkg

o Selection needed: 1:1010–11

Page 8: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

Physics Selection at LHC

8

Page 9: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

Processing Stages

9

individualphysicsanalysis

batch

physics

analysis

detectorEvent Summary

Data (ESD)

rawdata

event

reconstruction

event

simulation

trigger,

event selection

processeddata

Analysis Object Data (AOD)(extracted by physics topic)

Page 10: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

Physics software

o The scientific software needed to process this huge amount of data from the LHC detectors is developed by the LHC collaborationso Must cope with the unprecedented conditions and challenges

(trigger rate, data volumes, etc.)o Each collaboration has written millions of lines of code

o Modern technologies and methodso Object-oriented programming languages and frameworkso Re-use of a number of generic and domain-specific ‘open-source’

packageso The organization of this large software production activity

is by itself a huge challengeo Large number of developers distributed worldwideo Integration and validation require large efforts

10

Page 11: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

Processing Stages - Trigger

11

individualphysicsanalysis

batch

physics

analysis

detectorEvent Summary

Data (ESD)

rawdata

event

reconstruction

event

simulation

trigger,

event selection

processeddata

Analysis Object Data (AOD)(extracted by physics topic)

Page 12: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

TriggeroTask: inspect detector information and provide

a first decision on whether to keep the event or throw it out

oThe trigger is a function of event data, detector conditions and parameters

12

T( ) ACCEPTED

REJECTED

• Detector data not (all) promptly available

• Selection function highly complex

T(...) is evaluated by successive approximations

TRIGGER LEVELS

Page 13: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

Trigger Levels

o Level-1o Hardwired processors (ASIC, FPGA, …)o Pipelined massive parallelo Partial information, quick and simple event

characteristics (pt, total energy, etc.)o 3-4 µs maximum latency

o Level-2 (optional) o Specialized processors using partial data

o High Levelo Software running in processor farmso Complex algorithms using complete event informationo Latency at the level of fractions of secondo Output rate adjusted to what can be afforded

13

~ 1:104

~ 1:101

~ 1:102

Page 14: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

Trigger Levels and Rates

14

10-2

100

102

104

106

108

10-8 10-6 10-4 10-2 100

25 ns ­ µs ms sec

QED

W,Z

Top

Z*

Higgs

Available processing time

LEVEL-1 Trigger 40 MHz Hardw ired processors (ASIC, FPGA) MASSIVE PARALLEL Pipelined Logic Systems

HIGH LEVEL TRIGGERS 1kHz Standard processor FARMs

10-4

Rate (Hz)

­ 1 µs

­ 0.1 - 1 sec

­ 1 ms

SECOND LEVEL TRIGGERS 100 kHz SPECIALIZED processors (feature extraction and global logic)

Lvl-1

Lvl-2

HLT

Front end pipelines

Readout buffers

Processor farms

Switching network

Detectors

“Traditional”: 3 physical levels

Page 15: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

Processing Stages -Reconstruction

15

individualphysicsanalysis

batch

physics

analysis

detectorEvent Summary

Data (ESD)

rawdata

event

reconstruction

event

simulation

trigger,

event selection

processeddata

Analysis Object Data (AOD)(extracted by physics topic)

Page 16: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

The Reconstruction challenge

16

Page 17: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

What is reconstruction

o Tracker ‘hits’ form a puzzleo Which tracks created

them?

o Each energy deposition is a clueo There are thousands of

measurements in each snap-shot

o The experiment’s reconstruction must obtain a solution!o In well measured

magnetic fieldo Matches the traces to

tracks

17

Page 18: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

How it works – a simple example

o Start with the locations of the traces on first two planes

18

Magnetic fieldΒ

Page 19: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

How it works – a simple example

o Start with the locations of the traces on first two planes

o Try different combinations

o Project to subsequent planes

o Calculate differences between measured positions and ‘predictions’

19

(Kalman filter)

Page 20: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

How it works – a simple example

o Start with the locations of the traces on first two planes

o Try different combinationso Project to subsequent

planes

o Calculate differences between measured positions and ‘predictions’

o Finally the candidate tracks are identified o else look ‘quickly’ for

the straight(er) ones –high energy tracks

20

P= 7.5 GeV/c

P= 11 GeV/c

P= 22 GeV/c

Page 21: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

Detector conditions datao Reflects changes in state

of the detector with time

o Event Data cannot be reconstructed or analyzed without it

o Versioning

o Tagging

o Ability to extract slices of data required to run with job

o Long life-time

21

Data Item

Version

Time

t1 t2 t3t4 t5t6 t7t8 t9 t10t11

VDET alignmentHCAL calibration RICH pressure

ECAL temperature

Time = T

Page 22: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

Online and offline reconstruction

oAre collisions first-tagged really interesting enough to keep (given capacity constraints)?o Online reconstruction – seek to reconstruct ‘as

much as you can’ quickly to enable decision

oCritical part of experiment – collisions which are not recorded are lost

oLater there is more time to reconstruct the contents of a collision – but this is also complex

22

Page 23: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

Processing Stages - Analysis

23

individualphysicsanalysis

batch

physics

analysis

detectorEvent Summary

Data (ESD)

rawdata

event

reconstruction

event

simulation

trigger,

event selection

processeddata

Analysis Object Data (AOD)(extracted by physics topic)

Page 24: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

Data analysis

oUses the results of Reconstruction

o the products are reconstructed tracks, Energy deposits (calorimeters)

o Hierarchy of data from original (RAW), to summary (AOD)

oAn experiment’s physics teams use the (large) pool of data

o No longer in one central location, but in multiple locations (cost, space of building, computers, disks, network) .... using the GRID

24

Page 25: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

Event bookkeeping

25

Bookkeeping

Run Data

Event 1

Event 2

Event 3

Run Data

Event 1

Event 2

Event 3

Run Data

Event 1

Event 2

Event N

Run Catalogue

Physics : Run 21437

MC: B -> π π

MC: B -> J/Ψ (μ+ μ-)

Dataset

Event 1

Event 2

Event 3

Dataset

Event 1

Event 2

Event 3

Event tag

collection

Tag 1 5 0.3

Tag 2 2 1.2

Tag M 8 3.1

Collection Catalogue

B -> ππ Candidates (Phy)

B -> J/Ψ (μ+ μ-) Candidates

Page 26: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

ROOTo “At the root of the experiments”, project started in 1995

o Open Source project (LGPL3)o mainly written in C++; 4 MLOC

o ROOT provides (amongst other things):o C++ interpreter

o Efficient data storage mechanism; 177 PB LHC data stored in ROOT

o Advanced statistical analysis algorithms

o histogramming, fitting, minimization, statistical methods …

o Scientific visualization: 2D/3D graphics, PDF, Latex

o Geometrical modeler

o PROOF parallel query engine

26

Page 27: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

ROOT in plots

27

Page 28: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

Processing Stages - Simulation

28

individualphysicsanalysis

batch

physics

analysis

detectorEvent Summary

Data (ESD)

rawdata

event

reconstruction

event

simulation

trigger,

event selection

processeddata

Analysis Object Data (AOD)(extracted by physics topic)

Page 29: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

What is simulation?

o simulation = doing ‘virtual’ experiment

o take all the known physics

o start from your ‘initial condition’ (two protons colliding)

o calculate the ‘final state’ of your detector to get the ‘experimental’ results

o solve equations of motion, etc

o IMPOSSIBLE to be done analytically

29

Page 30: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

Monte Carlo simulation

o What is Monte Carlo?o Throwing random numbers

o to calculate integralso to pick among possible choices

o Why Monte Carlo?o complexity of the problem o lack of analytical description o need of randomness like in nature

oQuantum mechanics: amplitudes => probabilitieso Anything that possibly can happen, will! (but more or less often)

oWant to generate events in as much detail as Mother Natureo get average and fluctuations righto make random choices, ∼as in nature

30

Page 31: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

Buffon’s Needle

31

Page 32: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

Laplace method of calculating π (1886)

32

Page 33: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

Why do we need simulation?

o to design the apparatus (detector) to fulfill its role

o to prepare the reconstruction and analysis of resultso training on ‘known’

(simulated) events

o to understand the resultso we need to know what to

expect to

o verify existing models

o find new physics

33

Page 34: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

Simulation chain for HEP experiments

34

Page 35: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

Monte Carlo generators

o simulate particles reaction in vacuumo knows nothing about the

surrounding detector

o all Standard Model processes are included

o no propagation of particles, just generation of the products of the ‘primary’ collision

o the output of the ‘generators’ is the input to the ‘transport’ code

35

Page 36: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

Transport Code: Geant4

o Geant4 is a toolkit (C++) for the simulation of the passage of particles through matter.

o Its areas of application include high energy, nuclear and accelerator physics, as well as studies in medical and space science

o In HEP has been successfully employed for

o Detector design

o Calibration/alignment

o Data analysis

36

Page 37: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

What does Geant4 do?o ‘propagates’ particles through

geometrical structures of materials, including magnetic field

o simulates processes the particles undergo

o creates secondary particles

o decays particles

o calculates the deposited energy along the trajectories and allows to store the information for further processing (‘hits’)

37

Page 38: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

Simulation ingredients

owe modelo Detector’s Geometryo Shape, Location, Material

o Physics interactionso All known processes

o Electromagnetico Nuclear (strong) o Weak (decay

o we ‘shoot’ particles and ‘propagate’ them through the modeled detector

38

σtotal = Σ σper-interaction

SiliconTracker

2.5 MeV e-

electron

Page 39: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

Geant4 application

39

Page 40: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

Geometry and Materials

o How to implement (efficiently) this in your computer program?

o You need ‘bricks’o ‘solids’, ‘shapes’o you need to position themo you want to ‘reuse’ as much as

possible the same ‘templates’

o Database of Materialso National Institute of Standards

(NIST)

o Magnetic Fieldso numerical integration of the

equation of motion (Runge-Kutta method)

40

Page 41: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

Geometry construction

41

Page 42: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

Physics…o What happens to particles in

matter?o We want to model the physics we

knowo each possible physics process

provides the “interaction length” compared with distance to next geometrical boundaryo the smallest wins

o generating a “final state” and secondaries tracks

o Electromagnetic o gammas and charged particles

o Hadronico neutrons, mesons (K,π), muons, ...

42

Because of the detailed geometries, the detailed physics and the required precision the simulation is very CPU hungry

Page 43: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

Physics processes

o models exist for different physics process

o none of the model is perfect

o sometimes different models for the same process cover different energy ranges

o tradeoff between precision and CPU

o for example Electromagnetic processes include:

o Gammas: o Gamma-conversion, Compton scattering, Photo-electric effect

o Leptons(e, ), charged hadrons, ionso Energy loss (Ionisation, Bremstrahlung) or PAI model energy loss, Multiple

scattering, Transition radiation, Synchrotron radiation,

o Photons: o Cerenkov, Rayleigh, Reflection, Refraction, Absorption, Scintillation

o high energy muons and lepton-hadron interactions

43

Page 44: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

ATLAS

44

Page 45: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

ATLAS Calorimeter (a very, very small part of it)

45

Page 46: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

Data rates

o Particle beams cross every 25 ns (40 MHz)o Up to 25 particle collisions per beam crossing

o Up to 109 collisions per second

o Basically 2 event filter/trigger levelso Hardware trigger (e.g. FPGA)

o Software trigger (PC farm)

o Data processing starts at readout

o Reducing 109 p-p collisions per second to O(1000)

o Raw data to be stored permanently: >15 PB/year

46

This is our Big Data problem!!

Page 47: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

Big Data requires Big Computing

o The LHC experiments rely on distributed computing resources:o WLCG - a global solution, based on the Grid technologies/middleware.

o distributing the data for processing, user access, local analysis facilities etc.o at time of inception envisaged as the seed for global adoption of the technologies

o Tiered structureo Tier-0 at CERN: the central facility for data processing and archivalo 11 Tier-1s: big computing centers with high quality of service used for most

complex/intensive processing operations and archivalo ~140 Tier-2s: computing centers across the world used primarily for data

analysis and simulation.

o So far computing was not a limiting factor for the Physics program of the LHC experiments

47

Page 48: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

12 February 2016 J. Apostolakis 48

Page 49: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

12 February 2016 J. Apostolakis 49

Page 50: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

A Success Story!

50

Page 51: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

Prospects for HEP Software

o Potential gains can be made by exploiting features of todays CPUs’ micro architectureo using vector registers, instruction pipelining, multiple instructions per

cycle o improving data and code locality and making use of hardware threading

o New architectures to off-load large computations to accelerators(GPGPUs, Intel Xeon-Phi)

o Today multi-core architectures employing O(10) cores are well exploited using a multi-process model (1 job/core).

o However this performance will not scale to new generations of many-core architectures employing O(100) cores due to memory issueso technical issues related to connecting many cores to shared memoryo memory footprint of HEP code is increasing due to increasing event

complexity as the energy and luminosity of the LHC is increased

51

Page 52: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

GeantV prototypeo Transport particles in groups (vectors) rather than one by

oneo Group particles by geometry volume or same physicso No free lunch: data gathering overheads < vector gains

o Dispatch SoA to functions with vector signatureso Use backends to abstract interface: vector, scalaro Use backends to insulate technology/library: Vc, Cilk+,

VecMic, …

o Redesign the library and workflow to target fine grain parallelismo CPU, GPU, Phi, Atom, …o Aim for a 3x-5x faster code, understand hard limits for 10x

52

Page 53: Introduction to HEP computing...HEP experiments - present Collision Detectors Event fragments Full event Storage Offline analysis Trigger 5. Collisions at the LHC 6 Particle Proton

Conclusion

omodern HEP experiments would be impossible without computing

o online triggering and selection

o offline reconstruction, analysis and simulation

o huge data volumes

o distributed processing

53