Belle II Software prerelease-10-00-00a
MCSideTrackingValidationModule Class Reference
Inheritance diagram for MCSideTrackingValidationModule:
Collaboration diagram for MCSideTrackingValidationModule:

Public Member Functions

 __init__ (self, name, contact, output_file_name=None, reco_tracks_name='RecoTracks', mc_reco_tracks_name='MCRecoTracks', expert_level=None)
 
 initialize (self)
 
 prepare (self)
 
 pick (self, mc_reco_track)
 
 peel (self, mc_reco_track)
 
 peel_mc_to_pr_match_info (self, mc_reco_track)
 
 peel_hit_efficiencies_in_all_pr_tracks (self, mc_reco_track)
 
 id (self)
 
 event (self)
 
 terminate (self)
 
 barn (self)
 
 gather (self)
 
 refine (self, crops)
 

Static Public Member Functions

 create_crop_part_collection ()
 
 iter_store_obj (store_obj)
 

Public Attributes

 reco_tracks_name = reco_tracks_name
 Name of the StoreArray of the tracks from pattern recognition.
 
 mc_reco_tracks_name = mc_reco_tracks_name
 Name of the StoreArray of the ideal mc tracks.
 
 track_match_look_up = None
 Reference to the track match lookup object reading the relation information constructed by the MCMatcherTracksModule.
 
 found_det_hit_ids = set()
 Set of all detector and hits ids contained in any pr track.
 
 matched_det_hit_ids = set()
 Set of all detector and hits ids contained in matched pr tracks.
 
 clone_det_hit_ids = set()
 Set of all detector and hits ids contained in clone pr tracks.
 
 fake_det_hit_ids = set()
 Set of all detector and hits ids contained in background and ghost pr tracks.
 
 foreach = foreach
 Name of the StoreArray or iterable StoreObjPtr that contains the objects to be harvested.
 
 output_file_name = output_file_name
 Name of the ROOT output file to be generated.
 
 title = title or self.name()
 Name of this harvest.
 
 contact = contact
 Contact email address to be displayed on the validation page.
 
int expert_level = self.default_expert_level if expert_level is None else expert_level
 Integer expert level that controls to detail of plots to be generated.
 
list refiners = []
 A list of additional refiner instances to be executed on top of the refiner methods that are members of this class.
 
 show_results = show_results
 Switch to show the result ROOT file in a TBrowser on terminate.
 
 stash = self.barn()
 stash of the harvested crops (start with those in the barn)
 
 crops
 the dictionaries from peel
 
 raw_crops = raw_crops
 the dictionaries from peel as a numpy.array of doubles
 

Static Public Attributes

 save_tree
 Save a tree of all collected variables in a sub folder.
 
 save_tree_basic
 Save a basic tree.
 
 save_overview_figures_of_merit
 Generate the average finding efficiencies and hit efficiencies.
 
 save_hit_efficiency_histogram
 Save a histogram of the hit efficiency.
 
dict renaming_select_for_finding_efficiency_profiles
 Rename the efficiency-profile quantities so that they display nicely in ROOT TLatex.
 
 save_finding_efficiency_profiles
 Make profile of finding efficiency.
 
 save_finding_efficiency_by_tan_lamba_profiles
 Make profile of finding efficiency versus tan(lambda)
 
 save_finding_efficiency_by_tan_lamba_in_pt_groups_profiles
 Make profiles of finding efficiency versus tan(lambda) grouped by transverse momentum.
 
