ATLAS Offline Software
Functions | Variables
TileCellMakerConfig Namespace Reference

Functions

def CaloCellContainerCheckerToolCfg (flags)
 
def TileCellMakerCfg (flags, mergeChannels=True, **kwargs)
 

Variables

 flags
 
 Files
 
 AtlasVersion
 
 GlobalTag
 
 RunType
 
 doOptATLAS
 
 correctTimeJumps
 
 NoiseFilter
 
 ESDFileName
 
 MaxEvents
 
 acc
 
 readMuRcv
 
 ItemList
 
 ExtraInputs
 
 withDetails
 
 True
 
 summariseProps
 
 sc
 

Function Documentation

◆ CaloCellContainerCheckerToolCfg()

def TileCellMakerConfig.CaloCellContainerCheckerToolCfg (   flags)
Return component accumulator with configured private Calo cell container checker tool

Arguments:
    flags  -- Athena configuration flags

Definition at line 12 of file TileCellMakerConfig.py.

13  """Return component accumulator with configured private Calo cell container checker tool
14 
15  Arguments:
16  flags -- Athena configuration flags
17  """
18 
19  acc = ComponentAccumulator()
20 
21  from LArGeoAlgsNV.LArGMConfig import LArGMCfg
22  acc.merge(LArGMCfg(flags))
23 
24  from TileGeoModel.TileGMConfig import TileGMCfg
25  acc.merge(TileGMCfg(flags))
26 
27  CaloCellContainerCheckerTool=CompFactory.CaloCellContainerCheckerTool
28  acc.setPrivateTools( CaloCellContainerCheckerTool() )
29 
30  return acc
31 
32 

◆ TileCellMakerCfg()

def TileCellMakerConfig.TileCellMakerCfg (   flags,
  mergeChannels = True,
**  kwargs 
)
Return component accumulator with configured Tile Cell maker algorithm

Arguments:
    flags  -- Athena configuration flags
    name -- name of Tile cell maker algorithm. Defautls to TileCellMaker
            or TileCellMakerHG/TileCellMakerLG depending on only used gain.
    SkipGain - skip given gain. Defaults to -1 [use all gains]. Possible values: 0 [LG], 1 [HG].
    CaloCellsOutputName -- name of the output calo cell container. Defautls to AllCalo
                           or AllCaloHG/AllCaloLG depending on only used gain.
    DoCaloNeighborsCorrection -- correct dead cells. Assign as energy the average energy of
                                 the surrounding cells. Defaults to False.
    mergeChannels -- merge DSP results with offline reco results. Defaults to True.

Definition at line 33 of file TileCellMakerConfig.py.

33 def TileCellMakerCfg(flags, mergeChannels=True, **kwargs):
34  """Return component accumulator with configured Tile Cell maker algorithm
35 
36  Arguments:
37  flags -- Athena configuration flags
38  name -- name of Tile cell maker algorithm. Defautls to TileCellMaker
39  or TileCellMakerHG/TileCellMakerLG depending on only used gain.
40  SkipGain - skip given gain. Defaults to -1 [use all gains]. Possible values: 0 [LG], 1 [HG].
41  CaloCellsOutputName -- name of the output calo cell container. Defautls to AllCalo
42  or AllCaloHG/AllCaloLG depending on only used gain.
43  DoCaloNeighborsCorrection -- correct dead cells. Assign as energy the average energy of
44  the surrounding cells. Defaults to False.
45  mergeChannels -- merge DSP results with offline reco results. Defaults to True.
46  """
47 
48  acc = ComponentAccumulator()
49 
50  useGain = {0 : 'HG', 1 : 'LG'} # Key is skipped gain
51 
52  skipGain = kwargs.get('SkipGain', -1) # Never skip any gain by default
53 
54  defaultName = 'TileCellMaker' if skipGain == -1 else 'TileCellMaker' + useGain[skipGain]
55  name = kwargs.get('name', defaultName)
56 
57  defaultOutputCells = 'AllCalo' if skipGain == -1 else 'AllCalo' + useGain[skipGain]
58  caloCellsOutputName = kwargs.get('CaloCellsOutputName', defaultOutputCells)
59 
60  doCaloNeighborsCorrection = kwargs.get('DoCaloNeighborsCorrection', False)
61 
62  from AthenaCommon.Logging import logging
63  msg = logging.getLogger( 'TileCellMakerCfg' )
64 
65  CaloCellMaker, CaloCellContainerFinalizerTool=CompFactory.getComps("CaloCellMaker","CaloCellContainerFinalizerTool",)
66  from TileRecUtils.TileCellBuilderConfig import TileCellBuilderCfg
67  tileCellBuilder = acc.popToolsAndMerge( TileCellBuilderCfg(flags, SkipGain=skipGain, mergeChannels=mergeChannels) )
68 
69  cellMakerTools = [tileCellBuilder, CaloCellContainerFinalizerTool()]
70 
71  noiseFilter = flags.Tile.NoiseFilter
72 
73  doCellNoiseFilter = noiseFilter - noiseFilter % 100
74  doRawChannelNoiseFilter = noiseFilter - doCellNoiseFilter - noiseFilter % 10
75 
76  if doRawChannelNoiseFilter == 10:
77  msg.info('Use Tile raw channel noise filter')
78  from TileRecUtils.TileRawChannelCorrectionConfig import TileRawChannelNoiseFilterCfg
79  noiseFilter = acc.popToolsAndMerge( TileRawChannelNoiseFilterCfg(flags) )
80  tileCellBuilder.NoiseFilterTools = [noiseFilter]
81 
82  if doCellNoiseFilter == 100:
83  msg.info('Use Tile cell noise filter')
84  from TileRecUtils.TileCellNoiseFilterConfig import TileCellNoiseFilterCfg
85  cellNoiseFilter = acc.popToolsAndMerge( TileCellNoiseFilterCfg(flags) )
86  cellMakerTools += [ cellNoiseFilter ]
87 
88  if doCaloNeighborsCorrection:
89  msg.info('Use Calo cell neighbours average correction')
90  caloCellNeighborsAverageCorrection = acc.popToolsAndMerge( CaloCellNeighborsAverageCorrCfg(flags) )
91  cellMakerTools += [caloCellNeighborsAverageCorrection]
92 
93  if flags.Beam.Type is not BeamType.TestBeam:
94  caloCellContainerChecker = acc.popToolsAndMerge( CaloCellContainerCheckerToolCfg(flags) )
95  cellMakerTools += [caloCellContainerChecker]
96 
97  cellMakerAlg = CaloCellMaker(name = name, CaloCellMakerToolNames = cellMakerTools,
98  CaloCellsOutputName = caloCellsOutputName)
99 
100  acc.addEventAlgo(cellMakerAlg, primary = True)
101 
102  return acc
103 
104 
105 

Variable Documentation

◆ acc

TileCellMakerConfig.acc

Definition at line 131 of file TileCellMakerConfig.py.

◆ AtlasVersion

TileCellMakerConfig.AtlasVersion

Definition at line 118 of file TileCellMakerConfig.py.

◆ correctTimeJumps

TileCellMakerConfig.correctTimeJumps

Definition at line 122 of file TileCellMakerConfig.py.

◆ doOptATLAS

TileCellMakerConfig.doOptATLAS

Definition at line 121 of file TileCellMakerConfig.py.

◆ ESDFileName

TileCellMakerConfig.ESDFileName

Definition at line 124 of file TileCellMakerConfig.py.

◆ ExtraInputs

TileCellMakerConfig.ExtraInputs

Definition at line 142 of file TileCellMakerConfig.py.

◆ Files

TileCellMakerConfig.Files

Definition at line 117 of file TileCellMakerConfig.py.

◆ flags

TileCellMakerConfig.flags

Definition at line 116 of file TileCellMakerConfig.py.

◆ GlobalTag

TileCellMakerConfig.GlobalTag

Definition at line 119 of file TileCellMakerConfig.py.

◆ ItemList

TileCellMakerConfig.ItemList

Definition at line 140 of file TileCellMakerConfig.py.

◆ MaxEvents

TileCellMakerConfig.MaxEvents

Definition at line 125 of file TileCellMakerConfig.py.

◆ NoiseFilter

TileCellMakerConfig.NoiseFilter

Definition at line 123 of file TileCellMakerConfig.py.

◆ readMuRcv

TileCellMakerConfig.readMuRcv

Definition at line 134 of file TileCellMakerConfig.py.

◆ RunType

TileCellMakerConfig.RunType

Definition at line 120 of file TileCellMakerConfig.py.

◆ sc

TileCellMakerConfig.sc

Definition at line 152 of file TileCellMakerConfig.py.

◆ summariseProps

TileCellMakerConfig.summariseProps

Definition at line 145 of file TileCellMakerConfig.py.

◆ True

TileCellMakerConfig.True

Definition at line 145 of file TileCellMakerConfig.py.

◆ withDetails

TileCellMakerConfig.withDetails

Definition at line 145 of file TileCellMakerConfig.py.

TileCellNoiseFilterConfig.TileCellNoiseFilterCfg
def TileCellNoiseFilterCfg(flags, **kwargs)
Definition: TileCellNoiseFilterConfig.py:9
TileRawChannelCorrectionConfig.TileRawChannelNoiseFilterCfg
def TileRawChannelNoiseFilterCfg(flags, **kwargs)
Definition: TileRawChannelCorrectionConfig.py:52
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
CaloCellContainerFinalizerTool
Definition: CaloCellContainerFinalizerTool.h:20
TileCellMakerConfig.TileCellMakerCfg
def TileCellMakerCfg(flags, mergeChannels=True, **kwargs)
Definition: TileCellMakerConfig.py:33
TileCellBuilderConfig.TileCellBuilderCfg
def TileCellBuilderCfg(flags, mergeChannels=True, **kwargs)
Definition: TileCellBuilderConfig.py:11
CaloCellMaker
Definition: CaloCellMaker.h:36
LArGMConfig.LArGMCfg
def LArGMCfg(flags)
Definition: LArGMConfig.py:8
TileCellMakerConfig.CaloCellContainerCheckerToolCfg
def CaloCellContainerCheckerToolCfg(flags)
Definition: TileCellMakerConfig.py:12
CaloCellCorrectionConfig.CaloCellNeighborsAverageCorrCfg
def CaloCellNeighborsAverageCorrCfg(flags)
Definition: CaloCellCorrectionConfig.py:50
CaloCellContainerCheckerTool
Definition: CaloCellContainerCheckerTool.h:18
TileGMConfig.TileGMCfg
def TileGMCfg(flags)
Definition: TileGMConfig.py:7