ATLAS Offline Software
LCClassificationConfig.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 GetLCCCfg(flags):
7 
8  result = ComponentAccumulator()
9 
10  GetLCC = CompFactory.GetLCClassification("GetLCC",ClusterCollectionName = "CaloTopoClusters")
11  GetLCC.OutputFileName = flags.LCW.outFileNameLCC
12 
13  #
14  # Example how to set dimensions for classiciation:
15  #
16  #from AthenaCommon.SystemOfUnits import deg, GeV, MeV
17  #from math import ( pi as m_pi, log10 as m_log10 )
18  #GetLCC.ClassificationDimensions = {
19  # 'side': ('side',-1.5,1.5,1),
20  # '|eta|': ('|eta|',0.,5.,25),
21  # 'phi': ('phi',-m_pi,m_pi,1),
22  # 'log10(E_clus (MeV))': ('log10(E_clus (MeV))',m_log10(200*MeV),m_log10(1*TeV),13),
23  # 'log10(<rho_cell (MeV/mm^3)>)-log10(E_clus (MeV))': ('log10(<rho_cell (MeV/mm^3)>)-log10(E_clus (MeV))',-9.0,-4.0,20),
24  # 'log10(lambda_clus (mm))': ('log10(lambda_clus (mm))',0.0,4.0,20)}
25  #
26 
27  result.addEventAlgo(GetLCC)
28 
29  return result
30 
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
LCClassificationConfig.GetLCCCfg
def GetLCCCfg(flags)
Definition: LCClassificationConfig.py:6