delphi-edm4hep
DELPHI SDST/FDST -> EDM4hep converter
Loading...
Searching...
No Matches
ParticleId.h
Go to the documentation of this file.
1// ParticleId domain: per-track PID + dE/dx + RICH from SKELANA commons.
2// ParticleIdWriter (pass-1) reads ctx_.tracking and emits:
3// <tag>_HAID_dEdx ParticleIDCollection (algoType=1)
4// <tag>_HAID_dEdx_RecDqdx RecDqdxCollection
5// <tag>_MUID_MuonID ParticleIDCollection (algoType=2)
6// <tag>_ELID_ElectronID ParticleIDCollection (algoType=3)
7// <tag>_HAID_HadronID ParticleIDCollection (algoType=4; 18 params)
8//
9// Pass-2 (TOF / MTPC-extended / TE FitQuality companion) will be a
10// separate writer class, added in step 2.
11
12#pragma once
13
15
16#include <cstddef>
17#include <cstdint>
18
20
21/// Slot layout of the `MUID_MuonID` `parameters` VectorMember. EDM4hep types it
22/// as a bare float vector, so slot meanings are convention: declared here,
23/// appended in this order by ParticleId.cpp.
24/// @collection{MUID_MuonID}
25enum MuonIdIndex : std::size_t {
26 kMuTag = 0, ///< `KMUID(1)` MUCAL2 tag; a bit mask, see #MuonIdTag
27 kMuChi2, ///< `QMUID(2)` global chi2 of the very-loose refit
28 kMuHits, ///< `KMUID(3)` hit pattern with inefficiencies
30};
31
32/// Bits of #kMuTag, as masks. DELPHI numbers these bits from 1.
33///
34/// The four chamber tags nest: tight implies standard implies loose implies
35/// very loose. #kMuHcal is independent and occurs alone, so `tag >= 2` is not
36/// "loose or better" -- it also admits an HCAL-only tag carrying no
37/// muon-chamber requirement. Set by `MUFLAG`'s `RTAG` on the chamber refit.
38/// @bits{MUID_MuonID,kMuTag}
39enum MuonIdTag : std::int32_t {
40 kMuVeryLoose = 1 << 0, ///< bit 1; chi2 cuts only
41 kMuLoose = 1 << 1, ///< bit 2; no hit-pattern requirement
42 kMuStandard = 1 << 2, ///< bit 3; loosest tag requiring a hit outside the iron
43 kMuTight = 1 << 3, ///< bit 4; tightest chi2 cuts, a different refit
44 kMuHcal = 1 << 4 ///< HCAL, no muon-chamber requirement
45};
46
48public:
50 void emit() override;
51};
52
53} // namespace delphi_edm4hep::particleid
CollectionWriter(podio::Frame &frame, EventContext &ctx, bank::Pass pass)
CollectionWriter(podio::Frame &frame, EventContext &ctx, bank::Pass pass)
@ kMuHcal
HCAL, no muon-chamber requirement.
Definition ParticleId.h:44
@ kMuVeryLoose
bit 1; chi2 cuts only
Definition ParticleId.h:40
@ kMuTight
bit 4; tightest chi2 cuts, a different refit
Definition ParticleId.h:43
@ kMuStandard
bit 3; loosest tag requiring a hit outside the iron
Definition ParticleId.h:42
@ kMuLoose
bit 2; no hit-pattern requirement
Definition ParticleId.h:41
@ kMuHits
KMUID(3) hit pattern with inefficiencies
Definition ParticleId.h:28
@ kMuTag
KMUID(1) MUCAL2 tag; a bit mask, see MuonIdTag
Definition ParticleId.h:26
@ kMuChi2
QMUID(2) global chi2 of the very-loose refit
Definition ParticleId.h:27