17 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
18 from AthenaConfiguration.ComponentFactory
import CompFactory
21 outputStreamName =
"ExampleCond"
22 outputFileName =
"ROOTTREE:SimplePoolFile4.root"
27 flags.Input.Files = [
"SimplePoolFile1.root"]
28 flags.addFlag(f
"Output.{outputStreamName}FileName", outputFileName)
29 flags.Exec.MaxEvents = -1
30 flags.Common.MsgSuppression =
False
31 flags.Exec.DebugMessageComponents = [
"PoolSvc",
"AthenaPoolCnvSvc",
"AthenaPoolAddressProviderSvc",
"MetaDataSvc"]
35 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
38 from AthenaPoolExampleAlgorithms.AthenaPoolExampleConfig
import AthenaPoolExampleReadCfg, AthenaPoolExampleWriteCfg
41 writeCatalog =
"file:Catalog1.xml",
42 disableEventTag = noTag) )
45 acc.addEventAlgo( CompFactory.AthPoolEx.ReadData(
"ReadData", OutputLevel = DEBUG) )
46 acc.addEventAlgo( CompFactory.AthPoolEx.WriteCond(
"WriteCond",
47 DetStore = acc.getService(
"DetectorStore"),
48 ConditionName =
"PedestalWriteData",
49 Weight = 0.0, Offset = 0.0,
50 OutputLevel = DEBUG) )
52 from RegistrationServices.OutputConditionsAlgConfig
import OutputConditionsAlgCfg
54 ObjectList = [
"ExampleHitContainer#PedestalWriteData"],
61 sc = acc.run(flags.Exec.MaxEvents)
62 sys.exit(sc.isFailure())