refitting tracks from dst e. rodrigues, nikhef lhcb tracking and alignment workshop, lausanne, 8-9th...

27
Refitting Tracks from DST Refitting Tracks from DST E. Rodrigues, NIKHEF E. Rodrigues, NIKHEF LHCb Tracking and Alignment Workshop, Lausanne, 8-9th November LHCb Tracking and Alignment Workshop, Lausanne, 8-9th November 2006 2006 Motivations Motivations Step-by-step … Step-by-step … Current Performance Current Performance - Tests with Brunel v30r12 Outlook Outlook

Upload: lambert-smith

Post on 18-Jan-2016

219 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Refitting Tracks from DST E. Rodrigues, NIKHEF LHCb Tracking and Alignment Workshop, Lausanne, 8-9th November 2006  Motivations  Step-by-step …  Current

Refitting Tracks from DSTRefitting Tracks from DST

E. Rodrigues, NIKHEFE. Rodrigues, NIKHEF

LHCb Tracking and Alignment Workshop, Lausanne, 8-9th November 2006LHCb Tracking and Alignment Workshop, Lausanne, 8-9th November 2006

MotivationsMotivations

Step-by-step …Step-by-step …

Current PerformanceCurrent Performance

- Tests with Brunel v30r12

OutlookOutlook

Page 2: Refitting Tracks from DST E. Rodrigues, NIKHEF LHCb Tracking and Alignment Workshop, Lausanne, 8-9th November 2006  Motivations  Step-by-step …  Current

LHCb Lausanne Workshop, 9th November. 2006 2/27

Motivations

Reconstruction and PhysicsReconstruction and Physics

Refitting tracks is a necessity in real world analysesRefitting tracks is a necessity in real world analyses- e.g.: needed after improvement in knowledge of alignment- e.g.: needed after improvement in knowledge of alignment

Event ModelEvent Model

One of the reasons for the track event model review in 2004-5One of the reasons for the track event model review in 2004-5- Nobody knew how to refit tracks from DST with the old event model- Nobody knew how to refit tracks from DST with the old event model

Ability to refit was a request to usAbility to refit was a request to us

… … WAS STILL AN UNTACKLED ISSUE …WAS STILL AN UNTACKLED ISSUE …

Page 3: Refitting Tracks from DST E. Rodrigues, NIKHEF LHCb Tracking and Alignment Workshop, Lausanne, 8-9th November 2006  Motivations  Step-by-step …  Current

LHCb Lausanne Workshop, 9th November. 2006 3/27

Setting the Scene (1/3)

In Brunel …In Brunel …

Whole of the tracking sequence:Whole of the tracking sequence:

Pattern recognitionPattern recognition

Track fittingTrack fitting

Clone killingClone killing

tracks stripped of non-persistent informationtracks stripped of non-persistent information- left basically with LHCbIDs and flags- left basically with LHCbIDs and flags

job done with the “job done with the “TrackToDSTTrackToDST” algorithm” algorithm

… … saved on the DSTsaved on the DST

Container of “BEST” tracksContainer of “BEST” tracks

Page 4: Refitting Tracks from DST E. Rodrigues, NIKHEF LHCb Tracking and Alignment Workshop, Lausanne, 8-9th November 2006  Motivations  Step-by-step …  Current

LHCb Lausanne Workshop, 9th November. 2006 4/27

Setting the Scene (2/3)

Two “kinds” of refittingTwo “kinds” of refitting

I.I. Refit a single trackRefit a single track - probably mostly useful for tests, special studies, etc.- probably mostly useful for tests, special studies, etc.

- Note: can also be done in Python … can show interesting things …- Note: can also be done in Python … can show interesting things …

II.II. Refit all tracks in a containerRefit all tracks in a container - the common situation, I guess- the common situation, I guess

Solving situation II implies solving ISolving situation II implies solving I - options to refit a track simply applied on the set of container tracks- options to refit a track simply applied on the set of container tracks

Page 5: Refitting Tracks from DST E. Rodrigues, NIKHEF LHCb Tracking and Alignment Workshop, Lausanne, 8-9th November 2006  Motivations  Step-by-step …  Current

LHCb Lausanne Workshop, 9th November. 2006 5/27

Setting the Scene (3/3)

Refitting tracks from DSTRefitting tracks from DST

Read the cocktail of tracks in the “best” containerRead the cocktail of tracks in the “best” container Separate them back accordingly, in their original containersSeparate them back accordingly, in their original containers

