Project

General

Profile

Replay Output Variables » History » Version 16

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

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