delphi-edm4hep
DELPHI SDST/FDST -> EDM4hep converter
Loading...
Searching...
No Matches
AabtagCommons.h
Go to the documentation of this file.
1// AabtagCommons.h — internal header (not exported).
2//
3// C++ views onto the AABTAG Fortran COMMON blocks. These are NOT part of
4// delphi-analysis/include/skelana/* (which only wraps the SKELANA PSC*
5// commons), so they are declared here.
6//
7// AABTAG is DELPHI's b-tagging package. SKELANA drives it from PSFBTG when
8// IFLBTG > 0 (see skelana.car): on a fullDST *any* IFLBTG > 0 recalculates;
9// on a shortDST only IFLBTG == 2 does, while IFLBTG == 1 reads the stored
10// BTAG bank via PSHBTG and leaves the commons below untouched. Read them
11// only after a PSFBTG-producing configuration.
12//
13// LAYOUT IS LOAD-BEARING. Fortran COMMON has no padding and members are
14// laid out in declaration order; the static_asserts at the bottom pin the
15// total size of each struct against the size the shipped archives report
16// (`nm` on libbsaurusxx.a: aamain_ = 0xb548 = 46408, aamnvx_ = 0xcb4 =
17// 3252). If a future DELPHI release changes a dimension, those asserts
18// fire at compile time instead of silently reading garbage.
19//
20// Fortran is column-major: PAR(5,100) is indexed par[j-1][i-1] from
21// PAR(i,j). The accessors below take 1-based Fortran indices to match the
22// skelana/*.hpp idiom used everywhere else in this library.
23
24#pragma once
25
26#include <cstddef>
27#include <cstdint>
28
30
31// Hard cap baked into the AABTAG commons. NTRK saturates at this value, so
32// reaching it means additional eligible tracks may have been truncated.
33inline constexpr int kMaxTracks = 100;
34
35extern "C" {
36
37// COMMON /AAMAIN/ — per-track track/VD/probability arrays.
38// NTRK number of tracks AABTAG considered
39// XGOOD number of "good" tracks
40// IADTR ZEBRA L-address of each track's PA bank (maps back to our PA walk)
41// ISRT 0 = track NOT used for b-tagging, > 0 = used
42// TRPR per-track probability, r-phi <- the jet-probability ingredient
43// TRPRZ per-track probability, z
44// NVDP / NVDPZ VD hits, r-phi / z
45// NLAY / NLAYZ VD layers with hits, r-phi / z
46// CHI2VD chi^2 of the VD hits associated to the track
47// CHI2TO track chi^2
49 std::int32_t ntrk;
50 float xgood;
51 std::int32_t iadtr [kMaxTracks];
52 std::int32_t ist [kMaxTracks];
53 std::int32_t nvdp [kMaxTracks];
55 std::int32_t isrt [kMaxTracks];
56 float par [kMaxTracks][5];
57 float wgt [kMaxTracks][15];
58 double track [kMaxTracks][5];
60 std::int32_t laypat[kMaxTracks];
61 std::int32_t nlay [kMaxTracks];
64 std::int32_t ivdhit[kMaxTracks][6];
65 std::int32_t nvdpz [kMaxTracks];
66 std::int32_t laypz [kMaxTracks];
67 std::int32_t nlayz [kMaxTracks];
68 std::int32_t ivdhz [kMaxTracks][6];
69 double errtk [kMaxTracks][15];
70 double errp [kMaxTracks][15];
72};
74
75// COMMON /AAMNVX/ — AABTAG's primary vertex and the per-track impact
76// parameters measured with respect to it.
77// POSVX / COVVX fitted PV position (cm) and covariance (cm^2), the
78// values SKELANA copies into QVTX(...,1) when IFLPVT==1
79// NATTVX/NDOFVX tracks attached to the vertex / d.o.f. of the fit
80// PARIMP / SIGIMP signed r-phi impact parameter wrt POSVX and its error
81// EZED / SIGZED z impact parameter at closest approach and its error
82// CHI2TR per-track contribution to the vertex chi^2
83// INMVX Fortran LOGICAL(4): track attached to the main vertex
85 std::int32_t ntrvx;
86 float posvx[3];
87 float covvx[6];
88 float chi2vx;
89 std::int32_t nattvx;
90 std::int32_t ndofvx;
96 std::int32_t inmvx [kMaxTracks]; // Fortran LOGICAL*4
99};
100extern AamnvxCommon aamnvx_;
101
102// COMMON /AAFLAG/ — AABTAG steering and per-event status. Most members are
103// Fortran LOGICAL*4; IBAD (the fifth slot) and IFBFLA are INTEGER*4.
104// IBAD=0 means the tag/PV processing succeeded; 1 is a general processing
105// failure (for example beamspot/thrust/calibration), and 2 is a vertex-fit
106// failure. On failure some AAMNVX arrays can retain stale pre-fit values.
107// Moreover, PSFBTG does not call AABTGS at all when IERRBS != 0, so IBAD then
108// remains a snapshot from an earlier event. Never use it as a current-event
109// validity bit without the separate invocation state (AabtagStatus.h).
111 std::int32_t ifclbr;
112 std::int32_t iftcor;
113 std::int32_t if91;
114 std::int32_t ifk0ls;
115 std::int32_t ibad;
116 std::int32_t ifold;
117 std::int32_t ifrfix;
118 std::int32_t ifk0st;
119 std::int32_t ifjets;
120 std::int32_t ifstcm;
121 std::int32_t ifbcon;
122 std::int32_t ifbfla;
123 std::int32_t ifbcvx;
124 std::int32_t ifspot;
125};
126extern AaflagCommon aaflag_;
127
128} // extern "C"
129
130// Sizes reported by the shipped archives. A mismatch means the release's
131// common layout no longer matches this header — fail the build, loudly.
132static_assert(sizeof(AamainCommon) == 46408,
133 "AAMAIN layout mismatch vs the DELPHI release (expected 0xb548)");
134static_assert(sizeof(AamnvxCommon) == 3252,
135 "AAMNVX layout mismatch vs the DELPHI release (expected 0xcb4)");
136static_assert(sizeof(AaflagCommon) == 56,
137 "AAFLAG layout mismatch vs the DELPHI release (expected 0x38)");
138
139// ---- Commons behind the secondary-vertex search and the combined tag ------
140//
141// AABTGS -> AASIGN -> AAFSEC runs DELPHI's secondary-vertex search on every
142// event (per jet, pair seeds with chi2 < 4, grown with Delta chi2 < 5, L/sigma
143// > 4, L < 2.5 cm) and keeps the result in AASCND; AASIGN then uses it to
144// re-sign impact parameters. The combined tag of DELPHI 97-094 (AACMBT ->
145// AACMSV / AACMNS, per jet; AACMZ0 for the event) reads AASCND, AAJESV and
146// AAJETS and writes AACTVR / AACTRS. None of this reaches a DST bank; it is
147// read here straight from the commons after PSFBTG.
148//
149// Sizes below are `nm -S` on libdstanaxx.a (AABTAG v7.14/02). libkalxx.a
150// carries an older AASCND (0x3b64, no IF3DSV); the linker keeps the largest
151// definition, which is the v7.14 one the accessors assume.
152
153inline constexpr int kMaxJets = 10; // NJET cap in AAJETS / NSVJMX
154inline constexpr int kMaxHypo = 20; // secondary-vertex hypotheses
155inline constexpr int kMaxSvTracks = 50; // tracks per hypothesis
156inline constexpr int kNTagVars = 6; // NTVMX, discriminating variables
157inline constexpr int kMaxRapTracks= 20; // INSVMX, rapidity tracks per jet
158
159extern "C" {
160
161// COMMON /AAJETS/ — AABTAG's own jets (LUCLUS in JADE mode, ymin = 0.01, run
162// inside AATHRS) and the per-track jet/hemisphere assignment.
163// PTHR thrust direction (4-vector as LUND returns it)
164// NJET number of jets (<= 10)
165// PJET jet 4-momenta (px, py, pz, E)
166// IJET jet number of each track; ITHR its thrust hemisphere (1/2)
167// PHIV signed distance ALONG THE JET AXIS, in cm, from the primary vertex
168// to the track's point of closest approach to that axis (POINTF's
169// `al`, reached through AASGNT / AADCAJ / AADIST). Its SIGN is the
170// sign of the impact parameter, which is all the DELPHI header
171// "sign of impact parameter" ever meant. Where AASGNT abandons the
172// calculation -- no VD z-hits, a bad primary-vertex z-covariance, or
173// AADCAJ's bail-out on a null jet momentum -- it degrades to a bare
174// +-1 and DISTJ / ERRTJ carry placeholders.
175// ILUND index of the track in the JETSET record LUTHRU built when it
176// computed THRVAL / OBLVAL. The value indexes a record this converter
177// does not ship, so only ILUND != 0 is meaningful: it says the track
178// entered the thrust and oblateness calculation.
179// THRVAL / OBLVAL thrust and oblateness
180// DISTJ / ERRTJ 3-D track-jet distance and its error (cm)
181// RPDT track rapidity with respect to its jet
183 float pthr[4];
184 std::int32_t njet;
185 float pjet[kMaxJets][4];
187 std::int32_t ijet [kMaxTracks];
189 std::int32_t ilund[kMaxTracks];
190 float thrval;
191 float oblval;
192 std::int32_t ithr [kMaxTracks];
196};
197extern AajetsCommon aajets_;
198
199// COMMON /AASCND/ — the secondary-vertex hypotheses AAFSEC found.
200// NHYPO number of hypotheses (<= 20), accepted or rejected
201// ITSEC >= 0 accepted; < 0 rejected, the value says why (-2 no
202// significant track, -4 track probability, -5 chi2sv, -8 pt, ...)
203// VSEC / SSEC position (cm) and covariance (cm^2, xx xy yy xz yz zz)
204// NSEC / ISEC tracks in the hypothesis, as signed AABTAG track indices
205// (negative: track entered the fit in R-phi only)
206// PSEC 4-momentum of those tracks; PRAP the same for the tracks added by
207// the rapidity criterion (NRAP / IRAP / PTRRAP)
208// TPHSEC / VTPHS polar/azimuthal angle of the PV->SV direction and its
209// covariance
210// PRBSEC track probability of the vertex tracks; NSVRT tracks that fitted
211// CHI2SV chi2 of the SV impact parameter with respect to the PV (2 d.o.f.
212// in 3-D; the R-phi-only value is scaled by 2 to be comparable).
213// This is a displacement significance, not the vertex fit: AAFSEC
214// fits the vertex (ccFVT3 / ccFV23) but its `chi2sv(nhypo) = chi2vs`
215// is commented out, so the fit's chi2 is not kept in any common
216// CSEC cosine of the angle between the momentum and the PV->SV direction,
217// never filled: its assignment in AAFSEC is commented out too, so
218// it stays 0
219// DCASEC (d_rphi, d_z, var_rphi, cov_rphi_z, var_z) of the SV w.r.t. the PV
220// (AADCAN, with POSVX); d_z is PV_z minus the SV line's z, so it
221// has the opposite sign to an EDM4hep Z0 (see Btag.cpp)
222// INSV per track: index of the hypothesis that uses it (+100 flags)
223// JETSV jet of the hypothesis; IF3DSV 1 if the fit was 3-D
225 std::int32_t nhypo;
226 std::int32_t itsec [kMaxHypo];
227 float vsec [kMaxHypo][3];
228 float ssec [kMaxHypo][6];
229 std::int32_t nsec [kMaxHypo];
230 std::int32_t isec [kMaxHypo][kMaxSvTracks];
231 float psec [kMaxHypo][4];
232 float csec [kMaxHypo];
233 float tphsec[kMaxHypo][2];
234 float vtphs [kMaxHypo][3];
235 std::int32_t nrap [kMaxHypo];
236 std::int32_t irap [kMaxHypo][kMaxSvTracks];
237 float prap [kMaxHypo][4];
239 std::int32_t nsvrt [kMaxHypo];
241 float dcasec[kMaxHypo][5];
243 std::int32_t insv [kMaxTracks];
244 std::int32_t jetsv [kMaxHypo];
245 std::int32_t if3dsv[kMaxHypo];
246};
247extern AascndCommon aascnd_;
248
249// COMMON /AAJESV/ — jets redefined by the secondary vertices (AASIGN).
250// NJSEC / IJSEC jets with an SV, encoded jet + 100 * hypothesis
251// IJSV per-track jet number after the redefinition
252// PJSV per-jet direction after the redefinition (PV->SV where an SV
253// exists), indexed by jet number
255 std::int32_t njsec;
256 std::int32_t ijsec[kMaxJets];
257 std::int32_t ijsv [kMaxTracks];
258 float pjsv [kMaxTracks][4];
259};
260extern AajesvCommon aajesv_;
261
262// COMMON /AACTVR/ — combined-tag discriminating variables per jet
263// (DELPHI 97-094). Indexed by AABTAG jet number.
264// TAGV(1..6,j) 1: -log10 P_jet+, 2: SV mass (GeV), 3: charged energy
265// fraction, 4: log10 p_t of the SV (GeV), 5: lepton p_t
266// (-1 none), 6: unused
267// RATVQ / RATVC per-variable probability ratios uds/b and c/b
268// NTRS / INVTS / TGVT tracks entering the rapidity variable, their
269// AABTAG index and rapidity; RTTVQI / RTTVCI their ratios;
270// RTTVQ / RTTVC the products
271// RATCQ / RATCC the jet's combined ratios (input to AACMZ0)
287extern AactvrCommon aactvr_;
288
289// COMMON /AACTRS/ — combined-tag results.
290// JTAG(j) jet category: 1 has an SV, 2 no SV but >= 2 significant
291// tracks, 3 lifetime only, 4 lifetime only with no track in the
292// rapidity variable (AACMNS sets it when NTRS = 0), 0 not tagged.
293// AACMZ0 weights 4 as 3, and counts every JTAG > 0 as tagged
294// XEFFJ(j) X_jet = -log10 y (prefilled -5 when not computed)
295// XEFFEV X_ev from AACMZ0 (sum of the two largest X_jet)
297 std::int32_t jtag [kMaxJets];
299 float xeffev;
300};
301extern AactrsCommon aactrs_;
302
303// COMMON /AACTFL/ — which discriminating variables the combined tag uses.
304// AADATA sets all seven to 1.
307};
308extern AactflCommon aactfl_;
309
310// Combined-tag entry points. No arguments; they read and write the commons
311// above and must run after AABTGS on a valid event.
312void aacmbt_(); // per-jet tag -> AACTRS / AACTVR
313void aacmz0_(); // event tag (Z0 topology) -> XEFFEV
314
315// CERNLIB RNDM seed access (kernlib). On simulation AABTAG smears the impact
316// parameters with RNDM (AAPS9x / AAP9xZ, the "IP fixing") and AALINT, called
317// by the combined tag, draws from the same stream to emulate lepton-ID
318// inefficiency. Bracketing the combined tag with these keeps the smearing of
319// the following event, and therefore the lifetime tag, bit-identical to a
320// converter that never called it.
321//
322// The array is two elements and the seed it holds is not ours to read. Two
323// different RDMOUT/RDMIN pairs exist in the DELPHI libraries under the same
324// symbol name, and they disagree about the argument:
325// libdstanaxx.a saves the state inside SXRNU (slot 3, via SXRAST/SXRIN)
326// and never touches the argument at all -- this is the one
327// we link, so `seed` stays exactly as initialised here;
328// libddappxx.a calls RANECQ and writes TWO integers into the array.
329// Only libdstanaxx.a is on our link line today (libddappxx.a is not in the
330// link group, though it sits in the same directory), but a two-element array
331// is correct under either routine, while a single 32-bit variable would let
332// the ddapp version write four bytes past it.
333void rdmout_(std::int32_t seed[2]);
334void rdmin_ (std::int32_t seed[2]);
335
336} // extern "C"
337
338static_assert(sizeof(AajetsCommon) == 3028,
339 "AAJETS layout mismatch vs the DELPHI release (expected 0xbd4)");
340static_assert(sizeof(AascndCommon) == 15284,
341 "AASCND layout mismatch vs the DELPHI release (expected 0x3bb4)");
342static_assert(sizeof(AajesvCommon) == 2044,
343 "AAJESV layout mismatch vs the DELPHI release (expected 0x7fc)");
344static_assert(sizeof(AactvrCommon) == 4156,
345 "AACTVR layout mismatch vs the DELPHI release (expected 0x103c)");
346static_assert(sizeof(AactrsCommon) == 84,
347 "AACTRS layout mismatch vs the DELPHI release (expected 0x54)");
348static_assert(sizeof(AactflCommon) == 28,
349 "AACTFL layout mismatch vs the DELPHI release (expected 0x1c)");
350
351// ---- 1-based accessors, matching the skelana/*.hpp convention ----------
352
353inline std::int32_t& NTRK() { return aamain_.ntrk; }
354inline float& XGOOD() { return aamain_.xgood; }
355inline std::int32_t& IADTR (int i) { return aamain_.iadtr [i - 1]; }
356inline std::int32_t& ISRT (int i) { return aamain_.isrt [i - 1]; }
357inline float& TRPR (int i) { return aamain_.trpr [i - 1]; }
358inline float& TRPRZ (int i) { return aamain_.trprz [i - 1]; }
359inline std::int32_t& NVDP (int i) { return aamain_.nvdp [i - 1]; }
360inline std::int32_t& NVDPZ (int i) { return aamain_.nvdpz [i - 1]; }
361inline std::int32_t& NLAY (int i) { return aamain_.nlay [i - 1]; }
362inline std::int32_t& NLAYZ (int i) { return aamain_.nlayz [i - 1]; }
363inline float& CHI2VD(int i) { return aamain_.chi2vd[i - 1]; }
364inline float& CHI2TO(int i) { return aamain_.chi2to[i - 1]; }
365inline float& PMOM (int i) { return aamain_.pmom [i - 1]; }
366
367inline std::int32_t& NTRVX() { return aamnvx_.ntrvx; }
368inline float& POSVX (int i) { return aamnvx_.posvx[i - 1]; }
369inline float& COVVX (int i) { return aamnvx_.covvx[i - 1]; }
370inline float& CHI2VX() { return aamnvx_.chi2vx; }
371inline std::int32_t& NATTVX() { return aamnvx_.nattvx; }
372inline std::int32_t& NDOFVX() { return aamnvx_.ndofvx; }
373inline float& CHI2TR(int i) { return aamnvx_.chi2tr[i - 1]; }
374inline float& PARIMP(int i) { return aamnvx_.parimp[i - 1]; }
375inline float& SIGIMP(int i) { return aamnvx_.sigimp[i - 1]; }
376inline float& EZED (int i) { return aamnvx_.ezed [i - 1]; }
377inline float& SIGZED(int i) { return aamnvx_.sigzed[i - 1]; }
378inline std::int32_t& INMVX (int i) { return aamnvx_.inmvx [i - 1]; }
379inline std::int32_t& IBAD() { return aaflag_.ibad; }
380
381inline std::int32_t& IST (int i) { return aamain_.ist [i - 1]; }
382
383// AAJETS
384inline float& PTHR (int i) { return aajets_.pthr [i - 1]; }
385inline std::int32_t& NJET () { return aajets_.njet; }
386inline float& PJET (int i, int j){ return aajets_.pjet [j - 1][i - 1]; }
387inline std::int32_t& IJET (int i) { return aajets_.ijet [i - 1]; }
388inline float& PHIV (int i) { return aajets_.phiv [i - 1]; }
389inline std::int32_t& ILUND (int i) { return aajets_.ilund [i - 1]; }
390inline float& THRVAL() { return aajets_.thrval; }
391inline float& OBLVAL() { return aajets_.oblval; }
392inline std::int32_t& ITHR (int i) { return aajets_.ithr [i - 1]; }
393inline float& DISTJ (int i) { return aajets_.distj [i - 1]; }
394inline float& ERRTJ (int i) { return aajets_.errtj [i - 1]; }
395inline float& RPDT (int i) { return aajets_.rpdt [i - 1]; }
396
397// AASCND
398inline std::int32_t& NHYPO () { return aascnd_.nhypo; }
399inline std::int32_t& ITSEC (int h) { return aascnd_.itsec [h - 1]; }
400inline float& VSEC (int i, int h){ return aascnd_.vsec [h - 1][i - 1]; }
401inline float& SSEC (int i, int h){ return aascnd_.ssec [h - 1][i - 1]; }
402inline std::int32_t& NSEC (int h) { return aascnd_.nsec [h - 1]; }
403inline std::int32_t& ISEC (int k, int h){ return aascnd_.isec [h - 1][k - 1]; }
404inline float& PSEC (int i, int h){ return aascnd_.psec [h - 1][i - 1]; }
405inline float& CSEC (int h) { return aascnd_.csec [h - 1]; }
406inline float& TPHSEC(int i, int h){ return aascnd_.tphsec[h - 1][i - 1]; }
407inline float& VTPHS (int i, int h){ return aascnd_.vtphs [h - 1][i - 1]; }
408inline std::int32_t& NRAP (int h) { return aascnd_.nrap [h - 1]; }
409inline std::int32_t& IRAP (int k, int h){ return aascnd_.irap [h - 1][k - 1]; }
410inline float& PRAP (int i, int h){ return aascnd_.prap [h - 1][i - 1]; }
411inline float& PRBSEC(int h) { return aascnd_.prbsec[h - 1]; }
412inline std::int32_t& NSVRT (int h) { return aascnd_.nsvrt [h - 1]; }
413inline float& CHI2SV(int h) { return aascnd_.chi2sv[h - 1]; }
414inline float& DCASEC(int i, int h){ return aascnd_.dcasec[h - 1][i - 1]; }
415inline std::int32_t& INSV (int i) { return aascnd_.insv [i - 1]; }
416inline std::int32_t& JETSV (int h) { return aascnd_.jetsv [h - 1]; }
417inline std::int32_t& IF3DSV(int h) { return aascnd_.if3dsv[h - 1]; }
418
419// AAJESV
420inline std::int32_t& NJSEC () { return aajesv_.njsec; }
421inline std::int32_t& IJSEC (int j) { return aajesv_.ijsec [j - 1]; }
422inline std::int32_t& IJSV (int i) { return aajesv_.ijsv [i - 1]; }
423inline float& PJSV (int i, int j){ return aajesv_.pjsv [j - 1][i - 1]; }
424
425// AACTVR / AACTRS
426inline float& TAGV (int i, int j){ return aactvr_.tagv [j - 1][i - 1]; }
427inline float& RATVQ (int i, int j){ return aactvr_.ratvq [j - 1][i - 1]; }
428inline float& RATVC (int i, int j){ return aactvr_.ratvc [j - 1][i - 1]; }
429inline std::int32_t& NTRS (int j) { return aactvr_.ntrs [j - 1][0]; }
430inline std::int32_t& INVTS (int k, int j){ return aactvr_.invts [j - 1][0][k - 1]; }
431inline float& TGVT (int k, int j){ return aactvr_.tgvt [j - 1][0][k - 1]; }
432inline float& RTTVQI(int k, int j){ return aactvr_.rttvqi[j - 1][0][k - 1]; }
433inline float& RTTVCI(int k, int j){ return aactvr_.rttvci[j - 1][0][k - 1]; }
434inline float& RTTVQ (int j) { return aactvr_.rttvq [j - 1][0]; }
435inline float& RTTVC (int j) { return aactvr_.rttvc [j - 1][0]; }
436inline float& RATCQ (int j) { return aactvr_.ratcq [j - 1]; }
437inline float& RATCC (int j) { return aactvr_.ratcc [j - 1]; }
438inline std::int32_t& JTAG (int j) { return aactrs_.jtag [j - 1]; }
439inline float& XEFFJ (int j) { return aactrs_.xeffj [j - 1]; }
440inline float& XEFFEV() { return aactrs_.xeffev; }
441
442} // namespace delphi_edm4hep::aabtag
std::int32_t & NTRK()
float & VTPHS(int i, int h)
std::int32_t & NLAY(int i)
std::int32_t & IJSV(int i)
std::int32_t & NTRVX()
std::int32_t & NSEC(int h)
std::int32_t & NHYPO()
float & PJET(int i, int j)
std::int32_t & IBAD()
constexpr int kMaxRapTracks
std::int32_t & IST(int i)
std::int32_t & NTRS(int j)
void rdmin_(std::int32_t seed[2])
float & DCASEC(int i, int h)
std::int32_t & IJET(int i)
std::int32_t & INVTS(int k, int j)
std::int32_t & INSV(int i)
float & TGVT(int k, int j)
std::int32_t & NDOFVX()
float & VSEC(int i, int h)
std::int32_t & ISEC(int k, int h)
std::int32_t & INMVX(int i)
float & RTTVQI(int k, int j)
std::int32_t & NLAYZ(int i)
std::int32_t & NVDP(int i)
float & PJSV(int i, int j)
std::int32_t & ITHR(int i)
constexpr int kMaxSvTracks
std::int32_t & JETSV(int h)
void rdmout_(std::int32_t seed[2])
std::int32_t & NJSEC()
std::int32_t & IADTR(int i)
float & RATVQ(int i, int j)
std::int32_t & IRAP(int k, int h)
float & TAGV(int i, int j)
float & PSEC(int i, int h)
std::int32_t & NJET()
std::int32_t & NATTVX()
float & TPHSEC(int i, int h)
constexpr int kMaxTracks
std::int32_t & JTAG(int j)
std::int32_t & NVDPZ(int i)
std::int32_t & IJSEC(int j)
std::int32_t & IF3DSV(int h)
float & PRAP(int i, int h)
float & RTTVCI(int k, int j)
std::int32_t & ITSEC(int h)
std::int32_t & NSVRT(int h)
std::int32_t & ISRT(int i)
float & RATVC(int i, int j)
float & SSEC(int i, int h)
std::int32_t & ILUND(int i)
std::int32_t & NRAP(int h)
float tagv[kMaxJets][kNTagVars]
std::int32_t ntrs[kMaxJets][1]
float tgvt[kMaxJets][1][kMaxRapTracks]
float rttvqi[kMaxJets][1][kMaxRapTracks]
std::int32_t invts[kMaxJets][1][kMaxRapTracks]
float rttvci[kMaxJets][1][kMaxRapTracks]
float ratvc[kMaxJets][kNTagVars]
float ratvq[kMaxJets][kNTagVars]
std::int32_t isrt[kMaxTracks]
std::int32_t ivdhit[kMaxTracks][6]
std::int32_t nlayz[kMaxTracks]
std::int32_t nvdpz[kMaxTracks]
std::int32_t iadtr[kMaxTracks]
std::int32_t laypat[kMaxTracks]
std::int32_t nlay[kMaxTracks]
std::int32_t nvdp[kMaxTracks]
std::int32_t ivdhz[kMaxTracks][6]
std::int32_t laypz[kMaxTracks]
std::int32_t inmvx[kMaxTracks]
std::int32_t irap[kMaxHypo][kMaxSvTracks]
float ptrrap[kMaxHypo][kMaxSvTracks]
std::int32_t isec[kMaxHypo][kMaxSvTracks]