visualization of ftk & tiny triplet finder

26
Jan. 2009 Jinyuan Wu & Tiehui Liu, [email protected] 1 Visualization of FTK & Tiny Triplet Finder Jinyuan Wu and Tiehui Liu Fermilab January 2010

Upload: sari

Post on 09-Feb-2016

22 views

Category:

Documents


0 download

DESCRIPTION

Visualization of FTK & Tiny Triplet Finder. Jinyuan Wu and Tiehui Liu Fermilab January 2010. Assumption. Pixel and SCT barrels are considered. Total number of channels (From Fig. 2.1 of TP): B0: 20K B1: 16K B2: 14K SCT3, 4, 5, 6: 5K each. Total number of clusters (1/1.3 of above): - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Visualization of FTK & Tiny Triplet Finder

Jan. 2009 Jinyuan Wu & Tiehui Liu, [email protected] 1

Visualization of FTK& Tiny Triplet Finder

Jinyuan Wu and Tiehui LiuFermilab

January 2010

Page 2: Visualization of FTK & Tiny Triplet Finder

Jan. 2009 Jinyuan Wu & Tiehui Liu, [email protected] 2

Assumption• Pixel and SCT barrels are considered.• Total number of channels (From Fig. 2.1 of TP):

– B0: 20K– B1: 16K– B2: 14K– SCT3, 4, 5, 6: 5K each.

• Total number of clusters (1/1.3 of above):– B0: 15K– B1: 12K– B2: 11K– SCT3, 4, 5, 6: 3.8K each.

Page 3: Visualization of FTK & Tiny Triplet Finder

Jan. 2009 Jinyuan Wu & Tiehui Liu, [email protected] 3

The R-phi View of Pixels

0

20

40

60

80

100

120

140

0 20 40 60 80 100 120 140

• Pixel modules are tilted.• For hits on B0 found in rows

along z-axis, several “R-phi Corridors” can be defined.

• In each r-phi corridor, distances between pixel planes are relatively well defined.

Page 4: Visualization of FTK & Tiny Triplet Finder

Jan. 2009 Jinyuan Wu & Tiehui Liu, [email protected] 4

The R-Phi Corridors

• Consider 1 mm impact parameter, the possible range of tracks passing through a 1 mm r-phi bin in B0 spread in large range. For Pt = +- 1 GeV, the range in B2 is about 14 mm.

• For a r-phi corridor passing a bin each in B0 and B1, 1 mm each, the range on B2 is about 4mm.• More than 30 hit patterns for each bin in B0 can be counted above.• There are about 30 patterns/bin x 300 bins ~ 9K patterns in r-phi view.

-8

-6

-4

-2

0

2

4

6

8

0 20 40 60 80 100 120 140

Page 5: Visualization of FTK & Tiny Triplet Finder

Jan. 2009 Jinyuan Wu & Tiehui Liu, [email protected] 5

The Thin Road Bins

• The size of the bins in the Thin Road scheme is (1 mm x 60 mm) in (r-phi & z).

0

20

40

60

80

100

120

140

160

180

0 10 20 30 40 50 60 70 80

Page 6: Visualization of FTK & Tiny Triplet Finder

Jan. 2009 Jinyuan Wu & Tiehui Liu, [email protected] 6

0

20

40

60

80

100

120

140

160

180

0 10 20 30 40 50 60 70 80

Random Hits in the Thin Road Bins

3.7 hits/bin

1.4 hits/bin

0.9 hits/bin

• Nearly all bins are on.• With or without pixel will not help given this bin size.

Page 7: Visualization of FTK & Tiny Triplet Finder

Jan. 2009 Jinyuan Wu & Tiehui Liu, [email protected] 7

Binning in Z Direction

• Let’s dream we can further divide in z-direction.• Consider (1 mm x 1.9 mm) in r-phi & z for B1.• In B2, the bin size above is (1.7 mm x 3 mm).

0

20

40

60

80

100

120

140

160

180

0 10 20 30 40 50 60 70 80

Page 8: Visualization of FTK & Tiny Triplet Finder

Jan. 2009 Jinyuan Wu & Tiehui Liu, [email protected] 8

0

20

40

60

80

100

120

140

160

180

0 10 20 30 40 50 60 70 80

Hits with Finer Bins

0.045 hits/bin

0.084 hits/bin

• With binning in z-direction, things become not hopeless.• In r-z view, there can be 60 roads (when eta = +-1) in each Pt corridor. (x20

than the Thin Road scheme)

• For each hit on B0, a z range of +- 90 mm on B2 must be checked in order to cover eta +- 1 range.

• With 3 mm binning in z:– 180 mm / 3 mm = 60.

Page 9: Visualization of FTK & Tiny Triplet Finder

Jan. 2009 Jinyuan Wu & Tiehui Liu, [email protected] 9

Roads in a Pt Corridor

0

50

100

150

