Belle II Software  release-08-02-06
CombinedTrackingValidationModule Class Reference
Inheritance diagram for CombinedTrackingValidationModule:
Collaboration diagram for CombinedTrackingValidationModule:

Public Member Functions

def __init__ (self, name, contact, output_file_name=None, reco_tracks_name='RecoTracks', mc_reco_tracks_name='MCRecoTracks', expert_level=None)
 
def initialize (self)
 
def terminate (self)
 
def event (self)
 

Public Attributes

 output_file_name
 Output TFile to be opened in the initialize methode.
 
 modules
 Subordinate modules.
 
 output_tfile
 the output TFile
 

Static Public Attributes

 MCSideModule = MCSideTrackingValidationModule
 MC side validation module to use.
 
 PRSideModule = PRSideTrackingValidationModule
 PR side validation module to use.
 
 EventwiseModule = EventwiseTrackingValidationModule
 Eventwise side validation module to use.
 

Private Attributes

 _path
 The contained path.
 

Detailed Description

Harvesting validation module combining eventwise, pr side and mc side tracking valiation parts

Definition at line 17 of file combined_module.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 29 of file combined_module.py.

35  expert_level=None):
36  """Constructor"""
37 
38 
39  self.output_file_name = output_file_name or name + 'TrackingValidation.root'
40 
41  # First forward the output_file_name to the separate modules
42  # but we open the TFile in the top level and forward it to them on initialize.
43 
44  eventwise_module = self.EventwiseModule(name,
45  contact,
46  output_file_name=self.output_file_name,
47  reco_tracks_name=reco_tracks_name,
48  mc_reco_tracks_name=mc_reco_tracks_name,
49  expert_level=expert_level)
50 
51  pr_side_module = self.PRSideModule(name,
52  contact,
53  output_file_name=self.output_file_name,
54  reco_tracks_name=reco_tracks_name,
55  mc_reco_tracks_name=mc_reco_tracks_name,
56  expert_level=expert_level)
57 
58  mc_side_module = self.MCSideModule(name,
59  contact,
60  output_file_name=self.output_file_name,
61  reco_tracks_name=reco_tracks_name,
62  mc_reco_tracks_name=mc_reco_tracks_name,
63  expert_level=expert_level)
64 
65 
66  self.modules = [
67  eventwise_module,
68  pr_side_module,
69  mc_side_module,
70  ]
71 
72  super().__init__(modules=self.modules)
73 

Member Function Documentation

◆ event()

def event (   self)
inherited
Event method of the module

Sets the return value of this module to true and triggers the execution of the wrapped path.

Definition at line 358 of file metamodules.py.

358  def event(self):
359  """Event method of the module
360 
361  Sets the return value of this module to true and triggers the execution of the wrapped path.
362  """
363 
364  self.return_value(True)

◆ initialize()

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

Definition at line 74 of file combined_module.py.

◆ terminate()

def terminate (   self)
Termination signal at the start of the event processing

Definition at line 86 of file combined_module.py.


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