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 plotTrackQualityIndicator =
True
68 """The default way to add the validation module to the path.
70 Derived classes can overload this method modify the validation module
71 or add more than one validation steps.
83 expert_level=expert_level
99 trackingValidationModule.trackCandidatesColumnName =
"RecoTracks"
104 path.add_module(trackingValidationModule)
107 """Create command line argument parser"""
108 argument_parser = super().create_argument_parser(**kwds)
110 # Left over from earlier parameter settings. Overwrites the more fundamental simulation_only parameter
111 argument_parser.add_argument(
114 dest='simulation_output',
115 default=argparse.SUPPRESS,
116 help='Output file to which the simulated events shall be written.'
119 argument_parser.add_argument(
124 default=argparse.SUPPRESS,
125 help='Use the extended validation with more plots and whistles'
128 return argument_parser
130 def create_path(self):
131 """Create path from parameters"""
132 # Sets up a path that plays back pregenerated events or generates events
133 # based on the properties in the base class.
134 path = super().create_path()
136 # add the validation module to the path
137 self.preparePathValidation(path)
139 if self.root_output_file:
140 path.add_module("RootOutput", outputFileName=self.root_output_file)
146 trackingValiddationRun = TrackingValidationRun()
147 trackingValiddationRun.configure_and_execute_from_commandline()
150if __name__ == '__main__':
151 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)
bool plotTrackQualityIndicator
Draw validation plots for track quality indicator.