0 10 20 30 40 50 60

z (mm)

r (m

m)

• For each hit in B0, there can be many roads in r-z view, depending on eta range (eta +- 0.2 are shown above).

• The similar set of roads repeat along z.

Page 10: Visualization of FTK & Tiny Triplet Finder

Jan. 2009 Jinyuan Wu & Tiehui Liu, [email protected] 10

The R-Z Region to Work With

• The 2 sigma collision point is +-100 mm and a corresponding cut can be made to reduce fake rate.• The region to work with for eta = +- 1 is shown above.• For each bin (3mm) at B0, a range of about 180 mm, or 60 bins on B2 is searched.• For each bin in B0, there are more than 120 hit patterns.• There are about 100 bins at B0. Total number of patterns: 120 x 100 = 12K.

0

50

100

150

200

-250 -200 -150 -100 -50 0 50 100 150 200 250

z (mm)

r (m

m)

Page 11: Visualization of FTK & Tiny Triplet Finder

Jan. 2009 Jinyuan Wu & Tiehui Liu, [email protected] 11

Good, But• Using the Thin Road scheme as a starting point, adding x20

z-binning provides finer constraints in r-z view and reducing fake tracks becomes possible.

• The number of required patterns in B0 alone is 12K x 9K = 108M, (hand estimate only without considering multiple scattering etc.).

• Increasing AM size? Maybe it is OK for 108M. But it is endless when bins become finer, when strip layers are included, etc.

• There exist clever approaches. Too many patterns?1. Reuse2. Reuse3. Reuse

• Tiny Triplet Finder is a scheme of reusing hit patterns.

Page 12: Visualization of FTK & Tiny Triplet Finder

Jan. 2009 Jinyuan Wu & Tiehui Liu, [email protected] 12

Classification of Pattern RecognitionSoftware Hardware

TypicalHardware Resource Saving Approaches

DoubletFinding

O(n2)for(){ for(){…}}

O(n)*O(N)ComparatorArray

Hash SorterO(n)*O(N): in RAM

TripletFinding

O(n3)for(){ for(){ for(){…} }}

O(n)*O(N2)CAM,Hugh Trans.

Tiny Triplet FinderO(n)*O(N*logN)

O(n4)for(){ for(){ for(){ for() {…}}}}

Page 13: Visualization of FTK & Tiny Triplet Finder

Jan. 2009 Jinyuan Wu & Tiehui Liu, [email protected] 13

The Tiny Triplet Finder• Triplet: e.g., 3 hits in a straight line in a plane. A

semi-formal definition: n items satisfying n-2 constraints.

• Tiny = Small silicon resource usage.

• Typical implementation of triplet finding with N bins:

– Hough transform: O(N^2) histogram bins.– AM: O(N^2) roads.

• Tiny Triplet Finder: O(N*log(N)) shifting elements.

Page 14: Visualization of FTK & Tiny Triplet Finder

Jan. 2009 Jinyuan Wu & Tiehui Liu, [email protected] 14

Tiny Triplet Finder for FTK, Step (1a)• Choose a narrow row (0.5 mm) of

pixels along z-axis on B0 as seeds.• Divide B1 into bins in r-phi view.

The width of B1 bin is chosen to be (0.5 mm)*R1/R0 = 1.1 mm.

-8

-6

-4

-2

0

2

4

6

8

0 20 40 60 80 100 120 140

-8

-6

-4

-2

0

2

4

6

8

0 20 40 60 80 100 120 140

• Define the r-phi corridors.• An r-phi corridor contains the seed

bin in B0, a bin in B1 and the projected range (3.7 mm) in B2.

• Note that ranges of different corridors in B2 overlap each other.

• Up to 7 corridors can be defined.

Page 15: Visualization of FTK & Tiny Triplet Finder

Jan. 2009 Jinyuan Wu & Tiehui Liu, [email protected] 15

Tiny Triplet Finder for FTK, Step (1b)• For each r-phi corridor, book hit

patterns of B2 and B1 (not B0) to register arrays.

• Bin sizes (r-phi x z):– B1: (1 mm x 1.9 mm) no overlap.– B2: (3.7 mm x 3 mm) with overlap

in r-phi but not z.• 7 sets of the register arrays are

needed corresponding to 7 r-phi corridors.

0

20

40

60

80

100

120

140

160

180

0 10 20 30 40 50 60 70 80

Page 16: Visualization of FTK & Tiny Triplet Finder

Jan. 2009 Jinyuan Wu & Tiehui Liu, [email protected] 16

Tiny Triplet Finder for FTK, Step (2)

• For a hit in B0, align the two arrays to search for a valid road.

0

50

100

150

-20 -10 0 10 20 30 40 50 60

z (mm)

r (m

m)

0

50

100

150

-20 -10 0 10 20 30 40 50 60

z (mm)

r (m

m)

