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 """The default way to add the validation module to the path.
65 Derived classes can overload this method modify the validation module
66 or add more than one validation steps.
78 expert_level=expert_level
86 pulls=self.
pullspulls,
93 trackingValidationModule.trackCandidatesColumnName =
"RecoTracks"
95 path.add_module(trackingValidationModule)
98 """Create command line argument parser"""
102 argument_parser.add_argument(
105 dest=
'simulation_output',
106 default=argparse.SUPPRESS,
107 help=
'Output file to which the simulated events shall be written.'
110 argument_parser.add_argument(
115 default=argparse.SUPPRESS,
116 help=
'Use the extended validation with more plots and whistles'
119 return argument_parser
122 """Create path from parameters"""
131 path.add_module(
"RootOutput", outputFileName=self.
root_output_fileroot_output_file)
138 trackingValiddationRun.configure_and_execute_from_commandline()
141 if __name__ ==
'__main__':
142 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.
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.