Belle II Software development
CalculationProcess Class Reference
Inheritance diagram for CalculationProcess:

Public Member Functions

def __init__ (self, iov, file_paths, output_dir)
 
def run (self)
 

Public Attributes

 iov
 interval of validity
 
 file_paths
 path to files
 
 output_dir
 output directory
 

Detailed Description

 Main class to steer the production of ROOT tuples for beast 

Definition at line 38 of file beast_tuple_producer.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  iov,
  file_paths,
  output_dir 
)
 Constructor 

Definition at line 41 of file beast_tuple_producer.py.

41 def __init__(self, iov, file_paths, output_dir):
42 """ Constructor """
43 super().__init__()
44
45 self.iov = iov
46
47 self.file_paths = file_paths
48
49 self.output_dir = output_dir
50

Member Function Documentation

◆ run()

def run (   self)
 Run 

Definition at line 51 of file beast_tuple_producer.py.

51 def run(self):
52 """ Run """
53 # Register modules
54 rootinput = b2.register_module('RootInput')
55 rootinput.param('inputFileNames', self.file_paths)
56 rootinput.param(
57 'branchNames', [
58 'EventMetaData', 'RawPXDs', 'RawSVDs', 'RawCDCs'])
59 gearbox = b2.register_module('Gearbox')
60 gearbox.param('fileName', 'geometry/Beast2_phase2.xml')
61 geometry = b2.register_module('Geometry')
62 geometry.param('components', ['PXD', 'SVD', 'CDC'])
63 pxdclusterizer = b2.register_module('PXDClusterizer')
64 pxdclusterizer.param('ElectronicNoise', 1.0)
65 pxdclusterizer.param('SeedSN', 9.0)
66 pxdtupleproducer = b2.register_module('PXDBgTupleProducer')
67 pxdtupleproducer.param(
68 'outputFileName',
69 f'{self.output_dir}/pxd_beast_tuple_exp_{self.iov.exp_low}_run_{self.iov.run_low}.root')
70
71 # Create the path
72 main = b2.create_path()
73 main.add_module(rootinput)
75 main.add_module(gearbox)
76 main.add_module(geometry)
77 main.add_module('PXDUnpacker')
78 main.add_module("ActivatePXDPixelMasker")
79 main.add_module("ActivatePXDGainCalibrator")
80 main.add_module("PXDRawHitSorter")
81 main.add_module(pxdclusterizer)
82 main.add_module(pxdtupleproducer)
83 main.add_module(b2.register_module('Progress'))
84
85 # Process the run
86 b2.process(main)
87
88
89#
90# Function run by worker processes
91#
92

Member Data Documentation

◆ file_paths

file_paths

path to files

Definition at line 47 of file beast_tuple_producer.py.

◆ iov

iov

interval of validity

Definition at line 45 of file beast_tuple_producer.py.

◆ output_dir

output_dir

output directory

Definition at line 49 of file beast_tuple_producer.py.


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