# Presentation: 161826

## L2STT  Trigger Simulator -       Clusters

- Silvia Tentindo Repond

- Silvia Tentindo Repond
- FSU
- Boston  Workshop
- 11 June 1999

## L2STT Trigger Simulation Overview

- L2STT trig sim component classes in package tsim_l2stt :
-  tsim_L2STT  STEERING CLASS
- L2STTCluster Class :  simulates the Clustering FPGA of the STC
- L2STTHitsInRoads simulates the FRC and the hit filtering FPGA of STC
- L2STTTrack simulates track fitting in the TFC
- L2STTVertex simulates  the Vertex Card
-  package tsim_l2stt released in CVS

- STR. Boston STT

## tsim-L2STT block diagram (general)

- CFT Roads
- SMT Hits in Road

- Tracking

- Vertex

- SMT

- CFT

- tsim_L2STT
- steering Class

- SMT Hits
- Clustering

- L2STTNtuples

- STR.Boston STT

## L2STT Cluster Algorithm (Algo I)

- Read SMT
- HDI,Chip
- ChanID,ChanADC

- Calc. N=Sum(ChanID*ChanADC
- D=Sum(ChanADC)

*ChanID Neighbohr?*

- NO=End Cluster

- YES=Read Next Channel

- Calc. N/D LUT

- Store into Buffer
- Clusters

*End Event?*

- YES=Send Buffer Clusters
- to Road/Hit Filter

- NO= Start Next Cluster

- ClusterSize ++

- ClusterSize 0

- Subtract Pedestals / ChanADC < Threshold

- STR .Boston STT

## L2STT Cluster Algorithm (Algo II)

- Read SMT
- HDI,Chip
- ChanID,ChanADC

- Calc. Max. ADC ChanID=Seed
- Calc.Centroid  (LUT_Uli)

- NO=End Cluster

- Store into Buffer
- Clusters

*End Event?*

- YES=Send Buffer Clusters
- to Road/Hit Filter

- No= Start Next Cluster

*ChanID Neighbohr?*

- YES= Next Chan

- MAX Next 5 Chan

- Store on local Buffer ChanID,ChanADC

- STR.Boston STT

## Results of Cluster Algorithm in Trigger Simulator withInput Monte Carlo events 

- tsim  activated configuration consists of  ............................ SMT input
-  SMT Hits Clustering
-  L2STTNtuples
- input files used ..................................................................... 50 Gev single track muons (1000 events)                             t tbar no min bias (500 events)

- STR.Boston STT

## Results (cont.)

- Mean number of clusters /evt                   9.5  single muons          .                                                                                                 800  t tbar
- cluster size                                                 2.8
-  cluster pulse height                                   45
- hardware address  -    distributions of channel number        .                                   Chip number, HDI number,               .                                    Sequencer  and Crate number           . -  do look OK

- STR.Boston STT

## L2STT Clustering - 50Gev Muons (1000evts)        STR/6/99

## L2STT Clustering - t tbar (500evts)        STR/6/99

## Next

- Study cluster occupancies in chips , HDIs etc vs kind of events ( single -tracks / t tbar / t tbar + min bias )
- study clusters with very high size ( where do they come from - how often )
- study clusters with more than one maximum and improve Algos to calculate appropriate centroid(s)
- _implement FPGA vsn of tsim Clustering (STT emulator)_
- consider possible choices of LUT and implement LUT in Algo(s)
- improve Cluster Algo I :                                             @ activate Threshold cut through RCP          @ parameterization of pedestals - uses  one value +slope _per chip_                                      - see test beam results etc. -
-  @ clusters on >1 contiguous chip

- STR.Boston STT

## Next (cont.)

-  noisy channels : exclude from calc. of                    Centroid ; extrapolate value from neighbor channels                                                           @dead channels : keep same cluster for channel neighbor to dead channel
- implement Cluster Algo II
- compare calculated hits to MC  for efficiencies etc.
- do timing studies for each Algo and LUT
- .......**now that SMT Hits are ready, need to get Hits in Roads**
**and STT Tracks Classes need to be implemented**

- STR.Boston STT