Belle II Software development
RootOutputRunMixin Class Reference
Inheritance diagram for RootOutputRunMixin:
RunMixin EmptyRun

Public Member Functions

def create_argument_parser (self, **kwds)
 
def create_path (self)
 

Static Public Attributes

None root_output_file = None
 There is no default for the name of the output TFile.
 

Detailed Description

Configure for basf2 job output ROOT TFile

Definition at line 94 of file mixins.py.

Member Function Documentation

◆ create_argument_parser()

def create_argument_parser (   self,
**  kwds 
)
Parse the command-line output-file-specification argument

Reimplemented from EmptyRun.

Definition at line 100 of file mixins.py.

100 def create_argument_parser(self, **kwds):
101 """Parse the command-line output-file-specification argument"""
102 argument_parser = super().create_argument_parser(**kwds)
103 argument_parser.add_argument(
104 'root_output_file',
105 help='Output file to which the simulated events shall be written.'
106 )
107
108 return argument_parser
109

◆ create_path()

def create_path (   self)
Create a new basf2 path and add the RootOutput module to it

Reimplemented from EmptyRun.

Definition at line 110 of file mixins.py.

110 def create_path(self):
111 """Create a new basf2 path and add the RootOutput module to it"""
112 path = super().create_path()
113
114 path.add_module(
115 'RootOutput',
116 outputFileName=self.root_output_file
117 )
118
119 return path

Member Data Documentation

◆ root_output_file

None root_output_file = None
static

There is no default for the name of the output TFile.

Definition at line 98 of file mixins.py.


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