ATLAS Offline Software
Functions
python.TRT_RawDataByteStreamCnvConfig Namespace Reference

Functions

def TRT_CablingSvcCfg (flags)
 
def TRTRawDataProviderCfg (flags, name="TRTRawDataProvider", **kwargs)
 
def TrigTRTRawDataProviderCfg (AthConfigFlags flags, str RoIs, **kwargs)
 
def TRTOverlayRawDataProviderAlgCfg (flags, name="TRTRawDataProvider", **kwargs)
 

Function Documentation

◆ TrigTRTRawDataProviderCfg()

def python.TRT_RawDataByteStreamCnvConfig.TrigTRTRawDataProviderCfg ( AthConfigFlags  flags,
str  RoIs,
**  kwargs 
)

Definition at line 39 of file TRT_RawDataByteStreamCnvConfig.py.

39 def TrigTRTRawDataProviderCfg(flags : AthConfigFlags, RoIs : str, **kwargs):
40 
41  suffix = flags.Tracking.ActiveConfig.input_name
42  providerToolName = f"TrigTRTRawDataProviderTool_{suffix}"
43  providerName = f"TrigTRTRawDataProvider_{suffix}"
44 
45  providerTool = CompFactory.TRTRawDataProviderTool(name = providerToolName,
46  StoreInDetTimeCollections = False)
47 
48  kwargs.setdefault("ProviderTool", providerTool)
49  kwargs.setdefault('isRoI_Seeded', True)
50  kwargs.setdefault('RoIs', RoIs)
51  kwargs.setdefault('RDOKey', 'TRT_RDOs_TRIG')
52  kwargs.setdefault('RDOCacheKey', flags.Trigger.InDetTracking.TRTRDOCacheKey)
53 
54  return TRTRawDataProviderCfg(flags, name = providerName, **kwargs)
55 

◆ TRT_CablingSvcCfg()

def python.TRT_RawDataByteStreamCnvConfig.TRT_CablingSvcCfg (   flags)
Return a ComponentAccumulator for TRT_CablingSvc service

Definition at line 8 of file TRT_RawDataByteStreamCnvConfig.py.

8 def TRT_CablingSvcCfg(flags):
9  """Return a ComponentAccumulator for TRT_CablingSvc service"""
10  acc = ComponentAccumulator()
11  # Properly configure MC/data for TRT cabling
12  tool = CompFactory.TRT_FillCablingData_DC3(RealData=not flags.Input.isMC)
13  acc.addPublicTool(tool)
14  # Setup TRT cabling service
15  acc.addService(CompFactory.TRT_CablingSvc())
16  return acc
17 
18 

◆ TRTOverlayRawDataProviderAlgCfg()

def python.TRT_RawDataByteStreamCnvConfig.TRTOverlayRawDataProviderAlgCfg (   flags,
  name = "TRTRawDataProvider",
**  kwargs 
)
Return a ComponentAccumulator for TRT raw data provider for data overlay.

Definition at line 56 of file TRT_RawDataByteStreamCnvConfig.py.

56 def TRTOverlayRawDataProviderAlgCfg(flags, name="TRTRawDataProvider", **kwargs):
57  """Return a ComponentAccumulator for TRT raw data provider for data overlay."""
58  kwargs.setdefault("RDOKey", flags.Overlay.BkgPrefix + "TRT_RDOs")
59  return TRTRawDataProviderCfg(flags, name, **kwargs)

◆ TRTRawDataProviderCfg()

def python.TRT_RawDataByteStreamCnvConfig.TRTRawDataProviderCfg (   flags,
  name = "TRTRawDataProvider",
**  kwargs 
)
Return a ComponentAccumulator for TRT raw data provider

Definition at line 19 of file TRT_RawDataByteStreamCnvConfig.py.

19 def TRTRawDataProviderCfg(flags, name="TRTRawDataProvider", **kwargs):
20  """Return a ComponentAccumulator for TRT raw data provider"""
21  acc = TRT_CablingSvcCfg(flags)
22 
23  if not flags.Input.isMC:
24  from IOVDbSvc.IOVDbSvcConfig import addFolders
25  acc.merge(addFolders(flags, "/TRT/Onl/ROD/Compress", "TRT_ONL", className="CondAttrListCollection"))
26 
27  if 'ProviderTool' not in kwargs:
28  kwargs.setdefault("ProviderTool", CompFactory.TRTRawDataProviderTool("InDetTRTRawDataProviderTool",
29  LVL1IDKey = "TRT_LVL1ID",
30  BCIDKey = "TRT_BCID"))
31 
32  from RegionSelector.RegSelToolConfig import regSelTool_TRT_Cfg
33  kwargs.setdefault("RegSelTool", acc.popToolsAndMerge(regSelTool_TRT_Cfg(flags)))
34 
35  providerAlg = CompFactory.TRTRawDataProvider(name, **kwargs)
36  acc.addEventAlgo(providerAlg)
37  return acc
38 
python.TRT_RawDataByteStreamCnvConfig.TRTRawDataProviderCfg
def TRTRawDataProviderCfg(flags, name="TRTRawDataProvider", **kwargs)
Definition: TRT_RawDataByteStreamCnvConfig.py:19
RegSelToolConfig.regSelTool_TRT_Cfg
def regSelTool_TRT_Cfg(flags)
Definition: RegSelToolConfig.py:115
python.TRT_RawDataByteStreamCnvConfig.TRT_CablingSvcCfg
def TRT_CablingSvcCfg(flags)
Definition: TRT_RawDataByteStreamCnvConfig.py:8
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.TRT_RawDataByteStreamCnvConfig.TrigTRTRawDataProviderCfg
def TrigTRTRawDataProviderCfg(AthConfigFlags flags, str RoIs, **kwargs)
Definition: TRT_RawDataByteStreamCnvConfig.py:39
python.IOVDbSvcConfig.addFolders
def addFolders(flags, folderStrings, detDb=None, className=None, extensible=False, tag=None, db=None, modifiers='')
Definition: IOVDbSvcConfig.py:72
python.TRT_RawDataByteStreamCnvConfig.TRTOverlayRawDataProviderAlgCfg
def TRTOverlayRawDataProviderAlgCfg(flags, name="TRTRawDataProvider", **kwargs)
Definition: TRT_RawDataByteStreamCnvConfig.py:56