24if(len(sys.argv) <= 1):
25 print(
"Error: you have to specify the file the SectorMap is stored in!")
27sectorMapFile = sys.argv[1]
30setupToRead =
"SVDOnlyDefault"
33 setupToRead = sys.argv[2]
36SMBSM1 = b2.register_module(
"SectorMapBootstrap")
37SMBSM1.param(
"ReadSecMapFromDB",
False)
38SMBSM1.param(
"ReadSectorMap",
True)
39SMBSM1.param(
"SectorMapsInputFile", sectorMapFile)
40SMBSM1.param(
"SetupToRead", setupToRead)
43outputMapFile = sectorMapFile[:-5] +
'_timingRemoved.root'
45SMBSM1.param(
"SectorMapsOutputFile", outputMapFile)
46SMBSM1.param(
"WriteSectorMap",
True)
56SMBSM1.param(
'threeHitFilterAdjustFunctions', [(19,
"-TMath::Infinity()"), (20,
"TMath::Infinity()")])
60SMBSM1.param(
'twoHitFilterAdjustFunctions', [(12,
"-TMath::Infinity()"), (13,
"TMath::Infinity()"),
61 (10,
"-TMath::Infinity()"), (11,
"TMath::Infinity()")])
70eventinfosetter = b2.register_module(
'EventInfoSetter')
73main = b2.create_path()
74main.add_module(eventinfosetter)
75main.add_module(SMBSM1)