ATLAS Offline Software
Functions | Variables
python.CaloRecoConfig Namespace Reference

Functions

def CaloRecoCfg (flags, clustersname=None)
 
def CaloRecoDebuggingCfg (flags)
 

Variables

 flags = initConfigFlags()
 
 Files
 
 AtlasVersion
 
 OutputLevel
 
 MaxEvents
 
 acc = MainServicesCfg(flags)
 
 CaloCellDumper = CompFactory.CaloCellDumper
 
 sequenceName
 
 ClusterDumper = CompFactory.ClusterDumper
 
 f = open("CaloRec.pkl","wb")
 

Function Documentation

◆ CaloRecoCfg()

def python.CaloRecoConfig.CaloRecoCfg (   flags,
  clustersname = None 
)

Definition at line 9 of file CaloRecoConfig.py.

9 def CaloRecoCfg(flags, clustersname=None):
10  result = ComponentAccumulator()
11  if flags.Input.Format is Format.BS:
12  #Data-case: Schedule ByteStream reading for LAr & Tile
13  from LArByteStream.LArRawDataReadingConfig import LArRawDataReadingCfg
14  result.merge(LArRawDataReadingCfg(flags))
15 
16  from TileByteStream.TileByteStreamConfig import TileRawDataReadingCfg
17  result.merge( TileRawDataReadingCfg(flags) )
18 
19  if flags.Output.doWriteESD:
20  from TileRecAlgs.TileDigitsFilterConfig import TileDigitsFilterOutputCfg
21  result.merge(TileDigitsFilterOutputCfg(flags))
22  else: #Mostly for wrapping in RecExCommon
23  from TileRecAlgs.TileDigitsFilterConfig import TileDigitsFilterCfg
24  result.merge(TileDigitsFilterCfg(flags))
25 
26  from LArROD.LArRawChannelBuilderAlgConfig import LArRawChannelBuilderAlgCfg
27  result.merge(LArRawChannelBuilderAlgCfg(flags))
28 
29  from TileRecUtils.TileRawChannelMakerConfig import TileRawChannelMakerCfg
30  result.merge(TileRawChannelMakerCfg(flags))
31 
32  if not flags.Input.isMC and not flags.Common.isOnline:
33  from LArCellRec.LArTimeVetoAlgConfig import LArTimeVetoAlgCfg
34  result.merge(LArTimeVetoAlgCfg(flags))
35 
36  if not flags.Input.isMC and not flags.Overlay.DataOverlay:
37  from LArROD.LArFebErrorSummaryMakerConfig import LArFebErrorSummaryMakerCfg
38  result.merge(LArFebErrorSummaryMakerCfg(flags))
39 
40 
41  #Configure cell-building
42  from CaloRec.CaloCellMakerConfig import CaloCellMakerCfg
43  result.merge(CaloCellMakerCfg(flags))
44 
45  #Configure topo-cluster builder
46  from CaloRec.CaloTopoClusterConfig import CaloTopoClusterCfg
47  result.merge(CaloTopoClusterCfg(flags, clustersname=clustersname))
48 
49  #Configure forward towers:
50  from CaloRec.CaloFwdTopoTowerConfig import CaloFwdTopoTowerCfg
51  result.merge(CaloFwdTopoTowerCfg(flags,CaloTopoClusterContainerKey="CaloCalTopoClusters"))
52 
53  #Configure NoisyROSummary
54  from LArCellRec.LArNoisyROSummaryConfig import LArNoisyROSummaryCfg
55  result.merge(LArNoisyROSummaryCfg(flags))
56 
57  #Configure TileLookForMuAlg
58  from TileMuId.TileMuIdConfig import TileLookForMuAlgCfg
59  result.merge(TileLookForMuAlgCfg(flags))
60 
61  if not flags.Input.isMC and not flags.Overlay.DataOverlay:
62  #Configure LArDigitsThinner:
63  from LArROD.LArDigitThinnerConfig import LArDigitThinnerCfg
64  result.merge(LArDigitThinnerCfg(flags))
65 
66  #Configure MBTSTimeDiff
67  #Clients are BackgroundWordFiller and (deprecated?) DQTBackgroundMonTool
68  #Consider moving to BackgroundWordFiller config
69  if flags.Detector.GeometryMBTS:
70  from TileRecAlgs.MBTSTimeDiffEventInfoAlgConfig import MBTSTimeDiffEventInfoAlgCfg
71  result.merge(MBTSTimeDiffEventInfoAlgCfg(flags))
72 
73 
74  #Configure AOD Cell-Thinning based on samplings:
75  from CaloRec.CaloThinCellsBySamplingAlgConfig import CaloThinCellsBySamplingAlgCfg
76  result.merge(CaloThinCellsBySamplingAlgCfg(flags,'StreamAOD', ['TileGap3']))
77 
78  # Optional: AOD Cell, rawCh, digits thinning, based on clusters, for XTalk studies
79  if flags.Calo.TopoCluster.xtalkInfoDumper and not flags.Overlay.DataOverlay:
80  from LArClusterCellDumper.CaloThinCellsInAODAlgConfig import CaloThinCellsInAODAlgCfg
81  result.merge(CaloThinCellsInAODAlgCfg(flags))
82 
83  return result
84 
85 

