ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
AtlasTest
DatabaseTest
AthenaPoolTest
python
InDetRawDataReader.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2
3
from
AthenaConfiguration.AllConfigFlags
import
initConfigFlags
4
from
AthenaConfiguration.DetectorConfigFlags
import
enableDetectors
5
from
AthenaConfiguration.ComponentFactory
import
CompFactory
6
from
AthenaCommon.Constants
import
DEBUG
7
8
# Setup flags
9
flags = initConfigFlags()
10
flags.Common.MsgSuppression =
False
11
flags.Input.Files = [
"myInDetRDO.pool.root"
]
12
flags.Input.ProcessingTags = []
# to avoid input file peeking
13
flags.GeoModel.AtlasVersion =
"ATLAS-R2-2016-01-00-01"
14
flags.IOVDb.GlobalTag =
"OFLCOND-SDR-BS7T-04-00"
15
enableDetectors(flags, [
"Pixel"
,
"SCT"
,
"TRT"
])
16
flags.lock()
17
18
# Main services
19
from
AthenaConfiguration.MainServicesConfig
import
MainServicesCfg
20
acc = MainServicesCfg(flags)
21
22
# GeoModel
23
from
AtlasGeoModel.GeoModelConfig
import
GeoModelCfg
24
acc.merge( GeoModelCfg(flags) )
25
26
# Pool reading
27
from
AthenaPoolCnvSvc.PoolReadConfig
import
PoolReadCfg
28
acc.merge( PoolReadCfg(flags) )
29
30
acc.addEventAlgo( CompFactory.InDetRawDataFakeReader(OutputLevel = DEBUG),
31
sequenceName =
'AthAlgSeq'
)
32
33
# Run
34
import
sys
35
sc = acc.run(flags.Exec.MaxEvents)
36
sys.exit(sc.isFailure())
Constants
Generated on
for ATLAS Offline Software by
1.17.0