- Rec/Track/Forward, Rec/Track/Match, etc.- Rec/Track/Forward, Rec/Track/Match, etc. Refit per container with appropriate optionsRefit per container with appropriate options

- options depend on the track type!- options depend on the track type!

Need for a new algorithm …Need for a new algorithm …

NewNew TrackFromDST algorithm TrackFromDST algorithm in Tr/TrackUtils in Tr/TrackUtils classifies the tracks given as input according to their History /classifies the tracks given as input according to their History / pattern recognition algorithms, pattern recognition algorithms, i.e. remakes the PR algorithms i.e. remakes the PR algorithms produced in Brunelproduced in Brunel BUT: all clones are gone! Not quite the same containers …BUT: all clones are gone! Not quite the same containers …

Page 6: Refitting Tracks from DST E. Rodrigues, NIKHEF LHCb Tracking and Alignment Workshop, Lausanne, 8-9th November 2006  Motivations  Step-by-step …  Current

LHCb Lausanne Workshop, 9th November. 2006 6/27

First Blind Tests (1/2)

Home-made DSTHome-made DST

Minimalistic Brunel job – only trackingMinimalistic Brunel job – only tracking - still done in Brunel v30r10- still done in Brunel v30r10

Refit tracks from DSTRefit tracks from DST

Can do study in (at least) 2 ways:Can do study in (at least) 2 ways: in DaVinciin DaVinci with a standalone / simple Gaudi jobwith a standalone / simple Gaudi job opted for a standalone Python scriptopted for a standalone Python script

NewNew DaVinciRefitting.opts:DaVinciRefitting.opts:options file with “refit” process phase options file with “refit” process phase (details given later)(details given later)

own code to match “Brunel original’s” to refitted tracksown code to match “Brunel original’s” to refitted tracks

and then compare the outcome …and then compare the outcome …

Page 7: Refitting Tracks from DST E. Rodrigues, NIKHEF LHCb Tracking and Alignment Workshop, Lausanne, 8-9th November 2006  Motivations  Step-by-step …  Current

LHCb Lausanne Workshop, 9th November. 2006 7/27

First Blind Tests (2/2)

FitForward INFO ====================== TrackEventFitter Summary ======================FitForward INFO Fitting performance : 99.60 %FitForward INFO ( 9604 / 9643 tracks )FitForward INFO ======================================================================

Looking first at Long tracks from PatForwardLooking first at Long tracks from PatForward

Same fitting options as in Brunel!Same fitting options as in Brunel! Got many messages of the kind:Got many messages of the kind:

FitForward.Fitter.RefInfoTool WARNING LongTrackReferenceCreator:: No Velo State StatusCode=FAILURE

At the end of the job:At the end of the job:

Conclusions:Conclusions:

All these tracks had been successfully fitted in BrunelAll these tracks had been successfully fitted in Brunel - by construction, since they were taken from the “best” container- by construction, since they were taken from the “best” container

This first result is encouraging, but not good enough …This first result is encouraging, but not good enough … Let’s have a look at the reference information tools …Let’s have a look at the reference information tools …

Tool to set reference info. on « Long » tracksTool to set reference info. on « Long » tracks

Page 8: Refitting Tracks from DST E. Rodrigues, NIKHEF LHCb Tracking and Alignment Workshop, Lausanne, 8-9th November 2006  Motivations  Step-by-step …  Current

LHCb Lausanne Workshop, 9th November. 2006 8/27

First Improvements (1/2)

Tr/TrackToolsTr/TrackTools LongTrackReferenceCreator:LongTrackReferenceCreator:

• Adapted so that it can be used for tracks from DST, i.e. without Adapted so that it can be used for tracks from DST, i.e. without “ “EndVelo” and AtT” states – these are only available in BrunelEndVelo” and AtT” states – these are only available in Brunel• … … now it takes closest statesnow it takes closest states

- improvements do not influence behaviour in Brunel- improvements do not influence behaviour in Brunel

Reference information tools for refitting:Reference information tools for refitting:

In Brunel we have for now tools for only Long and seed (Tsa) tracksIn Brunel we have for now tools for only Long and seed (Tsa) tracks Tool for Long tracks successfully adapted/generalisedTool for Long tracks successfully adapted/generalised

- LongTrackReferenceCreator- LongTrackReferenceCreator Tool for Tsa seed tracks cannot be used for now outside BrunelTool for Tsa seed tracks cannot be used for now outside Brunel

- Accesses pattern recognition intermediate information- Accesses pattern recognition intermediate information - We could/should make the tool flexible for refitting applications- We could/should make the tool flexible for refitting applications - Or make a new dedicated tool- Or make a new dedicated tool

Tools for VeloTT and KShort fitting would be desirable …Tools for VeloTT and KShort fitting would be desirable …

Page 9: Refitting Tracks from DST E. Rodrigues, NIKHEF LHCb Tracking and Alignment Workshop, Lausanne, 8-9th November 2006  Motivations  Step-by-step …  Current

LHCb Lausanne Workshop, 9th November. 2006 9/27

First Improvements (2/2)

The special case of Velo tracks:The special case of Velo tracks:

In Brunel they are “prepared for fitting”In Brunel they are “prepared for fitting” - Get a P- Get a PTT of 400 MeV of 400 MeV

- P set accordingly, depending also on slope- P set accordingly, depending also on slope Are prepared only those Velo tracks that are not ancestors of Are prepared only those Velo tracks that are not ancestors of

tracks in the “best” containertracks in the “best” container For other purposes/tests it can be handy not to take into account For other purposes/tests it can be handy not to take into account

the “best” container …the “best” container …

Tr/TrackUtilsTr/TrackUtils TrackPrepareVelo:TrackPrepareVelo: modified so that Velo tracks ancestors of tracksmodified so that Velo tracks ancestors of tracks in the “best” container can also be “prepared”in the “best” container can also be “prepared”

Page 10: Refitting Tracks from DST E. Rodrigues, NIKHEF LHCb Tracking and Alignment Workshop, Lausanne, 8-9th November 2006  Motivations  Step-by-step …  Current

LHCb Lausanne Workshop, 9th November. 2006 10/27

Refitting Options

For now all in a file: For now all in a file: DaVinciRefitting.optsDaVinciRefitting.opts

“ “Refit” process phaseRefit” process phase

Loading of all necessary librariesLoading of all necessary libraries- tracking-related libraries- tracking-related libraries- libraries for general needed tools (e.g.: cluster position tools )- libraries for general needed tools (e.g.: cluster position tools )

Remake all original containers from the “best” containerRemake all original containers from the “best” container

Decoding of all tracking detectors – needed for track fitDecoding of all tracking detectors – needed for track fit

Refitting of all containersRefitting of all containers - with dedicated options according to track type- with dedicated options according to track type - same options as in Brunel - same options as in Brunel (except for ref. tools – see comments before )(except for ref. tools – see comments before )

Page 11: Refitting Tracks from DST E. Rodrigues, NIKHEF LHCb Tracking and Alignment Workshop, Lausanne, 8-9th November 2006  Motivations  Step-by-step …  Current

LHCb Lausanne Workshop, 9th November. 2006 11/27

Second Round of Tests (1/2)

Some words on technical detailsSome words on technical details

Reference information set only for Long tracksReference information set only for Long tracks - tracks from PatForward and TrackMatching- tracks from PatForward and TrackMatching

Testing on other track types as well …Testing on other track types as well …

FitForward INFO ====================== TrackEventFitter Summary ======================

FitForward INFO Fitting performance : 100.00 %

FitForward INFO ( 9643 / 9643 tracks )

FitForward INFO ======================================================================

FitMatch INFO ====================== TrackEventFitter Summary ======================

FitMatch INFO Fitting performance : 100.00 %

FitMatch INFO ( 6461 / 6461 tracks )

FitMatch INFO ======================================================================

Much better !

Much better !

Page 12: Refitting Tracks from DST E. Rodrigues, NIKHEF LHCb Tracking and Alignment Workshop, Lausanne, 8-9th November 2006  Motivations  Step-by-step …  Current

LHCb Lausanne Workshop, 9th November. 2006 12/27

Second Round of Tests (2/2)

FitVeloTT INFO ====================== TrackEventFitter Summary ======================FitVeloTT INFO ====================== TrackEventFitter Summary ======================

FitVeloTT INFO Fitting performance : 99.86 %FitVeloTT INFO Fitting performance : 99.86 %

FitVeloTT INFO ( 2138 / 2141 tracks )FitVeloTT INFO ( 2138 / 2141 tracks )

FitVeloTT INFO ======================================================================FitVeloTT INFO ======================================================================

