ATLAS Offline Software
LCOOCConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2 
3 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory import CompFactory
5 
6 def GetLCOOCCfg(flags):
7 
8  result = ComponentAccumulator()
9 
10  GetLCO = CompFactory.GetLCOutOfCluster("GetLCO", ClusterCollectionName = "CaloTopoClusters")
11  GetLCO.OutputFileName = flags.LCW.outFileNameLCO
12 
13  #
14  # Example how to set dimensions for out-of-cluster corrections:
15  #
16  #from AthenaCommon.SystemOfUnits import deg, GeV, MeV
17  #from AthenaCommon.AlgSequence import AlgSequence
18  #from math import ( pi as m_pi, log10 as m_log10 )
19  #GetLCO.OutOfClusterDimensions = {
20  # 'side': ('side',-1.5,1.5,1),
21  # '|eta|': ('|eta|',0.,5.,50),
22  # 'phi': ('phi',-m_pi,m_pi,1),
23  # 'log10(E_clus (MeV))': ('log10(E_clus (MeV))',m_log10(200*MeV),m_log10(1*TeV),22),
24  # 'log10(lambda_clus (mm))': ('log10(lambda_clus (mm))',0.0,4.0,20),
25  # 'weight': ('weight',0.,5.,1)}
26  #
27 
28  result.addEventAlgo(GetLCO)
29 
30  return result
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
LCOOCConfig.GetLCOOCCfg
def GetLCOOCCfg(flags)
Definition: LCOOCConfig.py:6