• For another hit in B0, shift the two arrays to reuse the road patterns.

• Only one set of the road patterns is needed. Other sets of patterns becomes available by shifting.

• However, shifting is not free. See next two pages.

Page 17: Visualization of FTK & Tiny Triplet Finder

Jan. 2009 Jinyuan Wu & Tiehui Liu, [email protected] 17

Actual Hardware Implementation

*R1/R3

*R2/R3 Triplet Map Output To Encoder

Bit

Arr

ay

LogarithmicShifter

Bit

Arr

ay

Bit-wise Coincident Logic

1. Fill the B1 and B2 bit arrays. (n1 clock cycles)

2. Loop over B0 hits, shift bit arrays and check for coincidence. (n0 clock cycles)

LogarithmicShifter

Page 18: Visualization of FTK & Tiny Triplet Finder

Jan. 2009 Jinyuan Wu & Tiehui Liu, [email protected] 18

The Logarithmic Shifter

S1

S2

S4

# of bits: NShift distance: L# of stages: log2LTotal LE usage: N*log2L

• A shift of X bit of the bit pattern is done in one clock cycle rather than X cycles. • Logarithmic shifter is also known as “barrel shifter”, but the term “logarithmic” reflects nature of

implementation, resource usage and propagation delay better.• If number of bins x2, just add one layer, rather than x4 of total silicon resource.

Page 19: Visualization of FTK & Tiny Triplet Finder

Jan. 2009 Jinyuan Wu & Tiehui Liu, [email protected] 19

Irregular Geometry• The modules are tilted and the r at

different phi in a module are different.

• However, relative distances in each Pt corridor are well defined.

• The bin widths (in both r-phi and z) are adjusted according to the relative distance when the register array is booked.

0

20

40

60

80

100

120

140

0 20 40 60 80 100 120 140

Bins in these corridors are slightly narrower.

Bins in these corridors are slightly wider.

Page 20: Visualization of FTK & Tiny Triplet Finder

Jan. 2009 Jinyuan Wu & Tiehui Liu, [email protected] 20

Adding Strip Layers

• The occupancy of the pixel layers are high.

• Additional constraints may be needed.

• It may be necessary of do coincidence for all 7 layers. (Perhaps, 6-out-of-7?).

0

100

200

300

400

500

600

0 100 200 300 400 500 600

Page 21: Visualization of FTK & Tiny Triplet Finder

Jan. 2009 Jinyuan Wu & Tiehui Liu, [email protected] 21

Using Outer Strip Layer Hits as Seeds

• It is also possible to use strip layer hits as seeds.

0

100

200

300

400

500

600

0 100 200 300 400 500 600

Page 22: Visualization of FTK & Tiny Triplet Finder

Jan. 2009 Jinyuan Wu & Tiehui Liu, [email protected] 22

Using Middle Strip Layer Hits as Seeds

• It is possible to choose seeding layer to for better performance.

0

100

200

300

400

500

600

0 100 200 300 400 500 600

0

100

200

300

400

500

600

0 100 200 300 400 500 600

Page 23: Visualization of FTK & Tiny Triplet Finder

Jan. 2009 Jinyuan Wu & Tiehui Liu, [email protected] 23

Tiny Triplet Finder for More Then 3 Layers

• The triplet finder can also search coincidence in more than 3 layers.• A coincidence for 5 layers is shown above.

Seed Layer

Page 24: Visualization of FTK & Tiny Triplet Finder

Jan. 2009 Jinyuan Wu & Tiehui Liu, [email protected] 24

Booking Bins in z for Strip Layers

• Use stereo and axial strips to book bins in both r-phi and z- directions.

Book a bit pattern for the stereo layer.

For any hit strip in axial layer, copy selected bit pattern for z-bins.

Fake hits may exist but they can be eliminated after track finding.

Page 25: Visualization of FTK & Tiny Triplet Finder

Jan. 2009 Jinyuan Wu & Tiehui Liu, [email protected] 25

How Tiny Triplet Finder Fits into FTK Project

• From DF (or maybe DO), output an additional copy of HITS information via S-links.• Another set of crate carrying Tiny Triplet Finder or other R&D scheme can be tested.• The found patterns + hits can be fed into existing track fitter for further cleanup.

FTKPattern

RecognitionR&D

Platform

FTKPattern

RecognitionR&D

Platform

FTKPattern

RecognitionR&D

Platform

Page 26: Visualization of FTK & Tiny Triplet Finder

Jan. 2009 Jinyuan Wu & Tiehui Liu, [email protected] 26

Summary• Using z information in pixel helps.• However, number of patterns increases a lot.• Tiny Triplet Finder reuse patterns so that binning in z

becomes doable.• The Tiny Triplet Finder or other pattern recognition

schemes can be tested in parallel with the baseline AM approach.

• We wish to attract colleagues to work on simulation with z- binning to understand efficiency and fake triplet rate.