3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
10 histsvc = CompFactory.THistSvc(name=
"THistSvc",
11 Output=[ f
"{output_name} DATAFILE='{flags.Output.HISTFileName}' OPT='RECREATE'" ])
12 acc.addService(histsvc)
18 from PixelGeoModel.PixelGeoModelConfig
import PixelSimulationGeometryCfg
21 kwargs.setdefault(
'CollectionName',
'BLM_Hits')
22 kwargs.setdefault(
'HistPath',
'/SiHitAnalysis/')
23 acc.addEventAlgo(CompFactory.SiHitAnalysis(name, **kwargs))
31 from PixelGeoModel.PixelGeoModelConfig
import PixelSimulationGeometryCfg
34 kwargs.setdefault(
'CollectionName',
'BCM_Hits')
35 kwargs.setdefault(
'HistPath',
'/SiHitAnalysis/')
36 acc.addEventAlgo(CompFactory.SiHitAnalysis(name, **kwargs))
44 from PixelGeoModel.PixelGeoModelConfig
import PixelSimulationGeometryCfg
47 kwargs.setdefault(
'CollectionName',
'PixelHits')
48 kwargs.setdefault(
'HistPath',
'/SiHitAnalysis/')
49 acc.addEventAlgo(CompFactory.SiHitAnalysis(name, **kwargs))
57 from SCT_GeoModel.SCT_GeoModelConfig
import SCT_SimulationGeometryCfg
60 kwargs.setdefault(
'CollectionName',
'SCT_Hits')
61 kwargs.setdefault(
'HistPath',
'/SiHitAnalysis/')
62 acc.addEventAlgo(CompFactory.SiHitAnalysis(name, **kwargs))
70 from TRT_GeoModel.TRT_GeoModelConfig
import TRT_SimulationGeometryCfg
73 kwargs.setdefault(
'HistPath',
'/TRTHitAnalysis/')
74 acc.addEventAlgo(CompFactory.TRTHitAnalysis(name, **kwargs))
82 from PixelGeoModelXml.ITkPixelGeoModelConfig
import ITkPixelSimulationGeometryCfg
85 kwargs.setdefault(
'CollectionName',
'ITkPixelHits')
86 kwargs.setdefault(
'HistPath',
'/SiHitAnalysis/histos/')
87 kwargs.setdefault(
'NtuplePath',
'/SiHitAnalysis/ntuples/')
88 acc.addEventAlgo(CompFactory.SiHitAnalysis(name, **kwargs))
96 from StripGeoModelXml.ITkStripGeoModelConfig
import ITkStripSimulationGeometryCfg
99 kwargs.setdefault(
'CollectionName',
'ITkStripHits')
100 kwargs.setdefault(
'HistPath',
'/SiHitAnalysis/histos/')
101 kwargs.setdefault(
'NtuplePath',
'/SiHitAnalysis/ntuples/')
102 acc.addEventAlgo(CompFactory.SiHitAnalysis(name, **kwargs))
110 if flags.HGTD.Geometry.useGeoModelXml:
111 from HGTD_GeoModelXml.HGTD_GeoModelConfig
import HGTD_SimulationGeometryCfg
113 from HGTD_GeoModel.HGTD_GeoModelConfig
import HGTD_SimulationGeometryCfg
116 kwargs.setdefault(
'CollectionName',
'HGTD_Hits')
117 kwargs.setdefault(
'HistPath',
'/SiHitAnalysis/histos/')
118 kwargs.setdefault(
'NtuplePath',
'/SiHitAnalysis/ntuples/')
119 acc.addEventAlgo(CompFactory.SiHitAnalysis(name, **kwargs))
127 from PLRGeoModelXml.PLR_GeoModelConfig
import PLR_GeometryCfg
130 kwargs.setdefault(
'CollectionName',
'PLR_Hits')
131 kwargs.setdefault(
'HistPath',
'/SiHitAnalysis/histos/')
132 kwargs.setdefault(
'NtuplePath',
'/SiHitAnalysis/ntuples/')
133 acc.addEventAlgo(CompFactory.SiHitAnalysis(name, **kwargs))
141 from BCMPrimeGeoModelXml.BCMPrimeGeoModelConfig
import BCMPrimeGeometryCfg
144 kwargs.setdefault(
'CollectionName',
'BCMPrimeHits')
145 kwargs.setdefault(
'HistPath',
'/SiHitAnalysis/histos/')
146 kwargs.setdefault(
'NtuplePath',
'/SiHitAnalysis/ntuples/')
147 acc.addEventAlgo(CompFactory.SiHitAnalysis(name, **kwargs))
157 if flags.Detector.EnableITkPixel:
160 if flags.Detector.EnableITkStrip:
163 if flags.Detector.EnableHGTD:
166 if flags.Detector.EnablePLR:
169 if flags.Detector.EnableBCMPrime:
179 if flags.Detector.GeometryLAr:
180 from LArGeoAlgsNV.LArGMConfig
import LArGMCfg
182 kwargs.setdefault(
"UseLAr", flags.Detector.GeometryLAr)
184 if flags.Detector.GeometryTile:
185 from TileGeoModel.TileGMConfig
import TileGMCfg
187 kwargs.setdefault(
"UseTile", flags.Detector.GeometryTile)
189 kwargs.setdefault(
'HistPath', f
'/{name}/')
190 acc.addEventAlgo(CompFactory.CaloHitAnalysis(name, **kwargs))
197 from MuonConfig.MuonGeometryConfig
import MuonGeoModelCfg
200 kwargs.setdefault(
'HistPath', f
'/{name}/')
201 acc.addEventAlgo(CompFactory.RPCHitAnalysis(name, **kwargs))
208 from MuonConfig.MuonGeometryConfig
import MuonGeoModelCfg
211 kwargs.setdefault(
'HistPath', f
'/{name}/')
212 acc.addEventAlgo(CompFactory.MDTHitAnalysis(name, **kwargs))
219 from MuonConfig.MuonGeometryConfig
import MuonGeoModelCfg
222 kwargs.setdefault(
'HistPath', f
'/{name}/')
223 acc.addEventAlgo(CompFactory.CSCHitAnalysis(name, **kwargs))
230 from MuonConfig.MuonGeometryConfig
import MuonGeoModelCfg
233 kwargs.setdefault(
'HistPath', f
'/{name}/')
234 acc.addEventAlgo(CompFactory.TGCHitAnalysis(name, **kwargs))
241 from MuonConfig.MuonGeometryConfig
import MuonGeoModelCfg
244 kwargs.setdefault(
'HistPath', f
'/{name}/')
245 acc.addEventAlgo(CompFactory.MMHitAnalysis(name, **kwargs))
252 from MuonConfig.MuonGeometryConfig
import MuonGeoModelCfg
255 kwargs.setdefault(
'HistPath', f
'/{name}/')
256 acc.addEventAlgo(CompFactory.sTGCHitAnalysis(name, **kwargs))
266 kwargs.setdefault(
'HistPath', f
'/{name}/')
267 acc.addEventAlgo(CompFactory.ALFAHitAnalysis(name, **kwargs))
276 kwargs.setdefault(
'HistPath', f
'/{name}/')
277 acc.addEventAlgo(CompFactory.AFPHitAnalysis(name, **kwargs))
286 kwargs.setdefault(
'HistPath', f
'/{name}/')
287 acc.addEventAlgo(CompFactory.LucidHitAnalysis(name, **kwargs))
296 kwargs.setdefault(
'HistPath', f
'/{name}/')
297 acc.addEventAlgo(CompFactory.ZDCHitAnalysis(name, **kwargs))
307 kwargs.setdefault(
'HistPath', f
'/{name}/')
308 acc.addEventAlgo(CompFactory.TrackRecordAnalysis(name, **kwargs))
317 kwargs.setdefault(
'HistPath', f
'/{name}/')
318 acc.addEventAlgo(CompFactory.TruthHitAnalysis(name, **kwargs))