Skip to content
Snippets Groups Projects

Creating new Algorithms for Muon RDO to Digit conversion

11 files
+ 837
37
Compare changes
  • Side-by-side
  • Inline
Files
11
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
# Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
from AthenaCommon import CfgMgr
def getMdtRdoToMdtDigit(name="MdtRdoToMdtDigitOverlay", **kwargs):
kwargs.setdefault("DecodeMdtRDO", True)
kwargs.setdefault("DecodeRpcRDO", False)
kwargs.setdefault("DecodeTgcRDO", False)
kwargs.setdefault("DecodeCscRDO", False)
def getMdtRdoToMdtDigitAlg(name="MdtRdoToMdtDigitOverlayAlg", **kwargs):
from OverlayCommonAlgs.OverlayFlags import overlayFlags
if overlayFlags.isOverlayMT():
kwargs.setdefault("MdtRdoContainer", overlayFlags.bkgPrefix() + "MDTCSM")
@@ -15,19 +11,10 @@ def getMdtRdoToMdtDigit(name="MdtRdoToMdtDigitOverlay", **kwargs):
kwargs.setdefault("EvtStore", overlayFlags.dataStore())
kwargs.setdefault("MdtRdoContainer", overlayFlags.dataStore()+"+MDTCSM")
kwargs.setdefault("MdtDigitContainer", overlayFlags.dataStore()+"+MDT_DIGITS")
return CfgMgr.MuonRdoToMuonDigitTool(name, **kwargs)
def getMdtRdoToMdtDigitAlg(name="MdtRdoToMdtDigitOverlayAlg", **kwargs):
kwargs.setdefault("MuonRdoToMuonDigitTool", "MdtRdoToMdtDigitOverlay")
return CfgMgr.MuonRdoToMuonDigit(name, **kwargs)
return CfgMgr.MdtRdoToMdtDigit(name, **kwargs)
def getRpcRdoToRpcDigit(name="RpcRdoToRpcDigitOverlay", **kwargs):
kwargs.setdefault("DecodeMdtRDO", False)
kwargs.setdefault("DecodeRpcRDO", True)
kwargs.setdefault("DecodeTgcRDO", False)
kwargs.setdefault("DecodeCscRDO", False)
def getRpcRdoToRpcDigitAlg(name="RpcRdoToRpcDigitOverlayAlg", **kwargs):
from OverlayCommonAlgs.OverlayFlags import overlayFlags
if overlayFlags.isOverlayMT():
kwargs.setdefault("RpcRdoContainer", overlayFlags.bkgPrefix() + "RPCPAD")
@@ -36,19 +23,10 @@ def getRpcRdoToRpcDigit(name="RpcRdoToRpcDigitOverlay", **kwargs):
kwargs.setdefault("EvtStore", overlayFlags.dataStore())
kwargs.setdefault("RpcRdoContainer", overlayFlags.dataStore()+"+RPCPAD")
kwargs.setdefault("RpcDigitContainer", overlayFlags.dataStore()+"+RPC_DIGITS")
return CfgMgr.MuonRdoToMuonDigitTool(name, **kwargs)
def getRpcRdoToRpcDigitAlg(name="RpcRdoToRpcDigitOverlayAlg", **kwargs):
kwargs.setdefault("MuonRdoToMuonDigitTool", "RpcRdoToRpcDigitOverlay")
return CfgMgr.MuonRdoToMuonDigit(name, **kwargs)
return CfgMgr.RpcRdoToRpcDigit(name, **kwargs)
def getTgcRdoToTgcDigit(name="TgcRdoToTgcDigitOverlay", **kwargs):
kwargs.setdefault("DecodeMdtRDO", False)
kwargs.setdefault("DecodeRpcRDO", False)
kwargs.setdefault("DecodeTgcRDO", True)
kwargs.setdefault("DecodeCscRDO", False)
def getTgcRdoToTgcDigitAlg(name="TgcRdoToTgcDigitOverlayAlg", **kwargs):
from OverlayCommonAlgs.OverlayFlags import overlayFlags
if overlayFlags.isOverlayMT():
kwargs.setdefault("TgcRdoContainer", overlayFlags.bkgPrefix() + "TGCRDO")
@@ -57,12 +35,7 @@ def getTgcRdoToTgcDigit(name="TgcRdoToTgcDigitOverlay", **kwargs):
kwargs.setdefault("EvtStore", overlayFlags.dataStore())
kwargs.setdefault("TgcRdoContainer", overlayFlags.dataStore()+"+TGCRDO")
kwargs.setdefault("TgcDigitContainer", overlayFlags.dataStore()+"+TGC_DIGITS")
return CfgMgr.MuonRdoToMuonDigitTool(name, **kwargs)
def getTgcRdoToTgcDigitAlg(name="TgcRdoToTgcDigitOverlayAlg", **kwargs):
kwargs.setdefault("MuonRdoToMuonDigitTool", "TgcRdoToTgcDigitOverlay")
return CfgMgr.MuonRdoToMuonDigit(name, **kwargs)
return CfgMgr.TgcRdoToTgcDigit(name, **kwargs)
def getMdtDigitToMdtRDO(name="MdtDigitToMdtRDO", **kwargs):
Loading