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