◆ CaloRecoDebuggingCfg()

def python.CaloRecoConfig.CaloRecoDebuggingCfg (   flags)

Definition at line 86 of file CaloRecoConfig.py.

86 def CaloRecoDebuggingCfg(flags):
87  result = ComponentAccumulator()
88 
89  result.addEventAlgo(CompFactory.DumpLArRawChannels(LArRawChannelContainerName="LArRawChannels_FromDigits"))
90  result.addEventAlgo(CompFactory.CaloCellDumper())
91 
92  ClusterDumper = CompFactory.ClusterDumper
93  result.addEventAlgo(ClusterDumper("TopoDumper", ContainerName="CaloCalTopoClusters", FileName="TopoCluster.txt"))
94  result.addEventAlgo(ClusterDumper("FwdTopoDumper", ContainerName="CaloCalFwdTopoTowers", FileName="FwdTopoCluster.txt"))
95 
96  return result
97 
98 

Variable Documentation

◆ acc

python.CaloRecoConfig.acc = MainServicesCfg(flags)

Definition at line 116 of file CaloRecoConfig.py.

◆ AtlasVersion

python.CaloRecoConfig.AtlasVersion

Definition at line 107 of file CaloRecoConfig.py.

◆ CaloCellDumper

python.CaloRecoConfig.CaloCellDumper = CompFactory.CaloCellDumper

Definition at line 121 of file CaloRecoConfig.py.

◆ ClusterDumper

python.CaloRecoConfig.ClusterDumper = CompFactory.ClusterDumper

Definition at line 124 of file CaloRecoConfig.py.

◆ f

python.CaloRecoConfig.f = open("CaloRec.pkl","wb")

Definition at line 127 of file CaloRecoConfig.py.

◆ Files

python.CaloRecoConfig.Files

Definition at line 106 of file CaloRecoConfig.py.

◆ flags

python.CaloRecoConfig.flags = initConfigFlags()

Definition at line 105 of file CaloRecoConfig.py.

◆ MaxEvents

python.CaloRecoConfig.MaxEvents

Definition at line 110 of file CaloRecoConfig.py.

◆ OutputLevel

python.CaloRecoConfig.OutputLevel

Definition at line 109 of file CaloRecoConfig.py.

◆ sequenceName

python.CaloRecoConfig.sequenceName

Definition at line 122 of file CaloRecoConfig.py.

