A fast introduction to the tracking and to the Kalman filterrotondi/kalman_1.pdf · A fast...

Preview:

Citation preview

1

A fast introduction tothe tracking and tothe Kalman filter

Alberto Rotondi

Pavia

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)

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

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

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

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

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

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

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

10

Track propagation

11

Track propagation II

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

vector

l

12

Track propagation III

13

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

14

The first task: track propagation

15

The jacobian transports the errosfrom one step to another

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

16

Multiple scattering

uk

d0

22min

2 )(

17

Multiple scattering

18

Multiple scattering

19

Multiple scattering

PDG: wrong

GEANE

20

1/p y z

1 /p

y

z

21

Energy loss

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

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

24

GEANE and GEANT4E contain only this

Gauss and Vavilov: no problems for the track follower

Improvements

• New error calculation in energy loss for

heavy particles

• New error calculation for bremsstrahlung

25

26

Truncated Landau:

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

27

GEANE for PANDA modified with the the -tailOriginal GEANE

28

29

Thin gaseous absorbers: The Urban distribution

30

-ray tail

31

Truncation of the Urban tail of distribution

32

Is the Urban distribution a good model?

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

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

34

Urban model works well

Urban

Exact model

Landau

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

35

The matching between Urban and Landau is obtained for = 0.9999

36

37

Bremsstrahlung

38

Bremsstrahlung

39

Bremsstrahlung

40

41

=1.41 =1.13 =1.19

=0.96 =1.05

GEANE

GEANEMC

σ

xx

Pull

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)

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

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)

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

46

GEANE

GEANEMC

σ

xx

1.03RMS

0.995α

Energy loss stragglingMultiple scattering

Track propagation: physical effects

Pull

47

Trackingwith Kalman

48

Trackingwith Kalman

solve

49

50

22

21

22

2

21

1

11

xx

51

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)

Recommended