dict renaming_select_for_hit_efficiency_profiles
 Rename the hit-profile quantities so that they display nicely in ROOT TLatex.
 
 save_hit_efficiency_profiles
 Make profile of hit efficiency.
 
 save_hit_efficiency_by_tan_lambda_profiles
 Make profile of finding efficiency versus tan(lambda)
 
 save_finding_efficiency_by_pt_profiles_groupbyCharge
 Charge dependent histograms Make profile of finding efficiency versus pt, tan(lambda)
 
 save_finding_efficiency_by_tan_lambda_profiles_groupbyCharge
 Charge dependent histograms Make profile of finding efficiency versus pt, tan(lambda)
 
 save_hit_efficiency_by_pt_profiles_groupbyCharge
 Charge dependent histograms Make profile of finding efficiency versus pt, tan(lambda)
 
 save_hit_efficiency_by_tan_lambda_profiles_groupbyCharge
 Charge dependent histograms Make profile of finding efficiency versus pt, tan(lambda)
 
 save_hit_efficiency_in_all_found_hist
 This creates a histogram for all MC track displaying the ratio of hits contained in any PR track Hence this is distinctly larger than the hit efficiency to the matched PR track Usefulness under discussion.
 
 save_missing_mc_tracks_hit_efficiency_in_all_found_hist
 This creates a histogram for each missing MC track displaying the ratio of hits contained in any PR tracks High values in this hit efficiencies means that the MC track is consumed by other PR tracks but no proper match could be established.
 
int default_expert_level = 1
 The default value of expert_level if not specified explicitly by the caller.
 

Detailed Description

Module to collect matching information about the found particles and to generate
   validation plots and figures of merit on the performance of track finding.
 Expert level behavior:
    expert_level = default_expert_level: all figures and plots from this module except tree entries
    expert_level > default_expert_level: everything including tree entries
    expert_level <= default_expert_level//2: only basic figures
    default_expert_level//2 < expert_level < default_expert_level: basic figures and basic tree entries

Definition at line 22 of file mc_side_module.py.

Constructor & Destructor Documentation

◆ __init__()

__init__ ( self,
name,
contact,
output_file_name = None,
reco_tracks_name = 'RecoTracks',
mc_reco_tracks_name = 'MCRecoTracks',
expert_level = None )
Constructor

Definition at line 35 of file mc_side_module.py.

42 expert_level=None):
43 """Constructor"""
44
45 output_file_name = output_file_name or name + 'TrackingValidation.root'
46
47 super().__init__(foreach=mc_reco_tracks_name,
48 name=name,
49 output_file_name=output_file_name,
50 contact=contact,
51 expert_level=expert_level)
52
53 ## Name of the StoreArray of the tracks from pattern recognition
54 self.reco_tracks_name = reco_tracks_name
55
56 ## Name of the StoreArray of the ideal mc tracks
57 self.mc_reco_tracks_name = mc_reco_tracks_name
58
59 ## Reference to the track match lookup object reading the relation information constructed by the MCMatcherTracksModule
60 self.track_match_look_up = None
61
62 if self.expert_level >= self.default_expert_level:
63 ## Set of all detector and hits ids contained in any pr track. Updated each event.
64 self.found_det_hit_ids = set()
65
66 ## Set of all detector and hits ids contained in matched pr tracks. Updated each event.
67 self.matched_det_hit_ids = set()
68
69 ## Set of all detector and hits ids contained in clone pr tracks. Updated each event.
70 self.clone_det_hit_ids = set()
71
72 ## Set of all detector and hits ids contained in background and ghost pr tracks. Updated each event.
73 self.fake_det_hit_ids = set()
74

Member Function Documentation

◆ barn()

barn ( self)
inherited
Coroutine that receives the dictionaries of names and values from peel and store them.

Reimplemented in PickleHarvestingModule.

Definition at line 287 of file harvesting.py.

287 def barn(self):
288 """Coroutine that receives the dictionaries of names and values from peel and store them."""
289 crop = (yield)
290 raw_crops = copy.copy(crop)
291 crops = copy.copy(crop)
292
293 if isinstance(crop, numbers.Number):
294 raw_crops = self.create_crop_part_collection()
295 try:
296 while True:
297 raw_crops.append(crop)
298 # next crop
299 crop = (yield)
300 except GeneratorExit:
301 crops = np.array(raw_crops)
302
303 elif isinstance(crop, collections.abc.MutableMapping):
304 for part_name in crop:
305 raw_crops[part_name] = self.create_crop_part_collection()
306
307 try:
308 while True:
309 for part_name, parts in list(raw_crops.items()):
310 if part_name in crop:
311 parts.append(crop[part_name])
312 else:
313 parts.append(np.NaN)
314 # next crop
315 crop = (yield)
316 except GeneratorExit:
317 for part_name, parts in list(raw_crops.items()):
318 crops[part_name] = np.array(parts)
319
320 else:
321 msg = f"Unrecognised crop {crop} of type {type(crop)}"
322 raise ValueError(msg)
323
324
325 self.raw_crops = raw_crops
326
327 self.crops = crops
328

