17 Sample script to generte ASIC cross-talk library. Usage:
19 basf2 AsicBackgroundLibraryGenerator.py <cosmic_raw_data_file> <output_asicbg_root_file>
21 global_tag =
"data_reprocessing_prompt_rel4_patchb"
22 basf2.conditions.override_globaltags()
23 basf2.conditions.expert_settings(usable_globaltag_states={
"TESTING",
"VALIDATED",
24 "PUBLISHED",
"RUNNING",
"OPEN"})
25 basf2.conditions.append_globaltag(global_tag)
26 path = basf2.create_path()
27 path.add_module(
"Progress")
30 inputFilename = sys.argv[1]
32 file_name = sys.argv[2]
34 branches = [
'EventMetaData',
'RawCDCs']
35 path.add_module(
"RootInput", inputFileNames=inputFilename, branchNames=branches)
36 path.add_module(
"Gearbox")
37 path.add_module(
"Geometry", useDB=
True)
44 path.add_module(
"AsicBackgroundLibraryCreator",
45 inputTracks=
"CDCTrackVector",
46 inputWireHits=
"CDCWireHitVector",
47 AsicLibraryFileName=file_name,
55 basf2.print_path(path)
60 print(basf2.statistics)
63 if __name__ ==
"__main__":
def add_unpackers(path, components=None, writeKLMDigitRaws=False, addTOPRelations=False)
int main(int argc, char **argv)
Run all tests.
def add_track_finding(path, components=None, reco_tracks="RecoTracks", prune_temporary_tracks=True, use_second_cdc_hits=False, use_mc_truth=False, svd_ckf_mode="SVD_after", add_both_directions=True, svd_standalone_mode="VXDTF2", use_svd_to_cdc_ckf=True, use_ecl_to_cdc_ckf=False, add_cdcTrack_QI=True, add_vxdTrack_QI=False, pxd_filtering_offline=False, use_HLT_ROIs=False)