Skip to content
Snippets Groups Projects
Commit 38e0dda1 authored by John Derek Chapman's avatar John Derek Chapman Committed by Graeme Stewart
Browse files

python/BarcodeServicesConfig.py - add getMC12LLPBarcodeSvc for the new MC12LLP...

python/BarcodeServicesConfig.py - add getMC12LLPBarcodeSvc for the new MC12LLP Truth Strategy for ATLASSIM-1931. Add barcodeOffsetForTruthStrategy method to look up barcode offsets in a dictionary for ATLASSIM-2114. python/BarcodeServicesConfigDb.py - register getMC12LLPBarcodeSvc method. ATLASSIM-1931. Tagging as BarcodeServices?-00-01-03 (BarcodeServices-00-01-03)
parent ecf4d094
No related branches found
No related tags found
No related merge requests found
......@@ -34,6 +34,9 @@ def getMC12BarcodeSvc(name="Barcode_MC12BarcodeSvc", **kwargs):
from BarcodeServices.BarcodeServicesConf import Barcode__LegacyBarcodeSvc
return Barcode__LegacyBarcodeSvc(name, **kwargs)
def getMC12LLPBarcodeSvc(name="Barcode_MC12LLPBarcodeSvc", **kwargs):
return getMC12BarcodeSvc(name, **kwargs)
def getMC12PlusBarcodeSvc(name="Barcode_MC12PlusBarcodeSvc", **kwargs):
return getMC12BarcodeSvc(name, **kwargs)
......@@ -76,3 +79,15 @@ def getValidationBarcodeSvc(name="Barcode_ValidationBarcodeSvc", **kwargs):
from BarcodeServices.BarcodeServicesConf import Barcode__ValidationBarcodeSvc
return Barcode__ValidationBarcodeSvc(name, **kwargs)
def barcodeOffsetForTruthStrategy(strategyName):
offsets = {'MC12': 200000,
'MC12LLP': 200000,
'MC12Plus': 200000,
'MC15a': 200000,
'MC15aPlus': 200000,
'MC15': 1000000
}
currentOffset=offsets.get(strategyName)
if currentOffset==None:
raise RuntimeError("No barcode offset listed for truth strategy named "+str(strategyName))
return currentOffset
......@@ -16,6 +16,7 @@ import AthenaCommon.SystemOfUnits as Units
# Common tools, services and algorithms used by jobs:
addService("BarcodeServices.BarcodeServicesConfig.getMC12BarcodeSvc" , "Barcode_MC12BarcodeSvc" )
addService("BarcodeServices.BarcodeServicesConfig.getMC12LLPBarcodeSvc" , "Barcode_MC12LLPBarcodeSvc" )
addService("BarcodeServices.BarcodeServicesConfig.getMC12PlusBarcodeSvc" , "Barcode_MC12PlusBarcodeSvc" )
addService("BarcodeServices.BarcodeServicesConfig.getMC15aBarcodeSvc" , "Barcode_MC15aBarcodeSvc" )
addService("BarcodeServices.BarcodeServicesConfig.getMC15aPlusBarcodeSvc" , "Barcode_MC15aPlusBarcodeSvc" )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment