25 if(len(sys.argv) <= 1):
26 print(
"Error: you have to specify the file the SectorMap is stored in!")
28 sectorMapFile = sys.argv[1]
31 setupToRead =
"SVDOnlyDefault"
33 if(len(sys.argv) > 2):
34 setupToRead = sys.argv[2]
37 SMBSM1 = b2.register_module(
"SectorMapBootstrap")
38 SMBSM1.param(
"ReadSecMapFromDB",
False)
39 SMBSM1.param(
"ReadSectorMap",
True)
40 SMBSM1.param(
"SectorMapsInputFile", sectorMapFile)
41 SMBSM1.param(
"SetupToRead", setupToRead)
44 outputMapFile = sectorMapFile[:-5] +
'_timingRemoved.root'
46 SMBSM1.param(
"SectorMapsOutputFile", outputMapFile)
47 SMBSM1.param(
"WriteSectorMap",
True)
57 SMBSM1.param(
'threeHitFilterAdjustFunctions', [(19,
"-TMath::Infinity()"), (20,
"TMath::Infinity()")])
61 SMBSM1.param(
'twoHitFilterAdjustFunctions', [(12,
"-TMath::Infinity()"), (13,
"TMath::Infinity()"),
62 (10,
"-TMath::Infinity()"), (11,
"TMath::Infinity()")])
71 eventinfosetter = b2.register_module(
'EventInfoSetter')
74 main = b2.create_path()
75 main.add_module(eventinfosetter)
76 main.add_module(SMBSM1)