the ConfigBlock for the r-scan jet sequence
Definition at line 321 of file JetAnalysisConfig.py.
◆ __init__()
| def python.JetAnalysisConfig.RScanJetAnalysisConfig.__init__ |
( |
|
self | ) |
|
Definition at line 324 of file JetAnalysisConfig.py.
325 super (RScanJetAnalysisConfig, self).__init__ ()
326 self.addOption (
'containerName',
'', type=str,
328 info=
"the name of the output container after calibration.")
329 self.addOption (
'jetCollection',
'', type=str,
331 info=
"the jet container to run on. It is interpreted to determine "
332 "the correct config blocks to call for small- or large-R jets.")
334 self.addOption (
'jetInput',
'', type=str,
338 self.addOption (
'radius',
None, type=int,
341 self.addOption (
'recalibratePhyslite',
True, type=bool,
342 info=
"whether to run the CP::JetCalibrationAlg on PHYSLITE "
343 "derivations. The default is True.")
◆ instanceName()
| def python.JetAnalysisConfig.RScanJetAnalysisConfig.instanceName |
( |
|
self | ) |
|
Return the instance name for this block
Definition at line 345 of file JetAnalysisConfig.py.
345 def instanceName (self) :
346 """Return the instance name for this block"""
347 return self.containerName
◆ makeAlgs()
| def python.JetAnalysisConfig.RScanJetAnalysisConfig.makeAlgs |
( |
|
self, |
|
|
|
config |
|
) |
| |
Definition at line 349 of file JetAnalysisConfig.py.
349 def makeAlgs (self, config) :
351 log = logging.getLogger(
'RScanJetAnalysisConfig')
353 jetCollectionName=self.jetCollection
354 if(self.jetCollection==
"AnalysisJets") :
355 jetCollectionName=
"AntiKt4EMPFlowJets"
356 if(self.jetCollection==
"AnalysisLargeRJets") :
357 jetCollectionName=
"AntiKt10LCTopoTrimmedPtFrac5SmallR20Jets"
359 if not config.isPhyslite()
or self.recalibratePhyslite:
360 if self.jetInput !=
"LCTopo":
362 "Unsupported input type '{0}' for R-scan jets!".
format(self.jetInput) )
364 alg = config.createAlgorithm(
'CP::JetCalibrationAlg',
'JetCalibrationAlg' )
365 config.addPrivateTool(
'calibrationTool',
'JetCalibrationTool' )
366 alg.calibrationTool.JetCollection = jetCollectionName[:-4]
367 alg.calibrationTool.ConfigFile = \
368 "JES_MC16Recommendation_Rscan{0}LC_Feb2022_R21.config".
format(self.radius)
369 if config.dataType()
is DataType.Data:
370 alg.calibrationTool.CalibSequence =
"JetArea_Residual_EtaJES_GSC_Insitu"
372 alg.calibrationTool.CalibSequence =
"JetArea_Residual_EtaJES_GSC_Smear"
373 alg.calibrationTool.IsData = (config.dataType()
is DataType.Data)
374 alg.jets = config.readName (self.containerName)
376 log.warning(
"Uncertainties for R-Scan jets are not yet released!")
◆ jetCollection
| python.JetAnalysisConfig.RScanJetAnalysisConfig.jetCollection |
The documentation for this class was generated from the following file: