22 TRACKING_MAILING_LIST =
'software-tracking@belle2.org'
26 """Run setup to compose a path to validate the the tracking procedures from pre-simulated events
27 or from events simulated on the fly. Considering parameters from the commandline."""
30 contact = TRACKING_MAILING_LIST
33 output_file_name =
'TrackingValidation.root'
36 root_output_file =
None
45 use_expert_folder =
True
48 exclude_profile_mc_parameter = []
51 exclude_profile_pr_parameter = []
54 use_fit_information =
False
63 non_expert_parameters = [
'p_{t}']
66 """The default way to add the validation module to the path.
68 Derived classes can overload this method modify the validation module
69 or add more than one validation steps.
81 expert_level=expert_level
89 pulls=self.
pullspulls,
96 trackingValidationModule.trackCandidatesColumnName =
"RecoTracks"
101 path.add_module(trackingValidationModule)
104 """Create command line argument parser"""
108 argument_parser.add_argument(
111 dest=
'simulation_output',
112 default=argparse.SUPPRESS,
113 help=
'Output file to which the simulated events shall be written.'
116 argument_parser.add_argument(
121 default=argparse.SUPPRESS,
122 help=
'Use the extended validation with more plots and whistles'
125 return argument_parser
128 """Create path from parameters"""
137 path.add_module(
"RootOutput", outputFileName=self.
root_output_fileroot_output_file)
144 trackingValiddationRun.configure_and_execute_from_commandline()
147 if __name__ ==
'__main__':
148 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.
def create_argument_parser(self, **kwds)
root_output_file
Optional file name as a destination of all event data which is discarded otherwise.
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.
string output_file_name
Name of the output file for the validation results.
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)
bool pulls
Include the pull plots of the fit parameters in the validation.
bool saveFullTrees
Only works in extended mode.
bool resolution
Include the residual plots of the fit parameters in the validation.
int main(int argc, char **argv)
Run all tests.