ATLAS Offline Software
Functions | Variables
python.CaloCellMakerConfig Namespace Reference

Functions

def CaloCellMakerCfg (flags)
 

Variables

 flags = initConfigFlags()
 
 Files
 
 AtlasVersion
 
 cfg = MainServicesCfg(flags)
 
 sequenceName
 
def acc = CaloCellMakerCfg(flags)
 
 CaloCellsOutputName
 
 thisdir = os.path.dirname (sys.argv[0])
 

Function Documentation

◆ CaloCellMakerCfg()

def python.CaloCellMakerConfig.CaloCellMakerCfg (   flags)

Definition at line 10 of file CaloCellMakerConfig.py.

10 def CaloCellMakerCfg(flags):
11  result=ComponentAccumulator()
12 
13  from LArGeoAlgsNV.LArGMConfig import LArGMCfg
14  from TileGeoModel.TileGMConfig import TileGMCfg
15 
16  result.merge(LArGMCfg(flags))
17  result.merge(TileGMCfg(flags))
18 
19  larCellBuilder = result.popToolsAndMerge(LArCellBuilderCfg(flags))
20  larCellCorrectors = result.popToolsAndMerge(LArCellCorrectorCfg(flags))
21  tileCellBuilder = result.popToolsAndMerge(TileCellBuilderCfg(flags))
22  cellFinalizer = CompFactory.CaloCellContainerFinalizerTool()
23 
24  cellMakerTools=[larCellBuilder,tileCellBuilder,cellFinalizer]+larCellCorrectors
25 
26  #Add corrections tools that are not LAr or Tile specific:
27  if flags.Calo.Cell.doPileupOffsetBCIDCorr or flags.Calo.Cell.doPedestalCorr:
28  theCaloCellPedestalCorr=CaloCellPedestalCorrCfg(flags)
29  cellMakerTools.append(result.popToolsAndMerge(theCaloCellPedestalCorr))
30 
31  #LAr HV scale corr must come after pedestal corr
32  if flags.LAr.doHVCorr:
33  from LArCellRec.LArCellBuilderConfig import LArHVCellContCorrCfg
34  theLArHVCellContCorr=LArHVCellContCorrCfg(flags)
35  cellMakerTools.append(result.popToolsAndMerge(theLArHVCellContCorr))
36 
37 
38  if flags.Calo.Cell.doDeadCellCorr:
39  theCaloCellNeighborAvg=CaloCellNeighborsAverageCorrCfg(flags)
40  cellMakerTools.append(result.popToolsAndMerge(theCaloCellNeighborAvg))
41 
42  if flags.Calo.Cell.doEnergyCorr:
43  theCaloCellEnergyRescaler=CaloEnergyRescalerCfg(flags)
44  cellMakerTools.append(result.popToolsAndMerge(theCaloCellEnergyRescaler))
45  if flags.Calo.Cell.doTimeCorr:
46  theCaloTimeCorr=CaloCellTimeCorrCfg(flags)
47  cellMakerTools.append(result.popToolsAndMerge(theCaloTimeCorr))
48 
49  cellAlgo = CompFactory.CaloCellMaker(CaloCellMakerToolNames=cellMakerTools,
50  CaloCellsOutputName="AllCalo",
51  EnableChronoStat=(flags.Concurrency.NumThreads == 0))
52 
53  result.addEventAlgo(cellAlgo, primary=True)
54 
55  outputContainers = ["CaloCellContainer#AllCalo"]
56  if flags.GeoModel.Run in [LHCPeriod.Run1, LHCPeriod.Run2, LHCPeriod.Run3]:
57  outputContainers += ["TileCellContainer#MBTSContainer"]
58  if flags.GeoModel.Run is LHCPeriod.Run2:
59  outputContainers += ["TileCellContainer#E4prContainer"]
60  from OutputStreamAthenaPool.OutputStreamConfig import addToESD, addToAOD
61  result.merge(addToESD(flags, outputContainers))
62  result.merge(addToAOD(flags, outputContainers))
63 
64  # Add a SuperCell container creation, if asked by flags
65  if flags.LAr.DT.storeET_ID or flags.LAr.DT.storeET_additional:
66  from LArConfiguration.LArSuperCellConfig import LArSuperCellCfg
67  result.merge(LArSuperCellCfg(flags))
68 
69  return result
70 
71 
72 

