3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
5 from AthenaConfiguration.Enums
import Format
10 the_tool = CompFactory.JiveXML.LArDigitRetriever(
11 name=
"LArDigitRetriever",
16 result.addPublicTool(the_tool, primary=
True)
22 the_tool = CompFactory.JiveXML.CaloFCalRetriever(
23 name=
"CaloFCalRetriever",
24 DoFCalCellDetails=
False,
27 result.addPublicTool(the_tool, primary=
True)
33 the_tool = CompFactory.JiveXML.CaloLArRetriever(
34 name=
"CaloLArRetriever",
35 DoLArCellDetails=
False,
37 LArlCellThreshold = 500
if flags.OnlineEventDisplays.BeamSplashMode
else 50,
39 result.addPublicTool(the_tool, primary=
True)
45 the_tool = CompFactory.JiveXML.CaloHECRetriever(
46 name=
"CaloHECRetriever",
47 DoHECCellDetails=
False,
49 HEClCellThreshold = 500
if flags.OnlineEventDisplays.BeamSplashMode
else 50,
51 result.addPublicTool(the_tool, primary=
True)
57 the_tool = CompFactory.JiveXML.CaloClusterRetriever(name =
"CaloClusterRetriever",**kwargs)
58 result.addPublicTool(the_tool, primary=
True)
65 if flags.Input.Format
is Format.BS:
66 tileDigitsContainer =
"TileDigitsCnt"
69 tileRawChannelContainer =
'TileRawChannelOpt2'
70 elif flags.Tile.doOptATLAS:
71 tileRawChannelContainer =
'TileRawChannelFixed'
72 elif flags.Tile.doFitCOOL:
73 tileRawChannelContainer =
'TileRawChannelFitCool'
74 elif flags.Tile.doFit:
75 tileRawChannelContainer =
'TileRawChannelFit'
77 tileRawChannelContainer =
'TileRawChannelCnt'
80 if "TileDigitsCnt" in flags.Input.Collections:
81 tileDigitsContainer =
"TileDigitsCnt"
82 elif "TileDigitsFlt" in flags.Input.Collections:
83 tileDigitsContainer =
"TileDigitsFlt"
85 if "TileRawChannelOpt2" in flags.Input.Collections:
86 tileRawChannelContainer =
'TileRawChannelOpt2'
87 elif "TileRawChannelFitCool" in flags.Input.Collections:
88 tileRawChannelContainer =
'TileRawChannelFitCool'
89 elif "TileRawChannelFit" in flags.Input.Collections:
90 tileRawChannelContainer =
'TileRawChannelFit'
91 elif "TileRawChannelCnt" in flags.Input.Collections:
92 tileRawChannelContainer =
'TileRawChannelCnt'
94 the_tool = CompFactory.JiveXML.CaloTileRetriever(
95 name =
"CaloTileRetriever",
96 TileDigitsContainer = tileDigitsContainer,
97 TileRawChannelContainer = tileRawChannelContainer,
98 DoTileCellDetails =
False,
102 result.addPublicTool(the_tool, primary=
True)
109 if flags.Input.Format
is Format.BS:
110 tileDigitsContainer =
"TileDigitsCnt"
112 if flags.Tile.doOpt2:
113 tileRawChannelContainer =
'TileRawChannelOpt2'
114 elif flags.Tile.doOptATLAS:
115 tileRawChannelContainer =
'TileRawChannelFixed'
116 elif flags.Tile.doFitCOOL:
117 tileRawChannelContainer =
'TileRawChannelFitCool'
118 elif flags.Tile.doFit:
119 tileRawChannelContainer =
'TileRawChannelFit'
121 tileRawChannelContainer =
'TileRawChannelCnt'
124 if "TileDigitsCnt" in flags.Input.Collections:
125 tileDigitsContainer =
"TileDigitsCnt"
126 elif "TileDigitsFlt" in flags.Input.Collections:
127 tileDigitsContainer =
"TileDigitsFlt"
129 if "TileRawChannelOpt2" in flags.Input.Collections:
130 tileRawChannelContainer =
'TileRawChannelOpt2'
131 elif "TileRawChannelFitCool" in flags.Input.Collections:
132 tileRawChannelContainer =
'TileRawChannelFitCool'
133 elif "TileRawChannelFit" in flags.Input.Collections:
134 tileRawChannelContainer =
'TileRawChannelFit'
135 elif "TileRawChannelCnt" in flags.Input.Collections:
136 tileRawChannelContainer =
'TileRawChannelCnt'
138 the_tool = CompFactory.JiveXML.CaloMBTSRetriever(
139 name =
"CaloMBTSRetriever",
140 TileDigitsContainer= tileDigitsContainer,
141 TileRawChannelContainer = tileRawChannelContainer,
142 DoMBTSDigits =
False,
144 result.addPublicTool(the_tool, primary=
True)
150 from LArRecUtils.LArADC2MeVCondAlgConfig
import LArADC2MeVCondAlgCfg
151 result.merge(LArADC2MeVCondAlgCfg (flags))
153 from CaloJiveXML.CaloJiveXMLConf
import JiveXML__LArDigitRetriever
154 theLArDigitRetriever = JiveXML__LArDigitRetriever(name=
"LArDigitRetriever")
155 theLArDigitRetriever.DoLArDigit =
False
156 theLArDigitRetriever.DoHECDigit =
False
157 theLArDigitRetriever.DoFCalDigit =
False
161 if (theLArDigitRetriever.DoLArDigit
or theLArDigitRetriever.DoHECDigit
or theLArDigitRetriever.DoFCalDigit):