delphi-edm4hep
DELPHI SDST/FDST -> EDM4hep converter
Loading...
Searching...
No Matches
MatchProvenance.h
Go to the documentation of this file.
1// MatchProvenance domain — pass-2 only.
2//
3// Walks the fDST PA chain, extracts each charged PA's perigee, and
4// calls perigee_match::findMatch against sDST_TRAC_Tracks (read out
5// of frame_) to determine whether the same physical track exists in
6// both DSTs.
7//
8// Emits:
9// <tag>_MAIN_Particles_MatchProvenance UserDataCollection<int32>
10// parallel to sDST_MAIN_Particles (charged + neutral, in PA-walk
11// order from pass-1). Values per legacy commit fb62da1:
12// +1 charged PFO matched perigee with a fDST PA
13// 0 charged PFO with no fDST counterpart (postDST V0 daughter,
14// gamma-conversion daughter, or hadronic-secondary refit)
15// -1 neutral PFO (perigee match doesn't apply)
16//
17// Also populates ctx_.fdst_pa_to_sdst_track so downstream pass-2
18// writers (TofFdst, MtpcFdst, TeStateMerge) can find the matching
19// sDST track / particle for each fDST PA they process.
20
21#pragma once
22
24
26
28public:
30 void emit() override;
31};
32
33} // namespace delphi_edm4hep::matchprov
CollectionWriter(podio::Frame &frame, EventContext &ctx, bank::Pass pass)
CollectionWriter(podio::Frame &frame, EventContext &ctx, bank::Pass pass)