◆ create_crop_part_collection()

create_crop_part_collection ( )
staticinherited
Create the storing objects for the crop values

Currently a numpy.array of doubles is used to store all values in memory.

Definition at line 279 of file harvesting.py.

279 def create_crop_part_collection():
280 """Create the storing objects for the crop values
281
282 Currently a numpy.array of doubles is used to store all values in memory.
283 """
284 return array.array("d")
285

◆ event()

event ( self)
inherited
Event method of the module

* Does invoke the prepare method before the iteration starts.
* In each event fetch the StoreArray / iterable StoreObjPtr,
* Iterate through all instances
* Feed each instance to the pick method to decide it the instance is relevant
* Forward it to the peel method that should generated a dictionary of values
* Store each dictionary of values

Definition at line 239 of file harvesting.py.

239 def event(self):
240 """Event method of the module
241
242 * Does invoke the prepare method before the iteration starts.
243 * In each event fetch the StoreArray / iterable StoreObjPtr,
244 * Iterate through all instances
245 * Feed each instance to the pick method to decide it the instance is relevant
246 * Forward it to the peel method that should generated a dictionary of values
247 * Store each dictionary of values
248 """
249 self.prepare()
250 stash = self.stash.send
251 pick = self.pick
252 peel = self.peel
253 for crop in self.gather():
254 if pick(crop):
255 crop = peel(crop)
256 if isinstance(crop, types.GeneratorType):
257 many_crops = crop
258 for crop in many_crops:
259 stash(crop)
260 else:
261 stash(crop)
262

◆ gather()

gather ( self)
inherited
Iterator that yield the instances form the StoreArray / iterable StoreObj.

Yields
------
Object instances from the StoreArray, iterable StoreObj or the StoreObj itself
in case it is not iterable.

Definition at line 329 of file harvesting.py.

329 def gather(self):
330 """Iterator that yield the instances form the StoreArray / iterable StoreObj.
331
332 Yields
333 ------
334 Object instances from the StoreArray, iterable StoreObj or the StoreObj itself
335 in case it is not iterable.
336 """
337
338 registered_store_arrays = Belle2.PyStoreArray.list()
339 registered_store_objs = Belle2.PyStoreObj.list()
340
341 foreach = self.foreach
342 foreach_is_store_obj = foreach in registered_store_objs
343 foreach_is_store_array = foreach in registered_store_arrays
344
345 if foreach is not None:
346 if foreach_is_store_array:
347 store_array = Belle2.PyStoreArray(self.foreach)
348 yield from store_array
349
350 elif foreach_is_store_obj:
351 store_obj = Belle2.PyStoreObj(self.foreach)
352 try:
353 yield from self.iter_store_obj(store_obj)
354 except TypeError:
355 # Cannot iter the store object. Yield it instead.
356 yield store_obj.obj()
357
358 else:
359 msg = f"Name {self.foreach} does not refer to a valid object on the data store"
360 raise KeyError(msg)
361 else:
362 yield None
363
A (simplified) python wrapper for StoreArray.
static std::vector< std::string > list(DataStore::EDurability durability=DataStore::EDurability::c_Event)
Return list of available arrays for given durability.
a (simplified) python wrapper for StoreObjPtr.
Definition PyStoreObj.h:67
static std::vector< std::string > list(DataStore::EDurability durability=DataStore::EDurability::c_Event)
Return list of available objects for given durability.
Definition PyStoreObj.cc:28

◆ id()

id ( self)
inherited
Working around that name() is a method.

Exposing the name as a property using a different name

Definition at line 224 of file harvesting.py.

