7 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
8 from AthenaConfiguration.ComponentFactory
import CompFactory
9 from OutputStreamAthenaPool.OutputStreamConfig
import addToESD, addToAOD
13 if inputFlags.LAr.DT.storeET_ID:
14 from LArByteStream.LArRawSCDataReadingConfig
import LArRawSCDataReadingCfg
16 acc.addCondAlgo(CompFactory.CaloSuperCellAlignCondAlg(
'CaloSuperCellAlignCondAlg'))
17 from LArCellRec.LArRAWtoSuperCellConfig
import LArRAWtoSuperCellCfg
18 acc.merge(
LArRAWtoSuperCellCfg(inputFlags,mask=inputFlags.LAr.DT.doSCMasking, SCellContainerOut=inputFlags.LAr.DT.ET_IDKey) )
20 acc.merge(
addToESD(inputFlags, [
"CaloCellContainer#"+inputFlags.LAr.DT.ET_IDKey]))
21 acc.merge(
addToAOD(inputFlags, [
"CaloCellContainer#"+inputFlags.LAr.DT.ET_IDKey]))
24 if inputFlags.LAr.DT.storeET_additional:
25 from LArByteStream.LArRawSCDataReadingConfig
import LArRawSCDataReadingCfg
27 acc.addCondAlgo(CompFactory.CaloSuperCellAlignCondAlg(
'CaloSuperCellAlignCondAlg'))
28 from LArCellRec.LArRAWtoSuperCellConfig
import LArRAWtoSuperCellCfg
29 acc.merge(
LArRAWtoSuperCellCfg(inputFlags,name=
'LArRAWtoSuperCellPlus', mask=inputFlags.LAr.DT.doSCMasking, SCellContainerOut=inputFlags.LAr.DT.ET_PlusKey, bcidShift=1) )
30 outContainers = [
"CaloCellContainer#"+inputFlags.LAr.DT.ET_PlusKey]
31 acc.merge(
LArRAWtoSuperCellCfg(inputFlags,name=
'LArRAWtoSuperCellMinus', mask=inputFlags.LAr.DT.doSCMasking, SCellContainerOut=inputFlags.LAr.DT.ET_MinusKey, bcidShift=-1) )
32 outContainers += [
"CaloCellContainer#"+inputFlags.LAr.DT.ET_MinusKey]
34 acc.merge(
addToESD(inputFlags,outContainers))
35 acc.merge(
addToAOD(inputFlags,outContainers))
41 if __name__==
'__main__':
43 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
45 from AthenaCommon.Logging
import log
52 flags.Input.Files = [
"/eos/home-p/pavol/data/data23_13p6TeV.00452669.express_express.merge.RAW._lb0987._SFO-ALL._0001.1"]
54 flags.LAr.DT.storeET_ID =
True
55 flags.LAr.DT.storeET_additional =
True
59 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
61 from CaloRec.CaloRecoConfig
import CaloRecoCfg
68 from AthenaConfiguration.ComponentFactory
import CompFactory
69 cfg.addEventAlgo(CompFactory.CaloCellDumper(InputContainer=flags.LAr.DT.ET_IDKey,EnergyCut=1*GeV),sequenceName=
"AthAlgSeq")
71 cfg.getService(
"MessageSvc").OutputLevel=DEBUG
72 cfg.getService(
"StoreGateSvc").Dump=
True
77 f=
open(
"LArSuperCell.pkl",
"wb")