ATLAS Offline Software
LArDigits2NtupleConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2 
3 from AthenaConfiguration.ComponentFactory import CompFactory
4 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
5 
6 def LArDigits2NtupleCfg(flags, isEMF=False, **kwargs):
8  if 'isSC' in kwargs and kwargs['isSC']:
9  if isEMF:
10  # FIXME there could be also another digits types....
11  cfg.addEventAlgo(CompFactory.LArRawSCCalibDataReadingAlg(LArSCAccCalibDigitKey = flags.LArSCDump.accdigitsKey,
12  CalibCablingKeyLeg = "LArCalibLineMap",
13  OnOffMapLeg = "LArOnOffIdMap",
14  LATOMEDecoder = CompFactory.LArLATOMEDecoder("LArLATOMEDecoder")))
15  else:
16  from LArByteStream.LArRawSCDataReadingConfig import LArRawSCDataReadingCfg
17  cfg.merge(LArRawSCDataReadingCfg(flags))
18  else:
19  if isEMF:
20  Digit = kwargs['ContainerKey'] if 'ContainerKey' in kwargs else ""
21  accDigit = kwargs['AccContainerKey'] if 'AccContainerKey' in kwargs else ""
22  accCalibDigit = kwargs['AccCalibContainerKey'] if 'AccCalibContainerKey'in kwargs else ""
23  from LArByteStream.LArRawCalibDataReadingConfig import LArRawCalibDataReadingCfg
24  cfg.merge(LArRawCalibDataReadingCfg(flags,gain = flags.LArSCDump.digitsKey,
25  doDigit = Digit,doAccDigit = accDigit,
26  doAccCalibDigit = accCalibDigit))
27  else:
28  from LArByteStream.LArRawDataReadingConfig import LArRawDataReadingCfg
29  cfg.merge(LArRawDataReadingCfg(flags))
30 
31  cfg.addEventAlgo(CompFactory.LArDigits2Ntuple("LArDigits2Ntuple",**kwargs))
32 
33  return cfg
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.LArRawDataReadingConfig.LArRawDataReadingCfg
def LArRawDataReadingCfg(flags, **kwargs)
Definition: LArRawDataReadingConfig.py:11
python.LArRawSCDataReadingConfig.LArRawSCDataReadingCfg
def LArRawSCDataReadingCfg(configFlags, **kwargs)
Definition: LArRawSCDataReadingConfig.py:8
python.LArRawCalibDataReadingConfig.LArRawCalibDataReadingCfg
def LArRawCalibDataReadingCfg(configFlags, gain="HIGH", doAccDigit=False, doAccCalibDigit=False, doCalibDigit=False, doDigit=False)
Definition: LArRawCalibDataReadingConfig.py:8
LArDigits2NtupleConfig.LArDigits2NtupleCfg
def LArDigits2NtupleCfg(flags, isEMF=False, **kwargs)
Definition: LArDigits2NtupleConfig.py:6