ATLAS Offline Software
PileUpPreTrackingConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 # Author: William L. (william.axel.leight@cern.ch)
3 # Author: FY T. (fang-ying.tsai@cern.ch)
4 
5 from AthenaConfiguration.MainServicesConfig import MainServicesCfg
6 
7 def PreTrackingCfg(flags):
8  acc = MainServicesCfg(flags)
9 
10  # ----------------------------------------------------------------
11  # Pool input
12  # ----------------------------------------------------------------
13  # Load input collection list from POOL metadata
14  from SGComps.SGInputLoaderConfig import SGInputLoaderCfg
15  acc.merge(SGInputLoaderCfg(flags, Load=[('xAOD::EventInfo', f'StoreGateSvc+{flags.Overlay.BkgPrefix}EventInfo')]))
16 
17  from AthenaPoolCnvSvc.PoolReadConfig import PoolReadCfg
18  acc.merge(PoolReadCfg(flags))
19  if flags.Detector.EnableCalo:
20  #In the CaloRecoCfg, TileRawChannelMakerCfg and LArRawChannelBuilderAlgCfg are merged only if the input format is BS
21  from TileRecUtils.TileRawChannelMakerConfig import TileRawChannelMakerCfg
22  acc.merge(TileRawChannelMakerCfg(flags))
23  from LArROD.LArRawChannelBuilderAlgConfig import LArRawChannelBuilderAlgCfg
24  acc.merge(LArRawChannelBuilderAlgCfg(flags))
25  from CaloRec.CaloRecoConfig import CaloRecoCfg
26  acc.merge(CaloRecoCfg(flags))
27 
28  if flags.Detector.GeometryITk:
29  from InDetConfig.ITkTrackRecoConfig import ITkTrackRecoCfg
30  acc.merge(ITkTrackRecoCfg(flags))
31  else:
32  from InDetConfig.TrackRecoConfig import InDetTrackRecoCfg
33  acc.merge(InDetTrackRecoCfg(flags))
34 
35  if flags.Detector.GeometryITk:
36  itemsToRecord= ['TrackCollection#CombinedITkTracks', 'TrackCollection#ResolvedConversionTracks', 'InDet::PixelClusterContainer#ITkPixelClusters', "InDet::SCT_ClusterContainer#ITkStripClusters"]
37  else:
38  itemsToRecord = ['TrackCollection#CombinedInDetTracks', 'TrackCollection#DisappearingTracks', 'TrackCollection#ResolvedForwardTracks', 'TrackCollection#ExtendedLargeD0Tracks', 'InDet::TRT_DriftCircleContainer#TRT_DriftCircles', "InDet::PixelClusterContainer#PixelClusters", "InDet::SCT_ClusterContainer#SCT_Clusters"]
39  from OutputStreamAthenaPool.OutputStreamConfig import OutputStreamCfg
40  acc.merge(OutputStreamCfg(flags, "RDO", ItemList=itemsToRecord, takeItemsFromInput=True))
41  # Add in-file MetaData
42  from xAODMetaDataCnv.InfileMetaDataConfig import SetupMetaDataForStreamCfg
43  from AthenaConfiguration.Enums import MetadataCategory
44 
45  acc.merge(
47  flags,
48  "RDO",
49  createMetadata=[
50  MetadataCategory.IOVMetaData,
51  ],
52  )
53  )
54  return acc
python.ITkTrackRecoConfig.ITkTrackRecoCfg
ComponentAccumulator ITkTrackRecoCfg(flags)
Main ITk tracking config #####################.
Definition: ITkTrackRecoConfig.py:533
python.CaloRecoConfig.CaloRecoCfg
def CaloRecoCfg(flags, clustersname=None)
Definition: CaloRecoConfig.py:9
python.OutputStreamConfig.OutputStreamCfg
def OutputStreamCfg(flags, streamName, ItemList=[], MetadataItemList=[], disableEventTag=False, trigNavThinningSvc=None, takeItemsFromInput=False, extendProvenanceRecord=True, AcceptAlgs=[], HelperTools=[])
Definition: OutputStreamConfig.py:12
python.LArRawChannelBuilderAlgConfig.LArRawChannelBuilderAlgCfg
def LArRawChannelBuilderAlgCfg(flags, **kwargs)
Definition: LArRawChannelBuilderAlgConfig.py:9
SGInputLoaderConfig.SGInputLoaderCfg
def SGInputLoaderCfg(flags, Load=None, **kwargs)
Definition: SGInputLoaderConfig.py:7
python.MainServicesConfig.MainServicesCfg
def MainServicesCfg(flags, LoopMgr='AthenaEventLoopMgr')
Definition: MainServicesConfig.py:260
python.TrackRecoConfig.InDetTrackRecoCfg
def InDetTrackRecoCfg(flags)
Main ID tracking config #####################.
Definition: TrackRecoConfig.py:791
PileUpPreTrackingConfig.PreTrackingCfg
def PreTrackingCfg(flags)
Definition: PileUpPreTrackingConfig.py:7
TileRawChannelMakerConfig.TileRawChannelMakerCfg
def TileRawChannelMakerCfg(flags, **kwargs)
Definition: TileRawChannelMakerConfig.py:10
InfileMetaDataConfig.SetupMetaDataForStreamCfg
def SetupMetaDataForStreamCfg(flags, streamName="", AcceptAlgs=None, createMetadata=None, propagateMetadataFromInput=True, *args, **kwargs)
Definition: InfileMetaDataConfig.py:219
python.PoolReadConfig.PoolReadCfg
def PoolReadCfg(flags)
Definition: PoolReadConfig.py:69