Project

General

Profile

Replay Output Variables » History » Version 18

Sean Jeffas, 05/10/2023 05:25 PM

1 1 Sean Jeffas
h1. Replay Output Variables
2 2 Sean Jeffas
3 18 Sean Jeffas
{{toc}}
4
5 2 Sean Jeffas
h1. Description
6
7
* One can search any working build of SBS-offline or Podd for “rVarDef” to find the location of these definitions.
8
* From the build src directory: grep -nr “rvardef*” .
9 3 Sean Jeffas
* All definitions below are recorded in the following order: { <variable extension>, <Definition>, <SBS-offline designation> }
10
11
h1. Tracking Definition
12
13 5 Sean Jeffas
* These definitions are defined in Podd. See github [https://github.com/JeffersonLab/analyzer].
14 3 Sean Jeffas
** THaSpectrometer.cxx
15 15 Sean Jeffas
* All definitions below are accesed from the tree with the prepend *bb.tr*.
16
** Ex. *bb.tr.vz*
17 6 Sean Jeffas
18 10 Sean Jeffas
h3. Track Variables
19 6 Sean Jeffas
20 11 Sean Jeffas
<pre>
21 12 Sean Jeffas
 { "tr.n",    "Number of tracks",             "GetNTracks()" },
22 8 Sean Jeffas
 { "tr.x",    "Track x coordinate (m)",       "fTracks.THaTrack.fX" },
23
 { "tr.y",    "Track x coordinate (m)",       "fTracks.THaTrack.fY" },
24
 { "tr.th",   "Tangent of track theta angle", "fTracks.THaTrack.fTheta" },
25
 { "tr.ph",   "Tangent of track phi angle",   "fTracks.THaTrack.fPhi" },
26
 { "tr.p",    "Track momentum (GeV)",         "fTracks.THaTrack.fP" },
27
 { "tr.flag", "Track status flag",            "fTracks.THaTrack.fFlag" },
28
 { "tr.chi2", "Track's chi2 from hits",       "fTracks.THaTrack.fChi2" },
29
 { "tr.ndof", "Track's NDoF",                 "fTracks.THaTrack.fNDoF" },
30
 { "tr.d_x",  "Detector x coordinate (m)",    "fTracks.THaTrack.fDX" },
31
 { "tr.d_y",  "Detector y coordinate (m)",    "fTracks.THaTrack.fDY" },
32
 { "tr.d_th", "Detector tangent of theta",    "fTracks.THaTrack.fDTheta" },
33
 { "tr.d_ph", "Detector tangent of phi",      "fTracks.THaTrack.fDPhi" },
34
 { "tr.r_x",  "Rotated x coordinate (m)",     "fTracks.THaTrack.fRX" },
35
 { "tr.r_y",  "Rotated y coordinate (m)",     "fTracks.THaTrack.fRY" },
36
 { "tr.r_th", "Rotated tangent of theta",     "fTracks.THaTrack.fRTheta" },
37
 { "tr.r_ph", "Rotated tangent of phi",       "fTracks.THaTrack.fRPhi" },
38
 { "tr.tg_y", "Target y coordinate",          "fTracks.THaTrack.fTY"},
39
 { "tr.tg_th", "Tangent of target theta angle", "fTracks.THaTrack.fTTheta"},
40
 { "tr.tg_ph", "Tangent of target phi angle",   "fTracks.THaTrack.fTPhi"},    
41
 { "tr.tg_dp", "Target delta",                "fTracks.THaTrack.fDp"},
42
 { "tr.px",    "Lab momentum x (GeV)",        "fTracks.THaTrack.GetLabPx()"},
43
 { "tr.py",    "Lab momentum y (GeV)",        "fTracks.THaTrack.GetLabPy()"},
44
 { "tr.pz",    "Lab momentum z (GeV)",        "fTracks.THaTrack.GetLabPz()"},
45
 { "tr.vx",    "Vertex x (m)",                "fTracks.THaTrack.GetVertexX()"},
46
 { "tr.vy",    "Vertex y (m)",                "fTracks.THaTrack.GetVertexY()"},
47
 { "tr.vz",    "Vertex z (m)",                "fTracks.THaTrack.GetVertexZ()"},
48
 { "tr.pathl", "Pathlength from tg to fp (m)","fTracks.THaTrack.GetPathLen()"},
49
 { "tr.time",  "Time of track@Ref Plane (s)", "fTracks.THaTrack.GetTime()"},
50
 { "tr.dtime", "uncer of time (s)",           "fTracks.THaTrack.GetdTime()"},
51
 { "tr.beta",  "Beta of track",               "fTracks.THaTrack.GetBeta()"},
52
 { "tr.dbeta", "uncertainty of beta",         "fTracks.THaTrack.GetdBeta()"},
53
 { "status",   "Bits of completed analysis stages", "fStagesDone" }
54 7 Sean Jeffas
</code></pre>
55 13 Sean Jeffas
56
h1. HCal Variable Definitions
57
58
* These definitions from the following source files defined in SBS-offline. See github for more information.
59
** SBSCalorimeter.cxx
60 1 Sean Jeffas
** SBSGenericDetector.cxx
61 14 Sean Jeffas
* All definitions below are accessed from the tree with the prepend *sbs.hcal*.
62
** Ex. *sbs.hcal.clus_blk.atime*
63 16 Sean Jeffas
64
h3. ADC Variables
65
66
67
<pre>
68
 { "adcrow", "Row for block in data vectors",  "fGood.ADCrow" }),
69
 { "adccol", "Col for block in data vectors",  "fGood.ADCcol" }),
70
 { "adcelemID", "Element ID for block in data vectors",  "fGood.ADCelemID" }),
71
 { "adclayer", "Layer for block in data vectors",  "fGood.ADClayer" }),
72
 { "ped", "Pedestal for block in data vectors",  "fGood.ped" }),
73
 { "a","ADC integral", "fGood.a"} );
74
 { "a_mult","ADC # hits in channel", "fGood.a_mult"} );
75
 { "a_p","ADC integral - ped", "fGood.a_p"} );
76
 { "a_c","(ADC integral - ped)*gain", "fGood.a_c"} );
77
 { "a_amp","ADC pulse amplitude", "fGood.a_amp"} );
78
 { "a_amp_p","ADC pulse amplitude -ped", "fGood.a_amp_p"} );
79
 { "a_amp_c","(ADC pulse amplitude -ped)*gain*AmpToIntRatio", "fGood.a_amp_p"} );
80
 { "a_amptrig_p","(ADC pulse amplitude -ped)*AmpToIntRatio", "fGood.a_amp_p"} );
81
 { "a_amptrig_c","(ADC pulse amplitude -ped)*gain*AmpToIntRatio", "fGood.a_amp_p"} );
82
 { "a_time","ADC pulse time", "fGood.a_time"} );
83
 { "hits.a",   "All ADC inntegrals",  "fRaw.a" });
84
 { "hits.a_amp",   "All ADC amplitudes",  "fRaw.a_amp" });
85
 { "hits.a_time",   "All ADC pulse times",  "fRaw.a_time" });
86
</code></pre>
87 17 Sean Jeffas
88
h3. ADC Waveform Variables
89
90
<pre>
91
 { "samps_idx", "Index in samples vector for given row-col module", "fGood.sidx" });
92
 { "nsamps" , "Number of samples for given row-col", "fGood.nsamps"});
93
 { "samps", "Calibrated ADC samples",  "fGood.samps" });
94
 { "samps_elemID", "Calibrated ADC samples",  "fGood.samps_elemID" });
95
</code></pre>