the ConfigBlock for the r-scan jet sequence
Definition at line 427 of file JetAnalysisConfig.py.
◆ __init__()
def python.JetAnalysisConfig.RScanJetAnalysisConfig.__init__ |
( |
|
self, |
|
|
|
containerName = '' , |
|
|
|
jetCollection = '' , |
|
|
|
jetInput = '' , |
|
|
|
radius = None |
|
) |
| |
Definition at line 430 of file JetAnalysisConfig.py.
430 def __init__ (self, containerName='', jetCollection='', jetInput='', radius=None) :
431 super (RScanJetAnalysisConfig, self).__init__ ()
432 self.addOption (
'containerName', containerName, type=str,
434 info=
"the name of the output container after calibration.")
435 self.addOption (
'jetCollection', jetCollection, type=str,
437 info=
"the jet container to run on. It is interpreted to determine "
438 "the correct config blocks to call for small- or large-R jets.")
440 self.addOption (
'jetInput', jetInput, type=str,
444 self.addOption (radius, radius, type=int,
447 self.addOption (
'recalibratePhyslite',
True, type=bool,
448 info=
"whether to run the CP::JetCalibrationAlg on PHYSLITE "
449 "derivations. The default is True.")
◆ makeAlgs()
def python.JetAnalysisConfig.RScanJetAnalysisConfig.makeAlgs |
( |
|
self, |
|
|
|
config |
|
) |
| |
Definition at line 452 of file JetAnalysisConfig.py.
452 def makeAlgs (self, config) :
454 log = logging.getLogger(
'RScanJetAnalysisConfig')
456 jetCollectionName=self.jetCollection
457 if(self.jetCollection==
"AnalysisJets") :
458 jetCollectionName=
"AntiKt4EMPFlowJets"
459 if(self.jetCollection==
"AnalysisLargeRJets") :
460 jetCollectionName=
"AntiKt10LCTopoTrimmedPtFrac5SmallR20Jets"
462 if not config.isPhyslite()
or self.recalibratePhyslite:
463 if self.jetInput !=
"LCTopo":
465 "Unsupported input type '{0}' for R-scan jets!".
format(self.jetInput) )
467 alg = config.createAlgorithm(
'CP::JetCalibrationAlg',
'JetCalibrationAlg'+self.containerName )
468 config.addPrivateTool(
'calibrationTool',
'JetCalibrationTool' )
469 alg.calibrationTool.JetCollection = jetCollectionName[:-4]
470 alg.calibrationTool.ConfigFile = \
471 "JES_MC16Recommendation_Rscan{0}LC_Feb2022_R21.config".
format(self.radius)
472 if config.dataType()
is DataType.Data:
473 alg.calibrationTool.CalibSequence =
"JetArea_Residual_EtaJES_GSC_Insitu"
475 alg.calibrationTool.CalibSequence =
"JetArea_Residual_EtaJES_GSC_Smear"
476 alg.calibrationTool.IsData = (config.dataType()
is DataType.Data)
477 alg.jets = config.readName (self.containerName)
479 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: