ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigConfiguration
TrigConfxAOD
python
TrigConfxAODConfig.py
Go to the documentation of this file.
1
#
2
# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
#
4
5
def
getxAODConfigSvc
(flags):
6
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
7
from
AthenaConfiguration.ComponentFactory
import
CompFactory
8
9
acc = ComponentAccumulator()
10
11
cfgsvc = CompFactory.TrigConf.xAODConfigSvc(
'xAODConfigSvc'
)
12
# We serve in-file metadata where possible. If it does not exist (e.g. RAWtoALL), then it is obtained from the Conditions and Detector stores
13
cfgsvc.UseInFileMetadata = flags.Trigger.triggerConfig ==
'INFILE'
14
acc.addService(cfgsvc, primary=
True
)
15
16
if
flags.Trigger.triggerConfig ==
'INFILE'
:
17
from
AthenaServices.MetaDataSvcConfig
import
MetaDataSvcCfg
18
acc.merge(MetaDataSvcCfg(flags))
19
else
:
# All other possilbe access methods are via Det store or Cond store. For now the svc will forward the requests (but we should update clients to make direct calls)
20
from
TrigConfigSvc.TrigConfigSvcCfg
import
TrigConfigSvcCfg
21
acc.merge(TrigConfigSvcCfg(flags))
22
23
return
acc
TrigConfxAODConfig.getxAODConfigSvc
getxAODConfigSvc(flags)
Definition
TrigConfxAODConfig.py:5
Generated on
for ATLAS Offline Software by
1.17.0