python.CaloRecoConfig.CaloRecoDebuggingCfg
def CaloRecoDebuggingCfg(flags)
Definition: CaloRecoConfig.py:86
TileDigitsFilterConfig.TileDigitsFilterOutputCfg
def TileDigitsFilterOutputCfg(flags, streamName='ESD', **kwargs)
Definition: TileDigitsFilterConfig.py:31
python.CaloRecoConfig.CaloRecoCfg
def CaloRecoCfg(flags, clustersname=None)
Definition: CaloRecoConfig.py:9
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.CaloFwdTopoTowerConfig.CaloFwdTopoTowerCfg
def CaloFwdTopoTowerCfg(flags, **kwargs)
Definition: CaloFwdTopoTowerConfig.py:7
ClusterDumper
Definition: ClusterDumper.h:22
python.LArRawChannelBuilderAlgConfig.LArRawChannelBuilderAlgCfg
def LArRawChannelBuilderAlgCfg(flags, **kwargs)
Definition: LArRawChannelBuilderAlgConfig.py:9
python.CaloCellMakerConfig.CaloCellMakerCfg
def CaloCellMakerCfg(flags)
Definition: CaloCellMakerConfig.py:10
python.LArDigitThinnerConfig.LArDigitThinnerCfg
def LArDigitThinnerCfg(flags, **kwargs)
Definition: LArDigitThinnerConfig.py:12
TileDigitsFilterConfig.TileDigitsFilterCfg
def TileDigitsFilterCfg(flags, **kwargs)
Definition: TileDigitsFilterConfig.py:9
CaloThinCellsInAODAlgConfig.CaloThinCellsInAODAlgCfg
def CaloThinCellsInAODAlgCfg(flags, **kwargs)
Definition: CaloThinCellsInAODAlgConfig.py:12
python.LArFebErrorSummaryMakerConfig.LArFebErrorSummaryMakerCfg
def LArFebErrorSummaryMakerCfg(flags)
Definition: LArFebErrorSummaryMakerConfig.py:7
LArTimeVetoAlgConfig.LArTimeVetoAlgCfg
def LArTimeVetoAlgCfg(flags)
Definition: LArTimeVetoAlgConfig.py:7
python.LArRawDataReadingConfig.LArRawDataReadingCfg
def LArRawDataReadingCfg(configFlags, **kwargs)
Definition: LArRawDataReadingConfig.py:10
python.CaloTopoClusterConfig.CaloTopoClusterCfg
def CaloTopoClusterCfg(flags, cellsname="AllCalo", clustersname=None, clustersnapname="CaloTopoClusters")
Definition: CaloTopoClusterConfig.py:318
LArNoisyROSummaryConfig.LArNoisyROSummaryCfg
def LArNoisyROSummaryCfg(configFlags, **kwargs)
Definition: LArNoisyROSummaryConfig.py:8
TileByteStreamConfig.TileRawDataReadingCfg
def TileRawDataReadingCfg(flags, readDigits=True, readRawChannel=True, readMuRcv=None, readMuRcvDigits=False, readMuRcvRawCh=False, readBeamElem=None, readLaserObj=None, readDigitsFlx=False, readL2=False, stateless=False, **kwargs)
Definition: TileByteStreamConfig.py:87
TileRawChannelMakerConfig.TileRawChannelMakerCfg
def TileRawChannelMakerCfg(flags, **kwargs)
Definition: TileRawChannelMakerConfig.py:10
python.CaloThinCellsBySamplingAlgConfig.CaloThinCellsBySamplingAlgCfg
def CaloThinCellsBySamplingAlgCfg(flags, streamName, samplings=[], cells='AllCalo')
Definition: CaloThinCellsBySamplingAlgConfig.py:11
TileMuIdConfig.TileLookForMuAlgCfg
def TileLookForMuAlgCfg(flags, **kwargs)
Definition: TileMuIdConfig.py:12
MBTSTimeDiffEventInfoAlgConfig.MBTSTimeDiffEventInfoAlgCfg
def MBTSTimeDiffEventInfoAlgCfg(flags, **kwargs)
Definition: MBTSTimeDiffEventInfoAlgConfig.py:9