3 antiMuonDiscrMVA_inputFileName =
"RecoTauTag/RecoTau/data/gbrDiscriminationAgainstMuonMVA.root"
5 antiMuonDiscrMVA_version =
"v1"
7 writeAntiMuonDiscrMVAs = cms.EDAnalyzer(
"GBRForestWriter",
11 antiMuonDiscrMVA_inputFileName = {
12 'GBRForest' :
"RecoTauTag/RecoTau/data/gbrDiscriminationAgainstMuonMVA.root",
13 'TGraph' :
"RecoTauTag/RecoTau/data/wpDiscriminationByMVAMuonRejection.root"
16 antiMuonDiscrMVA_WPs = [
"eff99_5",
"eff99_0",
"eff98_0" ]
18 antiMuonDiscrMVA_version =
"v1"
20 writeAntiMuonDiscrMVAs = cms.EDAnalyzer(
"GBRForestWriter",
23 writeAntiMuonDiscrWPs = cms.EDAnalyzer(
"TGraphWriter",
26 writeAntiMuonDiscrMVAoutputNormalizations = cms.EDAnalyzer(
"TFormulaWriter",
30 gbrForestName =
"againstMuonMVA"
32 writeAntiMuonDiscrMVAs.jobs.append(
34 inputFileName = cms.FileInPath(antiMuonDiscrMVA_inputFileName[
'GBRForest']),
35 inputFileType = cms.string(
"GBRForest"),
36 gbrForestName = cms.string(gbrForestName),
37 outputFileType = cms.string(
"SQLLite"),
38 outputRecord = cms.string(
"RecoTauTag_%s%s" % (gbrForestName, antiMuonDiscrMVA_version))
41 for WP
in antiMuonDiscrMVA_WPs:
42 writeAntiMuonDiscrWPs.jobs.append(
44 inputFileName = cms.FileInPath(antiMuonDiscrMVA_inputFileName[
'TGraph']),
45 graphName = cms.string(
"opt2%s" % WP),
46 outputRecord = cms.string(
"RecoTauTag_%s%s_WP%s" % (gbrForestName, antiMuonDiscrMVA_version, WP))
49 writeAntiMuonDiscrMVAoutputNormalizations.jobs.append(
51 inputFileName = cms.FileInPath(antiMuonDiscrMVA_inputFileName[
'TGraph']),
52 formulaName = cms.string(
"mvaOutput_normalization_opt2"),
53 outputRecord = cms.string(
"RecoTauTag_%s%s_mvaOutput_normalization" % (gbrForestName, antiMuonDiscrMVA_version))
57 writeAntiMuonDiscrSequence = cms.Sequence(writeAntiMuonDiscrMVAs + writeAntiMuonDiscrWPs + writeAntiMuonDiscrMVAoutputNormalizations)