21TRACKING_MAILING_LIST =
'software-tracking@belle2.org'
25 """Run setup to compose a path to validate the the tracking procedures from pre-simulated events
26 or from events simulated on the fly. Considering parameters from the commandline."""
29 contact = TRACKING_MAILING_LIST
32 output_file_name =
'TrackingValidation.root'
35 root_output_file =
None
44 use_expert_folder =
True
47 exclude_profile_mc_parameter = []
50 exclude_profile_pr_parameter = []
53 use_fit_information =
False
62 non_expert_parameters = [
'p_{t}']
65 """The default way to add the validation module to the path.
67 Derived classes can overload this method modify the validation module
68 or add more than one validation steps.
80 expert_level=expert_level
95 trackingValidationModule.trackCandidatesColumnName =
"RecoTracks"
100 path.add_module(trackingValidationModule)
103 """Create command line argument parser"""
104 argument_parser = super().create_argument_parser(**kwds)
106 # Left over from earlier parameter settings. Overwrites the more fundamental simulation_only parameter
107 argument_parser.add_argument(
110 dest='simulation_output',
111 default=argparse.SUPPRESS,
112 help='Output file to which the simulated events shall be written.'
115 argument_parser.add_argument(
120 default=argparse.SUPPRESS,
121 help='Use the extended validation with more plots and whistles'
124 return argument_parser
126 def create_path(self):
127 """Create path from parameters"""
128 # Sets up a path that plays back pregenerated events or generates events
129 # based on the properties in the base class.
130 path = super().create_path()
132 # add the validation module to the path
133 self.preparePathValidation(path)
135 if self.root_output_file:
136 path.add_module("RootOutput", outputFileName=self.root_output_file)
142 trackingValiddationRun = TrackingValidationRun()
143 trackingValiddationRun.configure_and_execute_from_commandline()
146if __name__ == '__main__':
147 logging.basicConfig(level=logging.INFO)
output_file_name
There is no default for the name of the output TFile.
bool fit_tracks
By default, do not add the track fitting to the execution.
list non_expert_parameters
List of parameters which should be used as shifter plots (all plots with these x-labels)
contact
Default contact email address for the validation results.
bool extended
Switch to use the extended harvesting validation instead.
bool use_fit_information
Do not fit the tracks but access the fit information for pulls etc.
bool use_expert_folder
Use the "expert" folder in the validation file as the destination of the pull and residual plots.
list exclude_profile_mc_parameter
Exclude some of the perigee parameters from the mc side plots.
list exclude_profile_pr_parameter
Exclude some of the perigee parameters from the pr side plots.
bool pulls
Include the pull plots of the fit parameters in the validation.
bool saveFullTrees
Only works in extended mode.
create_argument_parser(self, **kwds)
bool resolution
Include the residual plots of the fit parameters in the validation.
preparePathValidation(self, path)