ATLAS Offline Software
TRT_DetElementsRoadTool_xk
Author
Igor..nosp@m.Gavr.nosp@m.ilenk.nosp@m.o@ce.nosp@m.rn.ch

Introduction

This tool is concrete implementation for ITRT_DetElementsRoadMaker and is devoted for list<const InDetDD::TRT_BaseElement*>&) or list<std::pair<const InDetDD::TRT_BaseElement*,const Trk::TrackParameters*> >&) production.

During initialization step this tool produce a map all TRT detetector elements ordered in set logical layers sorted in radius order for barrel and Z coordinate order for endcap. In each layer all detector elements are sorted in azimuthal angle order.

The input information for this tool is track parameters. Using globalPositions of IPropagator tool algorithm get list global positions of the posible trajectory. This list is input for fast comparison trajectory with map of detector elements. Algorith iterate through this list using straight line extrapolation between neighbouring points and compare position of the trajectory with position detector elements in the map. If trajectory can cross some detector element with some tolerance algorithm save this element to the list. All detector elments in the list sorted in propagation order and first detector element is closest to beam axis.

This algorithm uses IMagneticFieldTool and IPropagator tools.