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"""
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"""
130 path = super().create_path()
143 trackingValiddationRun.configure_and_execute_from_commandline()
146if __name__ ==
'__main__':
147 logging.basicConfig(level=logging.INFO)
None 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.
def create_argument_parser(self, **kwds)
list non_expert_parameters
List of parameters which should be used as shifter plots (all plots with these x-labels)
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.
def preparePathValidation(self, path)
TRACKING_MAILING_LIST contact
Default contact email address for the validation results.
bool pulls
Include the pull plots of the fit parameters in the validation.
bool saveFullTrees
Only works in extended mode.
str output_file_name
Name of the output file for the validation results.
bool resolution
Include the residual plots of the fit parameters in the validation.
None root_output_file
Optional file name as a destination of all event data which is discarded otherwise.