ATLAS Offline Software
CaloBCIDCoeffsCondAlgSCConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
2 
3 # File: CaloRec/python/CaloBCIDCoeffsCondAlgSCConfig.py
4 # Purpose: Configure CaloBCIDCoeffsCondAlgSC.
5 
6 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
7 from AthenaConfiguration.ComponentFactory import CompFactory
8 
9 def CaloBCIDCoeffsCondAlgSCCfg (flags, name = 'CaloBCIDCoeffsCondAlgSC', **kwargs):
10  acc = ComponentAccumulator()
11 
12  if not flags.Input.isMC:
13  #Data case
14  pass
15  else:
16  #MC case
17  kwargs.setdefault("MCSymKey", '')
18 
19  from LArRecUtils.LArRecUtilsConfig import LArOFCSCCondAlgCfg
20  acc.merge(LArOFCSCCondAlgCfg(flags))
21  kwargs.setdefault("OFCKey", 'LArOFCSC')
22 
23  requiredConditions=["PileupAverageSC","ShapeSC"]
24  from LArConfiguration.LArElecCalibDBConfig import LArElecCalibDBMCSCCfg
25  acc.merge(LArElecCalibDBMCSCCfg(flags,requiredConditions))
26  #conddb.addFolder("LAR_OFL","/LAR/ElecCalibMCSC/LArPileupAverage<tag>LARElecCalibMCSCLArPileupAverage-IOVDEP-00</tag>",className="CondAttrListCollection"
27  kwargs.setdefault("MinBiasAvgKey", "LArPileupAverageSC")
28  kwargs.setdefault("ShapeKey", "LArShapeSC")
29 
30  kwargs.setdefault("OutputCoeffsKey", 'CaloBCIDCoeffsSC')
31 
32  kwargs.setdefault("IsSuperCell", True)
33 
34  acc.addCondAlgo (CompFactory.CaloBCIDCoeffsCondAlg(name, **kwargs))
35 
36  return acc
python.LArElecCalibDBConfig.LArElecCalibDBMCSCCfg
def LArElecCalibDBMCSCCfg(flags, folders, detdb="LAR_OFL")
Definition: LArElecCalibDBConfig.py:241
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.LArRecUtilsConfig.LArOFCSCCondAlgCfg
def LArOFCSCCondAlgCfg(flags, name='LArOFCSCCondAlg', **kwargs)
Definition: LArRecUtilsConfig.py:53
python.CaloBCIDCoeffsCondAlgSCConfig.CaloBCIDCoeffsCondAlgSCCfg
def CaloBCIDCoeffsCondAlgSCCfg(flags, name='CaloBCIDCoeffsCondAlgSC', **kwargs)
Definition: CaloBCIDCoeffsCondAlgSCConfig.py:9