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 11 of file TileCellMakerConfig.py.

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

◆ 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 32 of file TileCellMakerConfig.py.

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

Variable Documentation

◆ acc

TileCellMakerConfig.acc

Definition at line 130 of file TileCellMakerConfig.py.

◆ AtlasVersion

TileCellMakerConfig.AtlasVersion

Definition at line 117 of file TileCellMakerConfig.py.

◆ correctTimeJumps

TileCellMakerConfig.correctTimeJumps

Definition at line 121 of file TileCellMakerConfig.py.

◆ doOptATLAS

TileCellMakerConfig.doOptATLAS

Definition at line 120 of file TileCellMakerConfig.py.

◆ ESDFileName

TileCellMakerConfig.ESDFileName

Definition at line 123 of file TileCellMakerConfig.py.

◆ ExtraInputs

TileCellMakerConfig.ExtraInputs

Definition at line 141 of file TileCellMakerConfig.py.

◆ Files

TileCellMakerConfig.Files

Definition at line 116 of file TileCellMakerConfig.py.

◆ flags

TileCellMakerConfig.flags

Definition at line 115 of file TileCellMakerConfig.py.

◆ GlobalTag

TileCellMakerConfig.GlobalTag

Definition at line 118 of file TileCellMakerConfig.py.

◆ ItemList

TileCellMakerConfig.ItemList

Definition at line 139 of file TileCellMakerConfig.py.

◆ MaxEvents

TileCellMakerConfig.MaxEvents

Definition at line 124 of file TileCellMakerConfig.py.

◆ NoiseFilter

TileCellMakerConfig.NoiseFilter

Definition at line 122 of file TileCellMakerConfig.py.

◆ readMuRcv

TileCellMakerConfig.readMuRcv

Definition at line 133 of file TileCellMakerConfig.py.

◆ RunType

TileCellMakerConfig.RunType

Definition at line 119 of file TileCellMakerConfig.py.

◆ sc

TileCellMakerConfig.sc

Definition at line 151 of file TileCellMakerConfig.py.

◆ summariseProps

TileCellMakerConfig.summariseProps

Definition at line 144 of file TileCellMakerConfig.py.

◆ True

TileCellMakerConfig.True

Definition at line 144 of file TileCellMakerConfig.py.

◆ withDetails

TileCellMakerConfig.withDetails

Definition at line 144 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:32
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:11
CaloCellCorrectionConfig.CaloCellNeighborsAverageCorrCfg
def CaloCellNeighborsAverageCorrCfg(flags)
Definition: CaloCellCorrectionConfig.py:50
CaloCellContainerCheckerTool
Definition: CaloCellContainerCheckerTool.h:18
TileGMConfig.TileGMCfg
def TileGMCfg(flags)
Definition: TileGMConfig.py:7