Presentation is loading. Please wait.

Presentation is loading. Please wait.

LHCb Software Week, 26th April. 2006 1/23 Tracking in LHCb E. Rodrigues, NIKHEF LHCb Software Week A Status Report.

Similar presentations


Presentation on theme: "LHCb Software Week, 26th April. 2006 1/23 Tracking in LHCb E. Rodrigues, NIKHEF LHCb Software Week A Status Report."— Presentation transcript:

1 LHCb Software Week, 26th April. 2006 1/23 Tracking in LHCb E. Rodrigues, NIKHEF LHCb Software Week A Status Report

2 LHCb Software Week, 26th April. 2006 2/23 DC’06 Shopping list

3 LHCb Software Week, 26th April. 2006 3/23 Preparations for DC’06 (1/4) On the shopping list  Removal of all tracking code related to old event model  Introduction of extra necessary tools & algorithms  Introduction of LHCb namespaces  Move from CLHEP to MathCore & SMatrix  Adaptations to new detector elements  Adaptations to realistic geometries -> introduction of trajectories  Set-up of a new tracking sequence for Brunel … last but not least: test and debug all of this!

4 LHCb Software Week, 26th April. 2006 4/23 Preparations for DC’06 (2/4) “Technical” work  Removal from Brunel of all tracking code running with the old TEM  co-existence with our present TEM can be confusing  I still see such code (commented out) in Reco.opts … can this be removed, please?  Also BrunelMC.opts, BrunelCheck.opts, DstContent.opts, MCDstContent.opts  Anywhere else?  This required the introduction of new tools, algorithms and packages …

5 LHCb Software Week, 26th April. 2006 5/23 Preparations for DC’06 (3/4) Tr/TrackMCInterfaces Tr/TrackMCInterfaces  Collects all interfaces accessing MC information  Just introduced in February  Decouples MC-related interfaces from interfaces needed for real data reconstruction Tr/TrackUtils Tr/TrackUtils  Contains general tracking algorithms  Contains only the event clone killer for now Old algorithm replaced by “clone finder” tool + algorithm Old algorithm replaced by “clone finder” tool + algorithm  Will probably evolve, e.g.: Could be the place to add algorithm to prepare tracks for DST Could be the place to add algorithm to prepare tracks for DST E.g.: all but 1 state stored on the track by default -> need to “strip” tracks E.g.: all but 1 state stored on the track by default -> need to “strip” tracks Tr/TrackSys Tr/TrackSys  Defines the global set of tracking packages  Takes care of setting up the consistent set of tracking packages to use  Single place where the tracking sequence for Brunel can be set-up Note: there are also some tools introduced: e.g.: TrackCaloMatch, TrackCloneFinder (both in TrackTools) NEW Contact us if you need some tool/functionality/… better check than double the work …

6 LHCb Software Week, 26th April. 2006 6/23 Preparations for DC’06 (4/4) LHCb namespaces, small Gaudi changes  Went rather smoothly, easy Move from CLHEP to MathCore and SMatrix  Not quite so smooth  Tracking code required temporary hacks  now these are history  Tracking also provided a lot of feedback and requested new functionality  Note: some “features” are really hard to trace, cf. the discussion on A = A * B of last week … cf. the discussion on A = A * B of last week …  We should be careful! The packages are rather new and may not be doing quite what we think or would like them to be doing …  such “details” have required very many hours of debugging to be traced

7 LHCb Software Week, 26th April. 2006 7/23 Towards a Realistic Tracking

8 LHCb Software Week, 26th April. 2006 8/23 Introducing Trajectories (1/2) Motivations and Goal  Tracking has to deal with realistic (= non-ideal) geometries  Track fitting should be as blind as possible to sub-detector details  Introduce Trajectories à la BaBar to “solve everything” Needs  Trajectory-like event model classes  Connection tracking – (tracking) detector elements  detector shapes communicated to tracking via trajectories -> the tracking can then handly arbitrary shapes/implementations -> the tracking can then handly arbitrary shapes/implementations  Adaptation of all track fitting code to new detector elements, trajectories Note: see Edwin’s presentation @ the Lausanne tracking workshop for all technical details NEW

9 LHCb Software Week, 26th April. 2006 9/23 Trajectory classes for strips / wires – Trajectory base class & DifTraj template class – LineTraj, ParabolaTraj and CircleTraj Trajectory class for a State – StateTraj Tool to calculate the Point Of Closest Approach between two Trajectories – TrajPoca with ITrajPoca interface Projector tools based on Trajectories – TrajOTProjector, TrajSTProjector, TrajVeloRProjector and TrajVeloPhiProjector Subdetector people helped making the detector elements provide Trajectories Introducing Trajectories (2/2) Classes & tools developed NEW

10 LHCb Software Week, 26th April. 2006 10/23 Intermezzo: “Playing” in Python with the Tracking

11 LHCb Software Week, 26th April. 2006 11/23 Tracking in Python Dictionaries  All our XML-defined Event classes have the corresponding dictionaries built  Other event classes defined in.h &.cpp needed some extra “hand-made” files for producing the dictionaries Useful?  Enormously!  I’ve used the framework extensively for testing and debugging …  Do not hesitate to get into it …  A note on Tracking in Python is about to be released … A lot of effort has been put into getting all the necessary to use in Python the tracking classes and tools

12 LHCb Software Week, 26th April. 2006 12/23 Overview of the Tracking Packages

13 LHCb Software Week, 26th April. 2006 13/23 Tracking Packages Event ModelGeneral ToolsMiscellaneous Event/TrackEvent Kernel/LHCbKernel Pattern Recognition Tr/TrackInterfaces Tr/TrackExtrapolators Tr/TrackTools Tr/TrackMCInterfaces Tr/TrackMCTools Fitting Tr/TrackUtils Tr/TrackSys Tr/TrackPython MC Association Tr/TrackMatching Tr/TrackFitEvent Tr/TrackProjectors Tr/TrackFitter Tr/TrackAssociators Tr/TrackCheckers Tr/TrackIdealPR

14 LHCb Software Week, 26th April. 2006 14/23 TrackTools TrackUtils TrackEvent TrackFitEvent TrackInterfaces Packages Dependencies TrackMCInterfaces TrackProjectorsTrackFitter TrackIdealPRTrackMCTools TrackExtrapolators TrackMatching TrackAssociatorsTrackCheckers FITTING MC WORLD GENERAL TOOLS/ALGOS PR ALGO.

15 LHCb Software Week, 26th April. 2006 15/23 Status of the Tracking

16 LHCb Software Week, 26th April. 2006 16/23 General Status Testing & Debugging A lot of bugs found  Introduced when moving to new detector elements  Introduced when adapting to MathCore and SMatrix  Introduced when going into the “trajectories world” Surprisingly few, as a matter of fact! Surprisingly few, as a matter of fact! Most changes were improvements and additions Most changes were improvements and additions  Some nasty bugs were introduced by non-tracking people … When you edit tracking code, please take more than 15 seconds … When you edit tracking code, please take more than 15 seconds … … it may save the others hours of debugging … … it may save the others hours of debugging … Tracking Packages Event model and interfaces rather stable Event model and interfaces rather stable General tools and algorithms also stable and seem doing the right job General tools and algorithms also stable and seem doing the right job  Fitting part (TrackFitter, TrackProjectors) requires active testing and debugging TrackSys v2r0 contains full consistent list of TrackXxx packages

17 LHCb Software Week, 26th April. 2006 17/23 Track Fitting Status (1/2) On the good side … Fitting tracks obtained with a cheated pattern recognition  Success rate typically ~99.9% for long tracks with loose quality cuts  Some encouraging plots have been produced for the first time with our brand new DC’06 framework … see next slide  Still, quality plots shown there is more to it … to be continued … But Fitting reconstructed long tracks produced by PatForward  Success rate goes down to ~75% … why?  Too early to say: could be a bug in PatForward, as a few days ago … (crazy seed states)  In any case there is one difference between cheated and rec. long tracks: both are long tracks but the ones from PatForward contain no ambiguity info! Bottom line Is the issue of the OT ambiguities hitting us now badly?  An algorithm to determine ambiguities is on the shopping list...? The fitting code does not crash anymore but needs more testing

18 LHCb Software Week, 26th April. 2006 18/23 Track Fitting Status (2/2) First results on fitting with DC’06 software! All using the cheated pattern recognition

19 LHCb Software Week, 26th April. 2006 19/23 Next Steps Towards DC’06

20 LHCb Software Week, 26th April. 2006 20/23 Next Steps (1/4) Fitting in Brunel  The code does not seem to crash anymore  Could be included in Brunel, for experts  Do not expect amazing results right now with reconstructed long tracks Track Fitting Tests  Testing largely ongoing  Tricky since many possible sources of problems In any case the results are impressive given that « everything » has changed and the tracking is working with version v0r* of the trajectories framework!

21 LHCb Software Week, 26th April. 2006 21/23 Next Steps (2/4) Tracking sequence for Brunel Brunel v30r1 in LHCBDEV is rather incomplete  Will get quite some updates from the tracking in the next days... Seeding, Matching, Velo-TT and clone killing algorithms  To be included in next Brunel  Will use for the moment a cheated seeding Needed to start tuning the Matching – not touched/looked at/tuned for over a year … Needed to start tuning the Matching – not touched/looked at/tuned for over a year … Tracking options for Brunel  Trying to have one options file for the tracking Clear and simple Clear and simple Easy to check and change/adapt for dedicated studies Easy to check and change/adapt for dedicated studies  Reco.opts would simply become // Tracking reconstruction phase: pattern recognition + fitting #include "$TRACKSYSROOT/options/RecoTracking.opts" From TrackSys package

22 LHCb Software Week, 26th April. 2006 22/23 Next Steps (3/4) New Algorithms and Tools Tool to prepare/pack the tracks to be stored on DST  Clone killer algorithm provides “best” set of tracks for physics  These tracks still have too much info that is not to be stored on DST  Need a procedure to clean these tracks: all but first state, all measurements, etc. Track filters  Alignment developers have already raised the question of how to easily get e.g. a long track with only VELO / seed hits (LHCbIDs)  Seems like a “stripping” tool could be handy …  We have already some very simple track selector tool, but one could make a set of filter tools à la DaVinci (FilterCriterion family of tools) Tracking Monitoring  Some first thoughts thrown at the Lausanne workshop  Work will start when possible, likely during DC’06 …

23 LHCb Software Week, 26th April. 2006 23/23 Next Steps (4/4) Documentation  Understood that the TEM & related needs to be documented …  Note on Tracking in Python about to be released  Note on Track Event Model started to be written  Tracking-related webpages are available:  Wiki page https://twiki.cern.ch/twiki/bin/view/LHCb/LHCbTrackFitting  http://lhcb-reconstruction.web.cern.ch/lhcb-reconstruction/  Tracking experts are welcome to go and add information / doc / HowTo’s … to the track fitting wiki page …


Download ppt "LHCb Software Week, 26th April. 2006 1/23 Tracking in LHCb E. Rodrigues, NIKHEF LHCb Software Week A Status Report."

Similar presentations


Ads by Google