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