FitTsaSeed INFO FitTsaSeed INFO

FitTsaSeed INFO ====================== TrackEventFitter Summary ======================FitTsaSeed INFO ====================== TrackEventFitter Summary ======================

FitTsaSeed INFO Fitting performance : 100.00 %FitTsaSeed INFO Fitting performance : 100.00 %

FitTsaSeed INFO ( 11000 / 11000 tracks )FitTsaSeed INFO ( 11000 / 11000 tracks )

FitTsaSeed INFO ======================================================================FitTsaSeed INFO ======================================================================

FitKShort INFO FitKShort INFO

FitKShort INFO ====================== TrackEventFitter Summary ======================FitKShort INFO ====================== TrackEventFitter Summary ======================

FitKShort INFO Fitting performance : 99.91 %FitKShort INFO Fitting performance : 99.91 %

FitKShort INFO ( 6483 / 6489 tracks )FitKShort INFO ( 6483 / 6489 tracks )

FitKShort INFO ======================================================================FitKShort INFO ======================================================================

Also encouragingAlso encouraging some fit failures left to be investigated later …some fit failures left to be investigated later …

Page 13: Refitting Tracks from DST E. Rodrigues, NIKHEF LHCb Tracking and Alignment Workshop, Lausanne, 8-9th November 2006  Motivations  Step-by-step …  Current

LHCb Lausanne Workshop, 9th November. 2006 13/27

Comparisons - Setup

Home-made DSTHome-made DST

Minimalistic Brunel job – only trackingMinimalistic Brunel job – only tracking

Now done in Brunel v30r12Now done in Brunel v30r12

Extended DST:Extended DST: has linker tables to be able to re-associate trackshas linker tables to be able to re-associate tracks

Refit tracks from DSTRefit tracks from DST

Extended standalone Python scriptExtended standalone Python script

same same DaVinciRefitting.optsDaVinciRefitting.opts

own code to match “Brunel original’s” to refitted tracksown code to match “Brunel original’s” to refitted tracks

Tracks re-associated to MC truthTracks re-associated to MC truth

comparisons to same Brunel original track and MC truthcomparisons to same Brunel original track and MC truth

Page 14: Refitting Tracks from DST E. Rodrigues, NIKHEF LHCb Tracking and Alignment Workshop, Lausanne, 8-9th November 2006  Motivations  Step-by-step …  Current

LHCb Lausanne Workshop, 9th November. 2006 14/27

Comparisons - Explanations

BrunelBrunel Track’s original value in BrunelTrack’s original value in Brunel

DVDV ““DaVinci” value, i.e. value after track refittingDaVinci” value, i.e. value after track refitting

X (DV – Brunel)X (DV – Brunel) Resolution in variable “X” – comparison refitting/fittingResolution in variable “X” – comparison refitting/fitting

Plots for x, y, tPlots for x, y, txx, t, tyy:: Variable comparison looping over all states on the trackVariable comparison looping over all states on the track

Page 15: Refitting Tracks from DST E. Rodrigues, NIKHEF LHCb Tracking and Alignment Workshop, Lausanne, 8-9th November 2006  Motivations  Step-by-step …  Current

LHCb Lausanne Workshop, 9th November. 2006 15/27

Comparisons - Long Tracks (1/6)

Very good Very good

agreementagreement

in slopesin slopes

Tails to be understoodTails to be understood

Page 16: Refitting Tracks from DST E. Rodrigues, NIKHEF LHCb Tracking and Alignment Workshop, Lausanne, 8-9th November 2006  Motivations  Step-by-step …  Current

LHCb Lausanne Workshop, 9th November. 2006 16/27

Comparisons - Long Tracks (2/6)

Very good Very good

AgreementAgreement

in positionsin positions

~1-2 ~1-2 mm… … looping overlooping over

Velo/TT/OT/… hits!Velo/TT/OT/… hits!

Page 17: Refitting Tracks from DST E. Rodrigues, NIKHEF LHCb Tracking and Alignment Workshop, Lausanne, 8-9th November 2006  Motivations  Step-by-step …  Current

LHCb Lausanne Workshop, 9th November. 2006 17/27

Comparisons - Long Tracks (3/6)

Very good Very good

agreementagreement

in momentumin momentum

Page 18: Refitting Tracks from DST E. Rodrigues, NIKHEF LHCb Tracking and Alignment Workshop, Lausanne, 8-9th November 2006  Motivations  Step-by-step …  Current

LHCb Lausanne Workshop, 9th November. 2006 18/27

Comparisons - Long Tracks (4/6)

Very good Very good

agreementagreement

in momentumin momentum

Page 19: Refitting Tracks from DST E. Rodrigues, NIKHEF LHCb Tracking and Alignment Workshop, Lausanne, 8-9th November 2006  Motivations  Step-by-step …  Current

LHCb Lausanne Workshop, 9th November. 2006 19/27

Comparisons - Long Tracks (5/6)

Page 20: Refitting Tracks from DST E. Rodrigues, NIKHEF LHCb Tracking and Alignment Workshop, Lausanne, 8-9th November 2006  Motivations  Step-by-step …  Current

LHCb Lausanne Workshop, 9th November. 2006 20/27

Comparisons - Long Tracks (6/6)

MomentumMomentum

resolutionsresolutions

as in Brunel!as in Brunel!

p / p ~ 4.5 per millep / p ~ 4.5 per mille

Page 21: Refitting Tracks from DST E. Rodrigues, NIKHEF LHCb Tracking and Alignment Workshop, Lausanne, 8-9th November 2006  Motivations  Step-by-step …  Current

LHCb Lausanne Workshop, 9th November. 2006 21/27

Comparisons - Long Tracks (6/6) -bis

Double GaussianDouble Gaussian

Core resolutionsCore resolutions

p / p ~ 4.2 per millep / p ~ 4.2 per mille

Page 22: Refitting Tracks from DST E. Rodrigues, NIKHEF LHCb Tracking and Alignment Workshop, Lausanne, 8-9th November 2006  Motivations  Step-by-step …  Current

LHCb Lausanne Workshop, 9th November. 2006 22/27

Comparisons - KShort Tracks (1/3)

Very good Very good

agreementagreement

in positionsin positions

Page 23: Refitting Tracks from DST E. Rodrigues, NIKHEF LHCb Tracking and Alignment Workshop, Lausanne, 8-9th November 2006  Motivations  Step-by-step …  Current

LHCb Lausanne Workshop, 9th November. 2006 23/27

Comparisons - KShort Tracks (2/3)

Page 24: Refitting Tracks from DST E. Rodrigues, NIKHEF LHCb Tracking and Alignment Workshop, Lausanne, 8-9th November 2006  Motivations  Step-by-step …  Current

LHCb Lausanne Workshop, 9th November. 2006 24/27

Comparisons - KShort Tracks (3/3)

Fair Fair

agreementagreement

in momentumin momentum

More fit iterations needed?More fit iterations needed?

Too many outilers?Too many outilers?

Page 25: Refitting Tracks from DST E. Rodrigues, NIKHEF LHCb Tracking and Alignment Workshop, Lausanne, 8-9th November 2006  Motivations  Step-by-step …  Current

LHCb Lausanne Workshop, 9th November. 2006 25/27

Comparisons - VeloTT Tracks (1/2)

Page 26: Refitting Tracks from DST E. Rodrigues, NIKHEF LHCb Tracking and Alignment Workshop, Lausanne, 8-9th November 2006  Motivations  Step-by-step …  Current

LHCb Lausanne Workshop, 9th November. 2006 26/27

Comparisons - VeloTT Tracks (2/2)

Page 27: Refitting Tracks from DST E. Rodrigues, NIKHEF LHCb Tracking and Alignment Workshop, Lausanne, 8-9th November 2006  Motivations  Step-by-step …  Current

LHCb Lausanne Workshop, 9th November. 2006 27/27

Outlook

First proof that we can refit tracks from DSTFirst proof that we can refit tracks from DST

Refitting is now a reality!Refitting is now a reality!

First tests are rather encouragingFirst tests are rather encouraging

Differences between “Brunel-fitted” and “DST- Differences between “Brunel-fitted” and “DST-

refitted” tracks are in general well withing errorsrefitted” tracks are in general well withing errors

momentum resolutions of refitted tracks very muchmomentum resolutions of refitted tracks very much

the same as in Brunelthe same as in Brunel

BUT one needs to understand:BUT one needs to understand:• Tails in the various distributionsTails in the various distributions

• Fit failures for tracks that had beenFit failures for tracks that had been

successfully fitted in Brunelsuccessfully fitted in Brunel

• Refitting of all track types in detailRefitting of all track types in detail