ATLAS Offline Software
Loading...
Searching...
No Matches
CaloThinCellsInAODAlgConfig Namespace Reference

Functions

 CaloThinCellsInAODAlgCfg (flags, **kwargs)

Variables

 mlog = logging.getLogger('CaloThinCellsInAODAlgCfg')
 flags = initConfigFlags()
 Files
 doWriteAOD
 MaxEvents
 acc = MainServicesCfg(flags)
 defaultLimit

Detailed Description

Configuration for the LAr Calo Cells Digits and RawChannels By Cluster Sampling Thinner algorithm for AODs
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration

Function Documentation

◆ CaloThinCellsInAODAlgCfg()

CaloThinCellsInAODAlgConfig.CaloThinCellsInAODAlgCfg ( flags,
** kwargs )
Return ComponentAccumulator for CaloThinCellsInAODAlgCfg algorithm

Definition at line 12 of file CaloThinCellsInAODAlgConfig.py.

12def CaloThinCellsInAODAlgCfg(flags, **kwargs):
13 """Return ComponentAccumulator for CaloThinCellsInAODAlgCfg algorithm"""
14 # based on LArDigitThinner+CaloThinCellsByClusterAlg+CaloThinCellsBySamplingAlg
15
16 acc = ComponentAccumulator()
17
18 kwargs.setdefault("ClusterPtCut", 1000) # MeV
19 kwargs.setdefault("ClusterEtaCut", 1.4)
20 kwargs.setdefault("isMC", flags.Input.isMC)
21
22 # Input Containers
23 if not flags.Input.isMC and not flags.Overlay.DataOverlay:
24 kwargs.setdefault("InputDigitsContainerName","FREE")
25 from LArByteStream.LArRawDataReadingConfig import LArRawDataReadingCfg
26 acc.merge(LArRawDataReadingCfg(flags, LArDigitKey="FREE"))
27
28 acc.merge(LArOnOffIdMappingCfg(flags))
29
30 if flags.LAr.RawChannelSource is RawChannelSource.Calculated:
31 kwargs.setdefault("InputRawChannelContainerName","LArRawChannels_FromDigits")
32
33 kwargs.setdefault("InputCaloCellContainerName" ,"AllCalo")
34 kwargs.setdefault("CaloClusterContainerKey" ,"CaloCalTopoClusters")
35
36 # Output Containers
37 outputHitCntName = 'LArHitEMB_ClusterThinned'
38 outputDigCntName = "LArDigitContainer_ClusterThinned"
39 outputRawChCntName = "LArRawChannels_ClusterThinned"
40 outputCaloCellCntName = "AllCalo_ClusterThinned"
41
42 kwargs.setdefault("OutputHitsContainerName" ,outputHitCntName)
43 kwargs.setdefault("OutputDigitsContainerName" ,outputDigCntName)
44 kwargs.setdefault("OutputRawChannelContainerName",outputRawChCntName)
45 kwargs.setdefault("OutputCaloCellContainerName" ,outputCaloCellCntName)
46
47 acc.addEventAlgo(CompFactory.CaloThinCellsInAODAlg(**kwargs))
48
49 if flags.Input.isMC:
50 acc.merge(addToAOD(flags,[f"LArHitContainer#{outputHitCntName}"]))
51 acc.merge(addToAOD(flags,[f"LArDigitContainer#{outputDigCntName}"]))
52 acc.merge(addToAOD(flags,[f"LArRawChannelContainer#{outputRawChCntName}"]))
53 acc.merge(addToAOD(flags,[f"CaloCellContainer#{outputCaloCellCntName}"]))
54
55 return acc
56

Variable Documentation

◆ acc

CaloThinCellsInAODAlgConfig.acc = MainServicesCfg(flags)

Definition at line 70 of file CaloThinCellsInAODAlgConfig.py.

◆ defaultLimit

CaloThinCellsInAODAlgConfig.defaultLimit

Definition at line 74 of file CaloThinCellsInAODAlgConfig.py.

◆ doWriteAOD

CaloThinCellsInAODAlgConfig.doWriteAOD

Definition at line 66 of file CaloThinCellsInAODAlgConfig.py.

◆ Files

CaloThinCellsInAODAlgConfig.Files

Definition at line 65 of file CaloThinCellsInAODAlgConfig.py.

◆ flags

CaloThinCellsInAODAlgConfig.flags = initConfigFlags()

Definition at line 64 of file CaloThinCellsInAODAlgConfig.py.

◆ MaxEvents

CaloThinCellsInAODAlgConfig.MaxEvents

Definition at line 67 of file CaloThinCellsInAODAlgConfig.py.

◆ mlog

CaloThinCellsInAODAlgConfig.mlog = logging.getLogger('CaloThinCellsInAODAlgCfg')

Definition at line 62 of file CaloThinCellsInAODAlgConfig.py.