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
23
#include "
delphi_edm4hep/CollectionWriter.h
"
24
25
namespace
delphi_edm4hep::matchprov
{
26
27
class
MatchProvenanceWriter
:
public
CollectionWriter
{
28
public
:
29
using
CollectionWriter::CollectionWriter
;
30
void
emit
()
override
;
31
};
32
33
}
// namespace delphi_edm4hep::matchprov
CollectionWriter.h
delphi_edm4hep::CollectionWriter::CollectionWriter
CollectionWriter(podio::Frame &frame, EventContext &ctx, bank::Pass pass)
Definition
CollectionWriter.h:118
delphi_edm4hep::matchprov::MatchProvenanceWriter
Definition
MatchProvenance.h:27
delphi_edm4hep::matchprov::MatchProvenanceWriter::CollectionWriter
CollectionWriter(podio::Frame &frame, EventContext &ctx, bank::Pass pass)
Definition
CollectionWriter.h:118
delphi_edm4hep::matchprov::MatchProvenanceWriter::emit
void emit() override
Definition
MatchProvenance.cpp:56
delphi_edm4hep::matchprov
Definition
MatchProvenance.h:25
delphi_edm4hep
include
delphi_edm4hep
Tracking
MatchProvenance.h
Generated by
1.15.0