|
3 | 3 | class nthelper: |
4 | 4 |
|
5 | 5 | single_object_branches = ['evtinfo', 'evtinfomc', 'hitcount', 'tcnt', 'crvsummary', 'crvsummarymc'] |
6 | | - vector_object_branches = ['trk', 'trkmc', 'trkcalohit', 'trkcalohitmc', 'caloclusters', 'calohits', 'calorecodigis', 'calodigis', 'crvcoincs', 'crvcoincsmc', 'crvcoincsmcplane', 'trkqual', 'trkpid'] |
| 6 | + vector_object_branches = ['trk', 'trkmc', 'trkcalohit', 'trkcalohitmc', 'caloclusters', 'calohits', 'calorecodigis', 'calodigis', 'crvcoincs', 'crvcoincsmc', 'crvcoincsmcplane', 'trkqual', 'trkpid', 'mcsteps'] |
7 | 7 | vector_vector_object_branches = ['trksegs', 'trksegpars_lh', 'trksegpars_ch', 'trksegpars_kl', 'trkmcsim', 'trkhits', 'trkhitsmc', 'trkmats', 'trkhitcalibs', 'trkmcsci', 'trkmcssi', 'trksegsmc' ] |
8 | 8 |
|
9 | 9 | evt_branches = ['evtinfo','evtinfomc','hitcount','tcnt'] |
10 | 10 | trk_branches = ['trk', 'trkmc', 'trkcalohit', 'trkcalohitmc', 'trkqual', 'trkpid'] |
11 | 11 | trksegs_branches = ['trksegs', 'trksegpars_lh', 'trksegpars_ch', 'trksegpars_kl', 'trksegsmc'] |
12 | 12 | straw_branches = ['trkhits', 'trkmats', 'trkhitsmc', 'trkhitcalibs'] |
13 | | - mc_branches = ['trkmcsim'] |
| 13 | + trk_mc_branches = [ 'trkmcsim' ] |
| 14 | + general_mc_branches = [ 'mcsteps' ] |
14 | 15 | calo_branches = ['caloclusters', 'calohits', 'calorecodigis', 'calodigis'] |
15 | 16 | crv_branches = ['crvsummary','crvsummarymc','crvcoincs','crvcoincsmc','crvcoincsmcplane'] |
16 | 17 | deprecated_branches = ['trkmcsci','trkmcssi'] |
@@ -58,7 +59,8 @@ class nthelper: |
58 | 59 | "trkqual" : "MVAResultInfo", |
59 | 60 | "trkpid" : "MVAResultInfo", |
60 | 61 | "helices" : "HelixInfo", |
61 | | - "trksegsmc" : "SurfaceStepInfo" |
| 62 | + "trksegsmc" : "SurfaceStepInfo", |
| 63 | + "mcsteps" : "MCStepInfo" |
62 | 64 | } |
63 | 65 |
|
64 | 66 | # |
@@ -170,16 +172,34 @@ def list_all_branches(self, export_to_md=False): |
170 | 172 | print("| " + tokens[0] + " | " + tokens[1] + " | " + tokens[2] + "| [see " + struct_file + "](../inc/"+struct_file+")") |
171 | 173 |
|
172 | 174 | if not export_to_md: |
173 | | - print("\nMonte Carlo Branches") |
| 175 | + print("\nTrk Monte Carlo Branches") |
174 | 176 | print("================") |
175 | 177 | else: |
176 | | - print("## Monte Carlo Branches\n") |
| 178 | + print("## Trk Monte Carlo Branches\n") |
177 | 179 | print("These branches contain 4 elements per event corresponding to different Kalman fit hypotheses (see Track branches).\n") |
178 | 180 | print("Within each Kalman fit element, there is a vector containing Monte Carlo truth information about the particle making the track and its parent particles.\n") |
179 | 181 | print("The vector is sorted in reverse chronological order, such that the last element is the initial particle simulated in GEANT4, and each element before correspond to one of its daughter particles.\n") |
180 | 182 | print("| branch | structure | explanation | leaf information |") |
181 | 183 | print("|--------|-----------|-------------|------------------|") |
182 | | - for branch in self.mc_branches: |
| 184 | + for branch in self.trk_mc_branches: |
| 185 | + explanation = self.get_branch_explanation(branch) |
| 186 | + struct = self.branch_struct_dict[branch] |
| 187 | + struct_file = struct + ".hh"; |
| 188 | + if not export_to_md: |
| 189 | + print(explanation) |
| 190 | + else: |
| 191 | + tokens=explanation.split(":") |
| 192 | + print("| " + tokens[0] + " | " + tokens[1] + " | " + tokens[2] + "| [see " + struct_file + "](../inc/"+struct_file+")") |
| 193 | + |
| 194 | + if not export_to_md: |
| 195 | + print("\nGeneral Monte Carlo Branches") |
| 196 | + print("================") |
| 197 | + else: |
| 198 | + print("## General Monte Carlo Branches\n") |
| 199 | + print("These branches contain MC information in the event and are not required to be related to tracks") |
| 200 | + print("| branch | structure | explanation | leaf information |") |
| 201 | + print("|--------|-----------|-------------|------------------|") |
| 202 | + for branch in self.general_mc_branches: |
183 | 203 | explanation = self.get_branch_explanation(branch) |
184 | 204 | struct = self.branch_struct_dict[branch] |
185 | 205 | struct_file = struct + ".hh"; |
|
0 commit comments