224 def id(self):
225 """Working around that name() is a method.
226
227 Exposing the name as a property using a different name
228 """
229 return self.name()
230

◆ initialize()

initialize ( self)
Initialization signal at the start of the event processing

Reimplemented from HarvestingModule.

Definition at line 75 of file mc_side_module.py.

75 def initialize(self):
76 """Initialization signal at the start of the event processing"""
77 super().initialize()
78 self.track_match_look_up = Belle2.TrackMatchLookUp(self.mc_reco_tracks_name, self.reco_tracks_name)
79
Class to provide convenient methods to look up matching information between pattern recognition and M...

◆ iter_store_obj()

iter_store_obj ( store_obj)
staticinherited
Obtain a iterator from a StoreObj

Repeatedly calls iter(store_obj) or store_obj.__iter__()
until the final iterator returns itself

Returns
-------
iterator of the StoreObj

Definition at line 443 of file harvesting.py.

443 def iter_store_obj(store_obj):
444 """Obtain a iterator from a StoreObj
445
446 Repeatedly calls iter(store_obj) or store_obj.__iter__()
447 until the final iterator returns itself
448
449 Returns
450 -------
451 iterator of the StoreObj
452 """
453 iterable = store_obj.obj()
454 last_iterable = None
455 while iterable is not last_iterable:
456 if hasattr(iterable, "__iter__"):
457 iterable, last_iterable = iterable.__iter__(), iterable
458 else:
459 iterable, last_iterable = iter(iterable), iterable
460 return iterable
461
462

◆ peel()

peel ( self,
mc_reco_track )
Looks at the individual Monte Carlo tracks and store information about them

Reimplemented from HarvestingModule.

Definition at line 119 of file mc_side_module.py.

119 def peel(self, mc_reco_track):
120 """Looks at the individual Monte Carlo tracks and store information about them"""
121 track_match_look_up = self.track_match_look_up
122
123 # Analyse from the Monte Carlo reference side
124 mc_reco_tracks = Belle2.PyStoreArray(self.foreach)
125 multiplicity = mc_reco_tracks.getEntries()
126
127 mc_particle = track_match_look_up.getRelatedMCParticle(mc_reco_track)
128 is_primary = bool(mc_particle.hasStatus(Belle2.MCParticle.c_PrimaryParticle))
129 mc_to_pr_match_info_crops = self.peel_mc_to_pr_match_info(mc_reco_track)
130 mc_store_array_crops = peelers.peel_store_array_info(mc_reco_track, key="mc_{part_name}")
131
132 crops = dict(is_primary=is_primary,
133 multiplicity=multiplicity,
134 **mc_to_pr_match_info_crops,
135 **mc_store_array_crops
136 )
137
138 if self.expert_level >= self.default_expert_level:
139 reco_track = track_match_look_up.getRelatedPRRecoTrack(mc_reco_track)
140 mc_particle_crops = peelers.peel_mc_particle(mc_particle)
141 hit_content_crops = peelers.peel_reco_track_hit_content(mc_reco_track)
142
143 # Custom peel function to get single detector hit purities
144 subdetector_hit_efficiency_crops = peelers.peel_subdetector_hit_efficiency(mc_reco_track, reco_track)
145
146 mc_hit_efficiencies_in_all_pr_tracks_crops = self.peel_hit_efficiencies_in_all_pr_tracks(mc_reco_track)
147
148 # Event Info
149 event_meta_data = Belle2.PyStoreObj("EventMetaData")
150 event_crops = peelers.peel_event_info(event_meta_data)
151
152 # Store Array for easier joining
153 store_array_crops = peelers.peel_store_array_info(reco_track, key="pr_{part_name}")
154
155 # Information on PR reco track
156 pr_purity_information = {
157 "pr_hit_purity": track_match_look_up.getRelatedPurity(reco_track) if reco_track else float("nan"),
158 **peelers.peel_subdetector_hit_purity(reco_track=reco_track, mc_reco_track=mc_reco_track,
159 key="pr_{part_name}")
160 }
161
162 # Information on TrackFinders
163 trackfinder_crops = peelers.peel_trackfinder(reco_track)
164
165 # Basic peel function to get Quality Indicators
166 qualityindicator_crops = peelers.peel_quality_indicators(reco_track)
167
168 crops.update(dict(**hit_content_crops,
169 **mc_particle_crops,
170 **subdetector_hit_efficiency_crops,
171 **mc_hit_efficiencies_in_all_pr_tracks_crops,
172 **event_crops,
173 **store_array_crops,
174 **pr_purity_information,
175 **trackfinder_crops,
176 **qualityindicator_crops
177 ))
178
179 return crops
180

◆ peel_hit_efficiencies_in_all_pr_tracks()

peel_hit_efficiencies_in_all_pr_tracks ( self,
mc_reco_track )
Extracts hit efficiencies

Definition at line 195 of file mc_side_module.py.

195 def peel_hit_efficiencies_in_all_pr_tracks(self, mc_reco_track):
196 """Extracts hit efficiencies"""
197 mc_det_hit_ids = utilities.get_det_hit_ids(mc_reco_track)
198
199 hit_efficiency_in_all_found = utilities.calc_hit_efficiency(self.found_det_hit_ids,
200 mc_det_hit_ids)
201
202 unfound_hit_efficiency = 1.0 - hit_efficiency_in_all_found
203
204 hit_efficiency_in_all_matched = utilities.calc_hit_efficiency(self.matched_det_hit_ids,
205 mc_det_hit_ids)
206
207 hit_efficiency_in_all_fake = utilities.calc_hit_efficiency(self.fake_det_hit_ids,
208 mc_det_hit_ids)
209
210 hit_efficiency_crops = dict(
211 hit_efficiency_in_all_found=hit_efficiency_in_all_found,
212 unfound_hit_efficiency=unfound_hit_efficiency,
213 hit_efficiency_in_all_matched=hit_efficiency_in_all_matched,
214 hit_efficiency_in_all_fake=hit_efficiency_in_all_fake,
215 )
216 return hit_efficiency_crops
217

◆ peel_mc_to_pr_match_info()

peel_mc_to_pr_match_info ( self,
mc_reco_track )
Extracts track-match information from the MCMatcherTracksModule results

Definition at line 181 of file mc_side_module.py.

181 def peel_mc_to_pr_match_info(self, mc_reco_track):
182 """Extracts track-match information from the MCMatcherTracksModule results"""
183 track_match_look_up = self.track_match_look_up
184 return dict(
185 is_matched=track_match_look_up.isAnyChargeMatchedMCRecoTrack(mc_reco_track),
186 is_matched_correct_charge=track_match_look_up.isCorrectChargeMatchedMCRecoTrack(mc_reco_track),
187 is_matched_wrong_charge=track_match_look_up.isWrongChargeMatchedMCRecoTrack(mc_reco_track),
188 is_merged=track_match_look_up.isAnyChargeMergedMCRecoTrack(mc_reco_track),
189 is_merged_correct_charge=track_match_look_up.isCorrectChargeMergedMCRecoTrack(mc_reco_track),
190 is_merged_wrong_charge=track_match_look_up.isWrongChargeMergedMCRecoTrack(mc_reco_track),
191 is_missing=track_match_look_up.isMissingMCRecoTrack(mc_reco_track),
192 hit_efficiency=track_match_look_up.getRelatedEfficiency(mc_reco_track),
193 )
194

◆ pick()

pick ( self,
mc_reco_track )
Pick every MCRecoTrack

Reimplemented from HarvestingModule.

Definition at line 115 of file mc_side_module.py.

115 def pick(self, mc_reco_track):
116 """Pick every MCRecoTrack"""
117 return True
118

◆ prepare()

prepare ( self)
Collect some statistics about the pattern recognition tracks used for comparison to the MC tracks

Executed once at the start of each event.

Reimplemented from HarvestingModule.

Definition at line 80 of file mc_side_module.py.

