178 def getCellWeightTool(flags, finder="Cone", mainparam=0.4, input="Topo", onlyCellWeight=False):
180 Returns a fully configured H1-style cell weighting calibration tool. This tool only uses cell weights!
182 finder/str : name of jet finder
183 input/str : input objects triggers calibration weights
184 mainparam/float: size parameter for jet
187 (key,folder,tag) = H1Calibration.getCalibDBParams(flags,finder,mainparam,input, onlyCellWeight, flags.Input.isMC)
188 from IOVDbSvc.IOVDbSvcConfig
import addFolders
189 result.merge(
addFolders(flags,folder,
'CALO_OFL' if flags.Input.isMC
else 'CALO',className =
'CaloRec::ToolConstants',
190 tag=tag
if H1Calibration.overrideFolder(flags)
else None))
193 toolName = finder +
editParm(mainparam) + input
194 cellcalibtool = CompFactory.H1WeightToolCSC12Generic(
"H1Weight"+toolName,
196 result.setPrivateTools(cellcalibtool)