ATLAS Offline Software
Functions
ISF_ActsToolsConfig Namespace Reference

Functions

def ActsFatrasWriteHandlerCfg (flags, name="ActsFatrasWriteHandler", **kwargs)
 
def ActsFatrasSimToolCfg (flags, name="ISF_ActsFatrasSimTool", **kwargs)
 

Function Documentation

◆ ActsFatrasSimToolCfg()

def ISF_ActsToolsConfig.ActsFatrasSimToolCfg (   flags,
  name = "ISF_ActsFatrasSimTool",
**  kwargs 
)
Return ISF_FatrasSimHitCreatorID configured with ComponentAccumulator

Definition at line 45 of file ISF_ActsToolsConfig.py.

45 def ActsFatrasSimToolCfg(flags, name="ISF_ActsFatrasSimTool", **kwargs):
46  """Return ISF_FatrasSimHitCreatorID configured with ComponentAccumulator"""
47  acc = ComponentAccumulator()
48  mlog = logging.getLogger(name)
49  mlog.info('Start configuration ISF_ActsFatrasSimTool')
50  from ActsConfig.ActsGeometryConfig import ActsTrackingGeometryToolCfg
51  kwargs.setdefault('TrackingGeometryTool', acc.popToolsAndMerge(ActsTrackingGeometryToolCfg(flags)))
52 
53  kwargs.setdefault("MaxSteps", 2000)
54 
55  # added https://its.cern.ch/jira/browse/ATLASSIM-7245
56  from ISF_Services.ISF_ServicesConfig import TruthServiceCfg
57  kwargs.setdefault("TruthRecordService", acc.getPrimaryAndMerge(TruthServiceCfg(flags)).name)
58  from RngComps.RngCompsConfig import AthRNGSvcCfg
59  kwargs.setdefault("RNGService", acc.getPrimaryAndMerge(AthRNGSvcCfg(flags)).name)
60 
61  kwargs.setdefault("ActsFatrasWriteHandler", acc.popToolsAndMerge(ActsFatrasWriteHandlerCfg(flags)))
62 
63  acc.setPrivateTools(CompFactory.ISF.ActsFatrasSimTool(name, **kwargs))
64  return acc

◆ ActsFatrasWriteHandlerCfg()

def ISF_ActsToolsConfig.ActsFatrasWriteHandlerCfg (   flags,
  name = "ActsFatrasWriteHandler",
**  kwargs 
)
Return ActsFatrasWriteHandler configured with ComponentAccumulator

Definition at line 11 of file ISF_ActsToolsConfig.py.

11 def ActsFatrasWriteHandlerCfg(flags, name="ActsFatrasWriteHandler", **kwargs):
12  """Return ActsFatrasWriteHandler configured with ComponentAccumulator"""
13  acc = ComponentAccumulator()
14  mlog = logging.getLogger(name)
15  mlog.info('Start configuration ActsFatrasWriteHandler')
16 
17  bare_collection_name = "PixelHits"
18  mergeable_collection_suffix = "_Fatras"
19  merger_input_property = "PixelHits"
20  region = "ID"
21  acc_pixel, pixel_hits_collection_name = CollectionMergerCfg(flags,
22  bare_collection_name,
23  mergeable_collection_suffix,
24  merger_input_property,
25  region)
26  acc.merge(acc_pixel)
27 
28  bare_collection_name = "SCT_Hits"
29  mergeable_collection_suffix = "_Fatras"
30  merger_input_property = "SCTHits"
31  region = "ID"
32  acc_sct, sct_hits_collection_name = CollectionMergerCfg(flags,
33  bare_collection_name,
34  mergeable_collection_suffix,
35  merger_input_property,
36  region)
37  acc.merge(acc_sct)
38 
39  kwargs.setdefault("PixelCollectionName", pixel_hits_collection_name)
40  kwargs.setdefault("SCTCollectionName", sct_hits_collection_name)
41 
42  acc.setPrivateTools(CompFactory.ActsFatrasWriteHandler(name=name, **kwargs))
43  return acc
44 
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
ISF_ActsToolsConfig.ActsFatrasWriteHandlerCfg
def ActsFatrasWriteHandlerCfg(flags, name="ActsFatrasWriteHandler", **kwargs)
Definition: ISF_ActsToolsConfig.py:11
ActsGeometryConfig.ActsTrackingGeometryToolCfg
ComponentAccumulator ActsTrackingGeometryToolCfg(flags, str name="ActsTrackingGeometryTool")
Definition: ActsGeometryConfig.py:100
ISF_ServicesConfig.TruthServiceCfg
def TruthServiceCfg(flags, **kwargs)
Definition: ISF_ServicesConfig.py:80
ISF_ActsToolsConfig.ActsFatrasSimToolCfg
def ActsFatrasSimToolCfg(flags, name="ISF_ActsFatrasSimTool", **kwargs)
Definition: ISF_ActsToolsConfig.py:45
CollectionMergerConfig.CollectionMergerCfg
def CollectionMergerCfg(flags, bare_collection_name, mergeable_collection_suffix, merger_input_property, region)
Definition: CollectionMergerConfig.py:66
RngCompsConfig.AthRNGSvcCfg
def AthRNGSvcCfg(flags, name="AthRNGSvc")
Definition: RngCompsConfig.py:51