delphi-edm4hep
DELPHI SDST/FDST -> EDM4hep converter
Loading...
Searching...
No Matches
MainHybrid.h
Go to the documentation of this file.
1// MainHybrid domain — pass-2 hybrid cascade writer (the central
2// "particle + vertex" re-wire).
3//
4// Clones sDST_MAIN_Particles → fDST_MAIN_Particles with `tracks`
5// re-pointed at the fDST track collection (built by TeStateMerge).
6// Then cascades through every vertex collection that references
7// particles:
8//
9// sDST_PV_PrimaryVertex → fDST_PV_PrimaryVertex
10// sDST_PV_Vertices → fDST_PV_Vertices
11// sDST_V0_V0Candidates → fDST_V0_V0Candidates
12// sDST_PHC_PhotonConversions → fDST_PHC_PhotonConversions
13//
14// — each cloned vertex's addToParticles relation is re-pointed to the
15// matching fDST_MAIN_Particles entry.
16//
17// Cluster + ParticleID relations on the particles are intentionally
18// NOT re-wired here. The shower-hybrid writer rewrites clusters to
19// fDST_EMNC_Showers/HCNC_Showers; the PID-hybrid writer rewrites
20// particleIDs to fDST_HAID/MUID/ELID. They use the same identity-1:1
21// mapping (fDST_MAIN_Particles[i] ↔ sDST_MAIN_Particles[i]) so no
22// shared state through EventContext is required.
23//
24
25#pragma once
26
28
30
32public:
34 void emit() override;
35};
36
37} // namespace delphi_edm4hep::main_hybrid
CollectionWriter(podio::Frame &frame, EventContext &ctx, bank::Pass pass)
CollectionWriter(podio::Frame &frame, EventContext &ctx, bank::Pass pass)