ATLAS Offline Software
LArRawChannelDump.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2 from AthenaConfiguration.ComponentFactory import CompFactory
3 
4 if __name__ == "__main__":
5 
6  from AthenaConfiguration.AllConfigFlags import initConfigFlags
7  flags = initConfigFlags()
8  flags.Input.Files = ["myRDO.pool.root",]
9  flags.lock()
10 
11  from AthenaConfiguration.MainServicesConfig import MainServicesCfg
12  from AthenaPoolCnvSvc.PoolReadConfig import PoolReadCfg
13 
14  cfg=MainServicesCfg(flags)
15  cfg.merge(PoolReadCfg(flags))
16 
17  from LArGeoAlgsNV.LArGMConfig import LArGMCfg
18  cfg.merge(LArGMCfg(flags))
19  from LArCabling.LArCablingConfig import LArOnOffIdMappingCfg
20  cfg.merge(LArOnOffIdMappingCfg(flags))
21  cfg.addEventAlgo(CompFactory.DumpLArRawChannels(NtupStream="LARRC",OutputFileName="",ToLog=False))
22 
23  cfg.addService(CompFactory.THistSvc(Output = ["LARRC DATAFILE='LARRC.root', OPT='RECREATE'"]))
24 
25 
26  cfg.run(-1)
27 
28 
python.MainServicesConfig.MainServicesCfg
def MainServicesCfg(flags, LoopMgr='AthenaEventLoopMgr')
Definition: MainServicesConfig.py:260
LArCablingConfig.LArOnOffIdMappingCfg
def LArOnOffIdMappingCfg(configFlags)
Definition: LArCablingConfig.py:62
LArGMConfig.LArGMCfg
def LArGMCfg(flags)
Definition: LArGMConfig.py:8
python.AllConfigFlags.initConfigFlags
def initConfigFlags()
Definition: AllConfigFlags.py:19
python.PoolReadConfig.PoolReadCfg
def PoolReadCfg(flags)
Definition: PoolReadConfig.py:69