ATLAS Offline Software
CaloBCIDLumiCondAlgSCConfig.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/CaloBCIDLumiCondAlgSCConfig.py
4 # Purpose: Configure CaloBCIDLumiCondAlgSC.
5 
6 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
7 from AthenaConfiguration.ComponentFactory import CompFactory
8 
9 
11  result = ComponentAccumulator()
12 
13  from CaloRec.CaloBCIDCoeffsCondAlgSCConfig import CaloBCIDCoeffsCondAlgSCCfg
14  result.merge (CaloBCIDCoeffsCondAlgSCCfg (flags))
15 
16  if not flags.Input.isMC:
17  from LumiBlockComps.LuminosityCondAlgConfig import LuminosityCondAlgCfg
18  result.merge (LuminosityCondAlgCfg (flags))
19 
20  else:
21  from LumiBlockComps.BunchCrossingCondAlgConfig import BunchCrossingCondAlgCfg
22  result.merge (BunchCrossingCondAlgCfg(flags))
23 
24 
25  CaloBCIDLumiCondAlg = CompFactory.CaloBCIDLumiCondAlg # CaloRec
26  alg = CaloBCIDLumiCondAlg ('CaloBCIDLumiCondAlgSC',
27  CoeffsKey = 'CaloBCIDCoeffsSC',
28  BunchCrossingCondDataKey = 'BunchCrossingData',
29  LuminosityCondDataKey = 'LuminosityCondData',
30  isMC = flags.Input.isMC,
31  OutputLumiKey = 'CaloBCIDLumiSC')
32  result.addCondAlgo (alg)
33 
34  return result
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.CaloBCIDLumiCondAlgSCConfig.CaloBCIDLumiCondAlgSCCfg
def CaloBCIDLumiCondAlgSCCfg(flags)
Definition: CaloBCIDLumiCondAlgSCConfig.py:10
python.BunchCrossingCondAlgConfig.BunchCrossingCondAlgCfg
def BunchCrossingCondAlgCfg(flags)
Definition: BunchCrossingCondAlgConfig.py:8