33 log = logging.getLogger(
'JetJvtAnalysisConfig')
34 log.warning(
"The JVT block is deprecated and its functionality has been moved to the (F)JVTWorkingPoint blocks.")
36 if config.dataType()
is DataType.Data:
return
38 postfix = self.postfix
39 if postfix !=
'' and postfix[0] !=
'_' :
40 postfix =
'_' + postfix
43 alg = config.createAlgorithm(
'CP::AsgEventScaleFactorAlg',
'JvtEventScaleFactorAlg' )
44 preselection = config.getFullSelection (self.containerName,
'')
45 alg.preselection = preselection +
'&&no_jvt' if preselection
else 'no_jvt'
46 alg.scaleFactorInputDecoration =
'jvt_effSF_%SYS%'
47 alg.scaleFactorOutputDecoration =
'jvt_effSF_%SYS%'
48 alg.particles = config.readName (self.containerName)
50 config.addOutputVar(
'EventInfo', alg.scaleFactorOutputDecoration,
'weight_jvt_effSF' + postfix)
53 alg = config.createAlgorithm(
'CP::AsgEventScaleFactorAlg',
'ForwardJvtEventScaleFactorAlg' )
54 preselection = config.getFullSelection (self.containerName,
'')
55 alg.preselection = preselection +
'&&no_fjvt' if preselection
else 'no_fjvt'
56 alg.scaleFactorInputDecoration =
'fjvt_effSF_%SYS%'
57 alg.scaleFactorOutputDecoration =
'fjvt_effSF_%SYS%'
58 alg.particles = config.readName (self.containerName)
60 config.addOutputVar(
'EventInfo', alg.scaleFactorOutputDecoration,
'weight_fjvt_effSF' + postfix)