80 def prepare(self):
81 """Collect some statistics about the pattern recognition tracks used for comparison to the MC tracks
82
83 Executed once at the start of each event.
84 """
85 super().prepare()
86 if self.expert_level >= self.default_expert_level:
87 reco_tracks = Belle2.PyStoreArray(self.reco_tracks_name)
88 track_match_look_up = self.track_match_look_up
89
90 found_det_hit_ids = set()
91 matched_det_hit_ids = set()
92 clone_det_hit_ids = set()
93 fake_det_hit_ids = set()
94
95 for reco_track in reco_tracks:
96 det_hit_ids = utilities.get_det_hit_ids(reco_track)
97
98 found_det_hit_ids |= det_hit_ids
99
100 if track_match_look_up.isAnyChargeMatchedPRRecoTrack(reco_track):
101 matched_det_hit_ids |= det_hit_ids
102
103 if track_match_look_up.isAnyChargeClonePRRecoTrack(reco_track):
104 clone_det_hit_ids |= det_hit_ids
105
106 if (track_match_look_up.isGhostPRRecoTrack(reco_track) or
107 track_match_look_up.isBackgroundPRRecoTrack(reco_track)):
108 fake_det_hit_ids |= det_hit_ids
109
110 self.found_det_hit_ids = found_det_hit_ids
111 self.matched_det_hit_ids = matched_det_hit_ids
112 self.clone_det_hit_ids = clone_det_hit_ids
113 self.fake_det_hit_ids = fake_det_hit_ids
114

◆ refine()

refine ( self,
crops )
inherited
Receive the gathered crops and forward them to the refiners.

Reimplemented in PickleHarvestingModule.

Definition at line 398 of file harvesting.py.

398 def refine(self, crops):
399 """Receive the gathered crops and forward them to the refiners."""
400
401 kwds = {}
402 if self.output_file_name:
403 # Save everything to a ROOT file
404 if isinstance(self.output_file_name, ROOT.TFile):
405 output_tdirectory = self.output_file_name
406 else:
407 output_tfile = ROOT.TFile(self.output_file_name, 'recreate')
408 output_tdirectory = output_tfile
409
410 else:
411 output_tdirectory = None
412
413 try:
414 with root_cd(output_tdirectory):
415 for refiner in self.refiners:
416 refiner(self, crops, tdirectory=output_tdirectory, **kwds)
417
418 # Get the methods marked as refiners from the class
419 cls = type(self)
420 for name in dir(cls):
421 if isinstance(getattr(cls, name), Refiner):
422 refiner = getattr(self, name)
423 # Getattr already binds self
424 refiner(crops, tdirectory=output_tdirectory, **kwds)
425
426 finally:
427 # If we opened the TFile ourself, close it again
428 if self.output_file_name:
429 if isinstance(self.output_file_name, str):
430 output_tfile.Close()
431
432 if self.show_results and self.output_file_name:
433 if isinstance(self.output_file_name, str):
434 output_tfile = ROOT.TFile(self.output_file_name)
435 root_browse(output_tfile)
436 input("Press enter to close")
437 output_tfile.Close()
438 else:
439 root_browse(self.output_file_name)
440 input("Press enter to close")
441

◆ terminate()

terminate ( self)
inherited
Termination method of the module.

Finalize the collected crops.
Start the refinement.

Reimplemented in ClusterFilterValidationModule.

Definition at line 263 of file harvesting.py.

263 def terminate(self):
264 """Termination method of the module.
265
266 Finalize the collected crops.
267 Start the refinement.
268 """
269
270 self.stash.close()
271 del self.stash
272
273 try:
274 self.refine(self.crops)
275 except AttributeError:
276 pass
277

Member Data Documentation

◆ clone_det_hit_ids

clone_det_hit_ids = set()

Set of all detector and hits ids contained in clone pr tracks.

Updated each event.

Definition at line 70 of file mc_side_module.py.

◆ contact

contact = contact
inherited

Contact email address to be displayed on the validation page.

Definition at line 211 of file harvesting.py.

◆ crops

crops
inherited

the dictionaries from peel

Definition at line 274 of file harvesting.py.

◆ default_expert_level

int default_expert_level = 1
staticinherited

The default value of expert_level if not specified explicitly by the caller.

Definition at line 156 of file harvesting.py.

◆ expert_level

int expert_level = self.default_expert_level if expert_level is None else expert_level
inherited

Integer expert level that controls to detail of plots to be generated.

Definition at line 214 of file harvesting.py.

◆ fake_det_hit_ids

fake_det_hit_ids = set()

Set of all detector and hits ids contained in background and ghost pr tracks.

Updated each event.

Definition at line 73 of file mc_side_module.py.

◆ foreach

foreach = foreach
inherited

Name of the StoreArray or iterable StoreObjPtr that contains the objects to be harvested.

Definition at line 196 of file harvesting.py.

◆ found_det_hit_ids

found_det_hit_ids = set()

Set of all detector and hits ids contained in any pr track.

Updated each event.

Definition at line 64 of file mc_side_module.py.

◆ matched_det_hit_ids

matched_det_hit_ids = set()

Set of all detector and hits ids contained in matched pr tracks.

Updated each event.

Definition at line 67 of file mc_side_module.py.

◆ mc_reco_tracks_name

mc_reco_tracks_name = mc_reco_tracks_name

Name of the StoreArray of the ideal mc tracks.

Definition at line 57 of file mc_side_module.py.

◆ output_file_name

output_file_name = output_file_name
inherited

Name of the ROOT output file to be generated.

Definition at line 199 of file harvesting.py.

◆ raw_crops

raw_crops = raw_crops
inherited

the dictionaries from peel as a numpy.array of doubles

Definition at line 325 of file harvesting.py.

◆ reco_tracks_name

reco_tracks_name = reco_tracks_name

Name of the StoreArray of the tracks from pattern recognition.

Definition at line 54 of file mc_side_module.py.

◆ refiners

list refiners = []
inherited

A list of additional refiner instances to be executed on top of the refiner methods that are members of this class.

Definition at line 218 of file harvesting.py.

◆ renaming_select_for_finding_efficiency_profiles

dict renaming_select_for_finding_efficiency_profiles
static
Initial value:
= {
'is_matched': 'finding efficiency',
'd0_truth': 'd_{0}',
'pt_truth': 'p_{t}',
'multiplicity': 'multiplicity',
'phi0_truth': '#phi',
}

Rename the efficiency-profile quantities so that they display nicely in ROOT TLatex.

Definition at line 272 of file mc_side_module.py.

◆ renaming_select_for_hit_efficiency_profiles

dict renaming_select_for_hit_efficiency_profiles
static
Initial value:
= {
'hit_efficiency': 'hit efficiency',
'd0_truth': 'd_{0}',
'pt_truth': 'p_{t}',
'multiplicity': 'multiplicity',
'phi0_truth': '#phi',
}

Rename the hit-profile quantities so that they display nicely in ROOT TLatex.

Definition at line 330 of file mc_side_module.py.

◆ save_finding_efficiency_by_pt_profiles_groupbyCharge

save_finding_efficiency_by_pt_profiles_groupbyCharge
static
Initial value:
= refiners.save_profiles(
)

Charge dependent histograms Make profile of finding efficiency versus pt, tan(lambda)

Definition at line 370 of file mc_side_module.py.

◆ save_finding_efficiency_by_tan_lamba_in_pt_groups_profiles

save_finding_efficiency_by_tan_lamba_in_pt_groups_profiles
static
Initial value:
= refiners.save_profiles(
)

Make profiles of finding efficiency versus tan(lambda) grouped by transverse momentum.

Definition at line 311 of file mc_side_module.py.

◆ save_finding_efficiency_by_tan_lamba_profiles

save_finding_efficiency_by_tan_lamba_profiles
static
Initial value:
= refiners.save_profiles(
)

Make profile of finding efficiency versus tan(lambda)

Definition at line 294 of file mc_side_module.py.

◆ save_finding_efficiency_by_tan_lambda_profiles_groupbyCharge

save_finding_efficiency_by_tan_lambda_profiles_groupbyCharge
static
Initial value:
= refiners.save_profiles(
)

Charge dependent histograms Make profile of finding efficiency versus pt, tan(lambda)

Definition at line 388 of file mc_side_module.py.

◆ save_finding_efficiency_profiles

save_finding_efficiency_profiles
static
Initial value:
= refiners.save_profiles(
)

Make profile of finding efficiency.

Definition at line 281 of file mc_side_module.py.

◆ save_hit_efficiency_by_pt_profiles_groupbyCharge

save_hit_efficiency_by_pt_profiles_groupbyCharge
static
Initial value:
= refiners.save_profiles(
)

Charge dependent histograms Make profile of finding efficiency versus pt, tan(lambda)

Definition at line 407 of file mc_side_module.py.

◆ save_hit_efficiency_by_tan_lambda_profiles

save_hit_efficiency_by_tan_lambda_profiles
static
Initial value:
= refiners.save_profiles(
)

Make profile of finding efficiency versus tan(lambda)

Definition at line 352 of file mc_side_module.py.

◆ save_hit_efficiency_by_tan_lambda_profiles_groupbyCharge

save_hit_efficiency_by_tan_lambda_profiles_groupbyCharge
static
Initial value:
= refiners.save_profiles(
)

Charge dependent histograms Make profile of finding efficiency versus pt, tan(lambda)

Definition at line 425 of file mc_side_module.py.

◆ save_hit_efficiency_histogram

save_hit_efficiency_histogram
static
Initial value:
= refiners.save_histograms(
)

Save a histogram of the hit efficiency.

Definition at line 262 of file mc_side_module.py.

◆ save_hit_efficiency_in_all_found_hist

save_hit_efficiency_in_all_found_hist
static
Initial value:
= refiners.save_histograms(
)

This creates a histogram for all MC track displaying the ratio of hits contained in any PR track Hence this is distinctly larger than the hit efficiency to the matched PR track Usefulness under discussion.

Definition at line 445 of file mc_side_module.py.

◆ save_hit_efficiency_profiles

save_hit_efficiency_profiles
static
Initial value:
= refiners.save_profiles(
)

Make profile of hit efficiency.

Definition at line 339 of file mc_side_module.py.

◆ save_missing_mc_tracks_hit_efficiency_in_all_found_hist

save_missing_mc_tracks_hit_efficiency_in_all_found_hist
static
Initial value:
= refiners.save_histograms(
)

This creates a histogram for each missing MC track displaying the ratio of hits contained in any PR tracks High values in this hit efficiencies means that the MC track is consumed by other PR tracks but no proper match could be established.

Definition at line 456 of file mc_side_module.py.

◆ save_overview_figures_of_merit

save_overview_figures_of_merit
static
Initial value:
= refiners.save_fom(
)

Generate the average finding efficiencies and hit efficiencies.

Definition at line 243 of file mc_side_module.py.

◆ save_tree

save_tree
static
Initial value:
= refiners.save_tree(
# using cond to suppress false doxygen warnings
)

Save a tree of all collected variables in a sub folder.

Definition at line 222 of file mc_side_module.py.

◆ save_tree_basic

save_tree_basic
static
Initial value:
= refiners.save_tree(
# using cond to suppress false doxygen warnings
)

Save a basic tree.

Definition at line 232 of file mc_side_module.py.

◆ show_results

show_results = show_results
inherited

Switch to show the result ROOT file in a TBrowser on terminate.

Definition at line 221 of file harvesting.py.

◆ stash

stash = self.barn()
inherited

stash of the harvested crops (start with those in the barn)

Definition at line 237 of file harvesting.py.

◆ title

title = title or self.name()
inherited

Name of this harvest.

Title particle of this harvest

Definition at line 208 of file harvesting.py.

◆ track_match_look_up

track_match_look_up = None

Reference to the track match lookup object reading the relation information constructed by the MCMatcherTracksModule.

Definition at line 60 of file mc_side_module.py.


The documentation for this class was generated from the following file: