Belle II Software  release-05-02-19
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 9 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 21 of file combined_module.py.

21  def __init__(self,
22  name,
23  contact,
24  output_file_name=None,
25  reco_tracks_name='RecoTracks',
26  mc_reco_tracks_name='MCRecoTracks',
27  expert_level=None):
28  """Constructor"""
29 
30 
31  self.output_file_name = output_file_name or name + 'TrackingValidation.root'
32 
33  # First forward the output_file_name to the separate modules
34  # but we open the TFile in the top level and forward it to them on initialize.
35 
36  eventwise_module = self.EventwiseModule(name,
37  contact,
38  output_file_name=self.output_file_name,
39  reco_tracks_name=reco_tracks_name,
40  mc_reco_tracks_name=mc_reco_tracks_name,
41  expert_level=expert_level)
42 
43  pr_side_module = self.PRSideModule(name,
44  contact,
45  output_file_name=self.output_file_name,
46  reco_tracks_name=reco_tracks_name,
47  mc_reco_tracks_name=mc_reco_tracks_name,
48  expert_level=expert_level)
49 
50  mc_side_module = self.MCSideModule(name,
51  contact,
52  output_file_name=self.output_file_name,
53  reco_tracks_name=reco_tracks_name,
54  mc_reco_tracks_name=mc_reco_tracks_name,
55  expert_level=expert_level)
56 
57 
58  self.modules = [
59  eventwise_module,
60  pr_side_module,
61  mc_side_module,
62  ]
63 
64  super().__init__(modules=self.modules)
65 

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 353 of file metamodules.py.

353  def event(self):
354  """Event method of the module
355 
356  Sets the return value of this module to true and triggers the execution of the wrapped path.
357  """
358 
359  self.return_value(True)

◆ initialize()

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

Definition at line 66 of file combined_module.py.

◆ terminate()

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

Definition at line 78 of file combined_module.py.


The documentation for this class was generated from the following file:
ClusterEfficiency.ClusterEfficiency.event
def event(self)
Definition: ClusterEfficiency.py:146