the ConfigBlock for the r-scan jet sequence
Definition at line 324 of file JetAnalysisConfig.py.
◆ __init__()
| def python.JetAnalysisConfig.RScanJetAnalysisConfig.__init__ |
( |
|
self | ) |
|
Definition at line 327 of file JetAnalysisConfig.py.
328 super (RScanJetAnalysisConfig, self).__init__ ()
329 self.addOption (
'containerName',
'', type=str,
331 info=
"the name of the output container after calibration.")
332 self.addOption (
'jetCollection',
'', type=str,
334 info=
"the jet container to run on. It is interpreted to determine "
335 "the correct config blocks to call for small- or large-R jets.")
337 self.addOption (
'jetInput',
'', type=str,
341 self.addOption (
'radius',
None, type=int,
344 self.addOption (
'recalibratePhyslite',
True, type=bool,
345 info=
"whether to run the CP::JetCalibrationAlg on PHYSLITE "
346 "derivations. The default is True.")
◆ instanceName()
| def python.JetAnalysisConfig.RScanJetAnalysisConfig.instanceName |
( |
|
self | ) |
|
Return the instance name for this block
Definition at line 348 of file JetAnalysisConfig.py.
348 def instanceName (self) :
349 """Return the instance name for this block"""
350 return self.containerName
◆ makeAlgs()
| def python.JetAnalysisConfig.RScanJetAnalysisConfig.makeAlgs |
( |
|
self, |
|
|
|
config |
|
) |
| |
Definition at line 352 of file JetAnalysisConfig.py.
352 def makeAlgs (self, config) :
354 log = logging.getLogger(
'RScanJetAnalysisConfig')
356 jetCollectionName=self.jetCollection
357 if(self.jetCollection==
"AnalysisJets") :
358 jetCollectionName=
"AntiKt4EMPFlowJets"
359 if(self.jetCollection==
"AnalysisLargeRJets") :
360 jetCollectionName=
"AntiKt10LCTopoTrimmedPtFrac5SmallR20Jets"
362 if not config.isPhyslite()
or self.recalibratePhyslite:
363 if self.jetInput !=
"LCTopo":
365 "Unsupported input type '{0}' for R-scan jets!".
format(self.jetInput) )
367 alg = config.createAlgorithm(
'CP::JetCalibrationAlg',
'JetCalibrationAlg' )
368 config.addPrivateTool(
'calibrationTool',
'JetCalibrationTool' )
369 alg.calibrationTool.JetCollection = jetCollectionName[:-4]
370 alg.calibrationTool.ConfigFile = \
371 "JES_MC16Recommendation_Rscan{0}LC_Feb2022_R21.config".
format(self.radius)
372 if config.dataType()
is DataType.Data:
373 alg.calibrationTool.CalibSequence =
"JetArea_Residual_EtaJES_GSC_Insitu"
375 alg.calibrationTool.CalibSequence =
"JetArea_Residual_EtaJES_GSC_Smear"
376 alg.calibrationTool.IsData = (config.dataType()
is DataType.Data)
377 alg.jets = config.readName (self.containerName)
379 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: