a fast introduction to the tracking and to the kalman filterrotondi/kalman_1.pdf · a fast...

52
1 A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia

Upload: others

Post on 29-Mar-2020

9 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

1

A fast introduction tothe tracking and tothe Kalman filter

Alberto Rotondi

Pavia

Page 2: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

2

The tracking

Bvc

q F

x

yX B

+ -

0

To reconstruct the particle path to find the origin (vertex) and the momentumThe trajectory is usually curved by the Lorentz force

Even when B is uniform, the trajectory isNOT an helix, due to• energy loss• multiple scattering

The track is defined as a set of points usually on detector planes (real and/or virtual)

Page 3: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

3

The track

Since on a detector plane we have two coordinates (v,w) and three momentum components (pu, pv, pw) the track

is a 5-dimensional mathematical entity

Page 4: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

4

Tracking neglecting inhomogeneous magnetic field and the medium effects

Tracking in inhomogeneous magnetic fieldneglecting the medium effects

Tracking in inhomogeneous magnetic field withenergy loss and multiple scattering

Global fitHELIX

Global fitSPLINES

Progressive fitKALMAN ...

H. Wind, NIM 115(1974)431

R. Frühwirth, NIM A262(1987)444

Page 5: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

5

The HelixNo matter and uniform magnetic field

sinλ szsz

sinΦR

cosλ sh ΦsinRysy

cosΦR

cosλ sh ΦcosRxsx

0

0

H

0H0

0

H

0H0

s = track length

P(x0, y0, z0) = starting point

= dip angle

0 = azimuthal angle

RH = radius

h = -sign(qBz)

0

00

00 ΦxxRcosΦ

yyRsinΦarctan

cosλh

Rs

B // z two planes:

xy : circle

z - s : straight line

Page 6: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

6

Spline fitNo medium effects, dishomogeneous magnetic field is taken intoaccount

• The spline is a smooth segmented polynomial

• Cubic spline through n+1 points y0, … , yn:

3

i

2

iiii tdtctbatY

•The parameters are found by constraining the pieces of splines to be connected in the measured points assuring the continuity up to the 2derivative

parameters

i = 0,…,n

t є [0,1]

H. Wind, NIM 115 (1974), 431

Page 7: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

7

What is the track follower?

Track follower

Track extrapolation

ErrorPropagation

(5x5 covarianceMatrix)

From one pointToAnother one

In the same pointBetween twoTrack systems

Also MC with fluctuationsSwitched off

Page 8: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

8

Tracking

vs MC

MC= at each step the trajectory is sampledas a random value

Tracking= at each step the trajectory is calculatedas a mean value withan associate error

trackfollower

Page 9: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

9

GEANE

GEANE = tracking with the geometry of GEANT3 + a lot of mathematicsfor the transport matrix calculation

MARS SC

z

y

x

cosλsinφ sinλcosφ sinλ

0cosφsinφ

sinλsinφ cosλcosφ cosλ

z

y

x

V. Innocente et al. Average Tracking and Error Propagation Package, CERN Program Library W5013-E (1991).

Two main tasks:• Track propagation: the same MC

geometry banks are used.• Error propagation: •from one point to another one•In the same point betweendifferent systems

Page 10: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

10

Track propagation

Page 11: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

11

Track propagation II

a piece of helixfield along z-axisM(s) is the position

vector

l

Page 12: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

12

Track propagation III

Page 13: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

13

Track propagation IVStrandlie & Wittek, CMS note, 2006/001

Page 14: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

14

The first task: track propagation

Page 15: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

15

The jacobian transports the errosfrom one step to another

Here, at each step,multiple scattering andenergy loss effects have to be added

Page 16: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

16

Multiple scattering

uk

d0

22min

2 )(

Page 17: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

17

Multiple scattering

Page 18: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

18

Multiple scattering

Page 19: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

19

Multiple scattering

PDG: wrong

GEANE

Page 20: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

20

1/p y z

1 /p

y

z

Page 21: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

21

Energy loss

Page 22: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

Average energy loss

2

δβT

I

βγcm2ln

β

1

A

ZzcmrN π4

dx

dE 2max

2

222

e

21

2

22

e

2

eABETHE-BLOCH

Fluctuations in energy loss

Gaussian

Vavilov

2

11

22

max

2 σp

2

β1E ξEσ

Sub-Landau

Landau

10k0.01

10k

50N 0.01;k c

50N 0.01;k c

are infinite !!

is too large!!

collision single a in loss energymax

loss energy average

maxE

ξk

Page 23: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

23

Gauss and Vavilov: no problems for the track follower

2

11

22

max

2 σp

2

β1E ξEσ

Landau: problematic distribution

Sub-Landau: what distribution?

ray tail

The track follower must be comparedWith the full Landau sampling

GEANE

Page 24: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

24

GEANE and GEANT4E contain only this

Gauss and Vavilov: no problems for the track follower

Page 25: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

Improvements

• New error calculation in energy loss for

heavy particles

• New error calculation for bremsstrahlung

25

Page 26: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

26

Truncated Landau:

Solution (GEANT3 & GEANT4): truncation of the distribution tailto have as a mean the average dE/dx

Page 27: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

27

GEANE for PANDA modified with the the -tailOriginal GEANE

Page 28: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

28

Page 29: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

29

Thin gaseous absorbers: The Urban distribution

Page 30: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

30

-ray tail

Page 31: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

31

Truncation of the Urban tail of distribution

Page 32: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

32

Is the Urban distribution a good model?

Comparison with an “exact” modelin the case of a thin gas layer

Page 33: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

33

N/n ~ 2.8

xnenxl )(

nxk

ek

nxnp

!

)()(

MIP particle:Argon

CO2Cluster/cm 26 35Prymary e- 90 91

Effective cluster/cm: nMIP dE/dx/(dE/dx)min

Page 34: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

34

Urban model works well

Urban

Exact model

Landau

1.5 cm of Ar/CO2 90/10 1.2 GeV pions

Page 35: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

35

The matching between Urban and Landau is obtained for = 0.9999

Page 36: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

36

Page 37: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

37

Page 38: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

Bremsstrahlung

38

Page 39: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

Bremsstrahlung

39

Page 40: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

Bremsstrahlung

40

Page 41: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

41

=1.41 =1.13 =1.19

=0.96 =1.05

GEANE

GEANEMC

σ

xx

Pull

Page 42: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

42

A Bayesian technique:The KALMAN filter

22

21

22

2

21

1

2

22

22

21

212

110

)(,

)()()(

xx

xx

Consider the well-known weighted mean:

122

2

2

1

2

112

2

2

1

2

12

2

21

2

2

2

2

1

1

2

2

2

1

2

2

2

1

2

2

2

1

2

2

2

2

1

1

11xxx

xxxx

xx

A simple algebraic manipulation gives the recursive form:

measured point weight matrix predictionKalman= the measurement is weightedwith a model prediction (track following)

Page 43: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

43/20

Example: Radar Applications 2/3

In a radar application, where one is interested in following a target, information about the location, speed, and acceleration of the target is measured at different moments in time with corruption by noise.

r = { x, y, z, vx, vy, vz }

2x

2y …

2z

2vx

… 2vy

2vz

C =

December 21, 1968. The Apollo 8 spacecraft has just been sent on its way to the Moon.003:46:31 Collins: Roger. At your convenience, would you please go P00 and Accept? We're going to update to your W-matrix.

State vector Covariance matrix

position velocity

error of x

Page 44: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

44

The original idea is very simple

When m is measured at t2 and x(t1,t2) is the prediction from t1 to t2, the best evaluation of x at t2 is

This is called the Kalman filter recursive form

mttxmtxm

m ),()( 212

2

2

2

2

Kalman= the measurement is weightedwith a model prediction (track following)

Page 45: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

45

ki-1

ki

Xi

ei

Ki+1Xi+1

ei+1

fi

Extrapolation, filtering and smoothing

Kalman filter

Kalman filter

Detector plane

x Measured point

prefit

vertex

Page 46: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

46

GEANE

GEANEMC

σ

xx

1.03RMS

0.995α

Energy loss stragglingMultiple scattering

Track propagation: physical effects

Pull

Page 47: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

47

Trackingwith Kalman

Page 48: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

48

Trackingwith Kalman

solve

Page 49: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

49

Page 50: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

50

22

21

22

2

21

1

11

xx

Page 51: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

51

Page 52: A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast introduction to the tracking and to the Kalman filter Alberto Rotondi Pavia 2 The tracking

52

Track fitting tools

1. the GEANT3-GEANE old chain:The mathematics is that of Wittek (EMC Collaboration)The tracking banks and routines are the same as in MC. The user gives the starting and endingplanes or volumes and the tracking is done automatically.It works very well (see the CERN Report W5013 GEANE, 1991).

2. “Modern” experiments:in the software are implemented some tracking classes:input: xi, Ti , i, step, medium, magnetic fieldoutput: new xi, Ti, i

the user has to manage geometry,medium and detector interface

3. A GEANT4-GEANT4E chain there exists in the new GEANT Rootframework.It is used by CMS but is not included into the official releases(see Pedro Arce’s talks in the Web)