Variable Documentation

◆ acc

def python.CaloCellMakerConfig.acc = CaloCellMakerCfg(flags)

Definition at line 93 of file CaloCellMakerConfig.py.

◆ AtlasVersion

python.CaloCellMakerConfig.AtlasVersion

Definition at line 82 of file CaloCellMakerConfig.py.

◆ CaloCellsOutputName

python.CaloCellMakerConfig.CaloCellsOutputName

Definition at line 94 of file CaloCellMakerConfig.py.

◆ cfg

python.CaloCellMakerConfig.cfg = MainServicesCfg(flags)

Definition at line 87 of file CaloCellMakerConfig.py.

◆ Files

python.CaloCellMakerConfig.Files

Definition at line 81 of file CaloCellMakerConfig.py.

◆ flags

python.CaloCellMakerConfig.flags = initConfigFlags()

Definition at line 80 of file CaloCellMakerConfig.py.

◆ sequenceName

python.CaloCellMakerConfig.sequenceName

Definition at line 90 of file CaloCellMakerConfig.py.

◆ thisdir

python.CaloCellMakerConfig.thisdir = os.path.dirname (sys.argv[0])

Definition at line 98 of file CaloCellMakerConfig.py.

CaloCellCorrectionConfig.CaloEnergyRescalerCfg
def CaloEnergyRescalerCfg(configFlags)
Definition: CaloCellCorrectionConfig.py:80
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.LArSuperCellConfig.LArSuperCellCfg
def LArSuperCellCfg(inputFlags)
Definition: LArSuperCellConfig.py:5
CaloCellCorrectionConfig.CaloCellPedestalCorrCfg
def CaloCellPedestalCorrCfg(configFlags)
Definition: CaloCellCorrectionConfig.py:8
TileCellBuilderConfig.TileCellBuilderCfg
def TileCellBuilderCfg(flags, mergeChannels=True, **kwargs)
Definition: TileCellBuilderConfig.py:11
python.CaloCellMakerConfig.CaloCellMakerCfg
def CaloCellMakerCfg(flags)
Definition: CaloCellMakerConfig.py:10
LArCellBuilderConfig.LArHVCellContCorrCfg
def LArHVCellContCorrCfg(configFlags)
Definition: LArCellBuilderConfig.py:59
LArGMConfig.LArGMCfg
def LArGMCfg(flags)
Definition: LArGMConfig.py:8
python.OutputStreamConfig.addToESD
def addToESD(flags, itemOrList, **kwargs)
Definition: OutputStreamConfig.py:127
LArCellBuilderConfig.LArCellBuilderCfg
def LArCellBuilderCfg(configFlags)
Definition: LArCellBuilderConfig.py:11
CaloCellCorrectionConfig.CaloCellNeighborsAverageCorrCfg
def CaloCellNeighborsAverageCorrCfg(flags)
Definition: CaloCellCorrectionConfig.py:50
python.OutputStreamConfig.addToAOD
def addToAOD(flags, itemOrList, **kwargs)
Definition: OutputStreamConfig.py:142
LArCellBuilderConfig.LArCellCorrectorCfg
def LArCellCorrectorCfg(configFlags)
Definition: LArCellBuilderConfig.py:27
CaloCellCorrectionConfig.CaloCellTimeCorrCfg
def CaloCellTimeCorrCfg(configFlags)
Definition: CaloCellCorrectionConfig.py:71
TileGMConfig.TileGMCfg
def TileGMCfg(flags)
Definition: TileGMConfig.py:7