delphi-edm4hep
DELPHI SDST/FDST -> EDM4hep converter
Loading...
Searching...
No Matches
delphi_edm4hep::tracking Namespace Reference

Classes

class  TrackingWriter
struct  Output

Enumerations

enum  DetectorMaskBit : std::int32_t {
  kDetPrimaryVertex = 1 << 1 , kDetVd = 1 << 3 , kDetId = 1 << 4 , kDetTpc = 1 << 5 ,
  kDetRib = 1 << 6 , kDetOd = 1 << 8 , kDetHpc = 1 << 9 , kDetHab = 1 << 13 ,
  kDetMub = 1 << 14 , kDetStic = 1 << 18 , kDetFca = 1 << 20 , kDetRif = 1 << 21 ,
  kDetHaf = 1 << 22 , kDetFcb = 1 << 25 , kDetEmf = 1 << 26 , kDetMuf = 1 << 30
}
enum  TrackStateUse : std::int32_t {
  kStateAtOther = edm4hep::TrackState::AtOther , kStateAtIp = edm4hep::TrackState::AtIP , kStateAtFirstHit = edm4hep::TrackState::AtFirstHit , kStateAtCalorimeter = edm4hep::TrackState::AtCalorimeter ,
  kStateAtVertex = edm4hep::TrackState::AtVertex
}
enum  SelectionFlagBit : std::uint32_t { kSelRejected = 0x00000001u , kSelIflvec = 0x80000000u }

Enumeration Type Documentation

◆ DetectorMaskBit

Bits of MAIN_Particles_DetectorMask, as masks. DELPHI numbers these bits from 1, so a documented "bit N" is 1 << (N - 1). Read the C way every cut lands one detector off and still returns plausible numbers.

Validated on 1994 data: over high-momentum barrel tracks kDetTpc is set on ~96% and kDetId on ~73%, so an ID fraction above the TPC fraction means the numbering is off by one. kDetOd appears only above theta ~42 deg and kDetFcb only below ~35 deg, which is those detectors' acceptance.

Collection
MAIN_Particles_DetectorMask
Enumerator
kDetPrimaryVertex 

bit 2, primary vertex used in the fit

kDetVd 

bit 4. VD or VFT, not VD alone (mammoth.car:13556); at LEP2 it is set on every VFT-reconstructed track, so a "has VD hits" cut written against it silently widens

kDetId 

bit 5

kDetTpc 

bit 6

kDetRib 

bit 7, barrel RICH

kDetOd 

bit 9

kDetHpc 

bit 10

kDetHab 

bit 14, barrel HCAL

kDetMub 

bit 15, barrel muon chambers

kDetStic 

bit 19

kDetFca 

bit 21

kDetRif 

bit 22, forward RICH

kDetHaf 

bit 23, forward HCAL

kDetFcb 

bit 26

kDetEmf 

bit 27

kDetMuf 

bit 31, forward muon chambers

Definition at line 38 of file Tracking.h.

◆ SelectionFlagBit

Bits of the MAIN_Particles selection flag (SKELANA's LVLOCK), as masks.

Bit 32 is the sign bit, so a track locked by IFLVEC reads as a large negative number: flag > 0 and a bare if (flag) both mislead. Test against these masks on the value cast to std::uint32_t. -1 is not a bit pattern at all but the converter's sentinel for a particle with no VECP entry.

Collection
VECP_Particles_SelectionFlag
Enumerator
kSelRejected 

bit 1; failed the track-selection cuts, which IFLSTR = 2 keeps and flags

kSelIflvec 

bit 32; locked by IFLVEC's class choice – ours is 22, "lock the charged outgoing"

Definition at line 91 of file Tracking.h.

◆ TrackStateUse

Which edm4hep::TrackState::location values appear on TRAC_Tracks, and what each is here. Values are taken from EDM4hep, not restated, so this cannot drift from the schema.

Collection
TRAC_Tracks
Enumerator
kStateAtOther 

PA.TRAX, every other surface: TOF(11), muon chambers (14, 17, 30)

kStateAtIp 

the perigee helix; exactly one per track

kStateAtFirstHit 

PA.TRAX, TANAGRA detector id 0: the track's own first measured point

kStateAtCalorimeter 

PA.TRAX calorimeter crossings: HPC(9), HAB(13), HAF(22), EMF(26)

kStateAtVertex 

AABTAG's impact parameter at AABTAG's own primary vertex; absent on tracks AABTAG skipped

Definition at line 65 of file Tracking.h.