delphi-edm4hep
DELPHI SDST/FDST -> EDM4hep converter
Loading...
Searching...
No Matches
Vertex.h
Go to the documentation of this file.
1
// Vertex domain: LDTOP-1 chain + V0ID (PSCRV0) + photon conversions
2
// (PSCPHC) + beam spot (PSCBSP). VertexWriter reads ctx_.tracking
3
// for the V0 / PhotonConv -> Particle relations.
4
5
#pragma once
6
7
#include "
delphi_edm4hep/CollectionWriter.h
"
8
9
#include <cstdint>
10
11
namespace
delphi_edm4hep::vertex
{
12
13
/// Whether `PV_Tracks_d0PV` / `_z0PV` hold a measurement for this track.
14
///
15
/// Those two are computed here from the track's `AtIP` perigee and the primary
16
/// vertex, because SKELANA's `QTRAC(38,39)` are unfilled on real data. Where
17
/// that is not possible both read `-999`, which is a sentinel and not a
18
/// position; this flag is the reliable test.
19
///
20
/// @collection{PV_Tracks_ImpactFlag}
21
enum
ImpactFlag
: std::int32_t {
22
kImpactMissing
= 0,
///< no primary vertex, or the track has no AtIP state:
23
///< d0PV and z0PV are -999
24
kImpactValid
= 1
///< d0PV and z0PV are measured, in mm, LCIO sign
25
};
26
27
class
VertexWriter
:
public
CollectionWriter
{
28
public
:
29
using
CollectionWriter::CollectionWriter
;
30
void
emit
()
override
;
31
};
32
33
}
// namespace delphi_edm4hep::vertex
CollectionWriter.h
delphi_edm4hep::CollectionWriter::CollectionWriter
CollectionWriter(podio::Frame &frame, EventContext &ctx, bank::Pass pass)
Definition
CollectionWriter.h:118
delphi_edm4hep::vertex::VertexWriter
Definition
Vertex.h:27
delphi_edm4hep::vertex::VertexWriter::CollectionWriter
CollectionWriter(podio::Frame &frame, EventContext &ctx, bank::Pass pass)
Definition
CollectionWriter.h:118
delphi_edm4hep::vertex::VertexWriter::emit
void emit() override
Definition
Vertex.cpp:130
delphi_edm4hep::vertex
Definition
Vertex.h:11
delphi_edm4hep::vertex::ImpactFlag
ImpactFlag
Definition
Vertex.h:21
delphi_edm4hep::vertex::kImpactValid
@ kImpactValid
d0PV and z0PV are measured, in mm, LCIO sign
Definition
Vertex.h:24
delphi_edm4hep::vertex::kImpactMissing
@ kImpactMissing
Definition
Vertex.h:22
delphi_edm4hep
include
delphi_edm4hep
Vertex
Vertex.h
Generated by
1.15.0