Belle II Software development
BrowseTFileOnTerminateRunMixin Class Reference
Inheritance diagram for BrowseTFileOnTerminateRunMixin:
PostProcessingRunMixin EmptyRun ClusterFilterValidationRun SegmentPairCreationValidationRun HarvestingRunMixin TrackingValidationRun TrainingRunMixin HarvestingRun CombinedSVDTrackingValidation CombinedSVDTrackingValidationBkg SVDHoughTrackingValidation SVDHoughTrackingValidationBkg Standalone VXDTF2TrackingValidation VXDTF2TrackingValidationBkg CDCAutomaton CDCAutomaton CDCCR CDCCombined CDCCombined CDCFull CDCFull CDCLegendre CDCLegendre CosmicsAxialHough CosmicsHough Cosmics Full FullBkg fullTrackingValidation_plusECL Full Muon CKFBkg toCDCCKFValidationBkg toCDCfromEclCKF toCDCfromEclCKF

Public Member Functions

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

Static Public Attributes

None output_file_name = None
 There is no default for the name of the output TFile.
 
bool show_results = False
 By default, do not show the browsing results.
 

Detailed Description

Browse interactively the basf2 job output

Definition at line 56 of file mixins.py.

Member Function Documentation

◆ create_argument_parser()

def create_argument_parser (   self,
**  kwds 
)
Parse the command-line TFile-browsing arguments

Reimplemented from PostProcessingRunMixin.

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

Definition at line 64 of file mixins.py.

64 def create_argument_parser(self, **kwds):
65 """Parse the command-line TFile-browsing arguments"""
66 argument_parser = super().create_argument_parser(**kwds)
67
68 postprocess_argument_group = argument_parser
69 for group in argument_parser._action_groups:
70 if group.title == "Postprocessing arguments":
71 postprocess_argument_group = group
72 break
73
74 postprocess_argument_group.add_argument(
75 '-s',
76 '--show',
77 action='store_true',
78 default=self.show_results,
79 dest='show_results',
80 help='Show generated plots in a TBrowser immediately.',)
81
82 return argument_parser
83

◆ postprocess()

def postprocess (   self)
Browse the TFile interactively

Reimplemented from PostProcessingRunMixin.

Reimplemented in HarvestingRunMixin, and TrainingRunMixin.

Definition at line 84 of file mixins.py.

84 def postprocess(self):
85 """Browse the TFile interactively"""
86 if self.show_results and self.output_file_name:
87 with root_utils.root_open(self.output_file_name) as tfile:
88 root_utils.root_browse(tfile)
89 input("Close with return key.")
90
91 super().postprocess()
92
93

Member Data Documentation

◆ output_file_name

None output_file_name = None
static

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

Reimplemented in ElossHarvestingRun, LegendreBinningValidationRun, SegmentFitValidationRun, and SegmentPairFitValidationRun.

Definition at line 60 of file mixins.py.

◆ show_results

bool show_results = False
static

By default, do not show the browsing results.

Definition at line 62 of file mixins.py.


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