delphi-edm4hep
DELPHI SDST/FDST -> EDM4hep converter
Loading...
Searching...
No Matches
TrackElements.h
Go to the documentation of this file.
1// TrackElements domain — runs in both passes, before the track writers.
2//
3// Emits the PA track-element modules (te_bank::decodeModule) as:
4//
5// <prefix>_TE_Segments Track, one per track element
6// <prefix>_TE_Segments_Length UserData<float>, parallel, mm
7// <prefix>_TEVF_TrackElementPlane TrackerHitPlane, one per VFT element
8// <prefix>_TEVF_TrackElementPlane_Length UserData<float>, parallel, mm
9//
10// A segment is a Track carrying one TrackState at AtOther: referencePoint is
11// the measured point, phi the track direction there, and chi2/ndf the
12// module's own fit quality. Components the module did not measure are NaN,
13// never zero — zero is a legal measured value. The VFT measures two
14// coordinates and no direction, so it is a plane hit rather than a track.
15//
16// `type` identifies the source module and the reconstruction stage as
17// label*10 + stage:
18//
19// 12 TEID inner detector stage 1 jet chamber, 2 trigger layer
20// 13 TETP TPC
21// 14 TEOD outer detector
22// 15 TEFA forward chamber A
23// 16 TEFB forward chamber B
24// 21 TERF forward RICH
25// 41 TEST straw tubes
26// 42 TEVF very forward tracker
27//
28// so 121 is an inner-detector element from the jet chamber and 131 a TPC
29// element. The stage digit is 0 on files written before PXDST 2.87. Which
30// TrackState components are measured varies with the module, so `type` also
31// tells a reader which ones to expect; the README tabulates that.
32//
33// The links live on the mother track: the track writers read
34// EventContext::track_elements and call addToTracks / addToTrackerHits, so a
35// reader walks TRAC_Tracks -> tracks / trackerHits to reach these.
36
37#pragma once
38
40
42
44public:
46 void emit() override;
47};
48
49} // namespace delphi_edm4hep::track_elements
CollectionWriter(podio::Frame &frame, EventContext &ctx, bank::Pass pass)
CollectionWriter(podio::Frame &frame, EventContext &ctx, bank::Pass pass)