delphi-edm4hep
DELPHI SDST/FDST -> EDM4hep converter
Loading...
Searching...
No Matches
AabtagTrackState.h
Go to the documentation of this file.
1// AabtagTrackState.h — internal (not exported).
2//
3// AABTAG measures an impact parameter for the subset of tracks it can use,
4// against its own primary vertex. That belongs on the track, so it is carried
5// as a TrackState at AtVertex. Building it lives here because both writers
6// that own a track need it: TrackingWriter in pass 1 and TrackHybridWriter in
7// pass 2, where the fullDST tracks are clones and would otherwise lose it.
8
9#pragma once
10
11#include <edm4hep/TrackState.h>
12
13#include <unordered_map>
14
15namespace delphi_edm4hep::aabtag {
16
17// PA address -> AABTAG track index (1..NTRK). Empty when AABTAG produced
18// nothing usable for this event.
19std::unordered_map<int, int> lpaToTrack();
20
21// The state AABTAG measured for its track `i`, whose charge is `charge`
22// (+1/-1; AABTAG's impact-parameter sign depends on it).
23edm4hep::TrackState vertexState(int i, int charge);
24
25} // namespace delphi_edm4hep::aabtag
std::unordered_map< int, int > lpaToTrack()
edm4hep::TrackState vertexState(int i, int charge)