Belle II Software release-09-00-00
PostProcessingRunMixin Class Reference
Inheritance diagram for PostProcessingRunMixin:
Collaboration diagram for PostProcessingRunMixin:

Public Member Functions

def create_argument_parser (self, **kwds)
 
def run (self, path)
 
def postprocess (self)
 

Static Public Attributes

bool postprocess_only = False
 By default, browse the output TFile too.
 

Detailed Description

Post-process the basf2 job output

Definition at line 25 of file mixins.py.

Member Function Documentation

◆ create_argument_parser()

def create_argument_parser (   self,
**  kwds 
)
Parse the command-line post-processing arguments

Reimplemented from EmptyRun.

Reimplemented in HarvestingRunMixin, BrowseTFileOnTerminateRunMixin, TrackingValidationRun, TrainingRunMixin, ClusterFilterValidationRun, ElossHarvestingRun, LegendreBinningValidationRun, SegmentFitValidationRun, SegmentPairCreationValidationRun, and SegmentPairFitValidationRun.

Definition at line 31 of file mixins.py.

31 def create_argument_parser(self, **kwds):
32 """Parse the command-line post-processing arguments"""
33 argument_parser = super().create_argument_parser(**kwds)
34 postprocess_argument_group = argument_parser.add_argument_group("Postprocessing arguments")
35 postprocess_argument_group.add_argument(
36 '-po',
37 '--postprocess-only',
38 action='store_true',
39 default=self.postprocess_only,
40 dest='postprocess_only',
41 help='Only run the post processing of this run.',)
42
43 return argument_parser
44

◆ postprocess()

def postprocess (   self)
By default, do nothing. (may be overridden)

Reimplemented in HarvestingRunMixin, BrowseTFileOnTerminateRunMixin, and TrainingRunMixin.

Definition at line 52 of file mixins.py.

52 def postprocess(self):
53 """By default, do nothing. (may be overridden)"""
54
55

◆ run()

def run (   self,
  path 
)
Post-process the basf2 job output

Reimplemented from EmptyRun.

Definition at line 45 of file mixins.py.

45 def run(self, path):
46 """Post-process the basf2 job output"""
47 if not self.postprocess_only:
48 super().run(path)
49
50 self.postprocess()
51

Member Data Documentation

◆ postprocess_only

bool postprocess_only = False
static

By default, browse the output TFile too.

Definition at line 29 of file mixins.py.


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