Skip to content

Commit

Permalink
Merge pull request #38339 from swagata87/xmltoroot_egammaID
Browse files Browse the repository at this point in the history
[EGM MVA ID] xml.gz to root conversion
  • Loading branch information
cmsbuild authored Jun 13, 2022
2 parents 4bcf4fe + db56edf commit 6f64b14
Show file tree
Hide file tree
Showing 9 changed files with 51 additions and 51 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@


mvaFall17WeightFiles_V1 = cms.vstring(
"RecoEgamma/ElectronIdentification/data/Fall17/EIDmva_EB1_5_2017_puinfo_iso_BDT.weights.xml.gz",
"RecoEgamma/ElectronIdentification/data/Fall17/EIDmva_EB2_5_2017_puinfo_iso_BDT.weights.xml.gz",
"RecoEgamma/ElectronIdentification/data/Fall17/EIDmva_EE_5_2017_puinfo_iso_BDT.weights.xml.gz",
"RecoEgamma/ElectronIdentification/data/Fall17/EIDmva_EB1_10_2017_puinfo_iso_BDT.weights.xml.gz",
"RecoEgamma/ElectronIdentification/data/Fall17/EIDmva_EB2_10_2017_puinfo_iso_BDT.weights.xml.gz",
"RecoEgamma/ElectronIdentification/data/Fall17/EIDmva_EE_10_2017_puinfo_iso_BDT.weights.xml.gz"
"RecoEgamma/ElectronIdentification/data/Fall17/EIDmva_EB1_5_2017_puinfo_iso_BDT.weights.root",
"RecoEgamma/ElectronIdentification/data/Fall17/EIDmva_EB2_5_2017_puinfo_iso_BDT.weights.root",
"RecoEgamma/ElectronIdentification/data/Fall17/EIDmva_EE_5_2017_puinfo_iso_BDT.weights.root",
"RecoEgamma/ElectronIdentification/data/Fall17/EIDmva_EB1_10_2017_puinfo_iso_BDT.weights.root",
"RecoEgamma/ElectronIdentification/data/Fall17/EIDmva_EB2_10_2017_puinfo_iso_BDT.weights.root",
"RecoEgamma/ElectronIdentification/data/Fall17/EIDmva_EE_10_2017_puinfo_iso_BDT.weights.root"
)

## The working point for this MVA that is expected to have about 90% signal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
weightFileDir = "RecoEgamma/ElectronIdentification/data/MVAWeightFiles/Fall17IsoV2"

mvaWeightFiles = [
path.join(weightFileDir, "EB1_5.weights.xml.gz"), # EB1_5
path.join(weightFileDir, "EB2_5.weights.xml.gz"), # EB2_5
path.join(weightFileDir, "EE_5.weights.xml.gz"), # EE_5
path.join(weightFileDir, "EB1_10.weights.xml.gz"), # EB1_10
path.join(weightFileDir, "EB2_10.weights.xml.gz"), # EB2_10
path.join(weightFileDir, "EE_10.weights.xml.gz"), # EE_10
path.join(weightFileDir, "EB1_5.weights.root"), # EB1_5
path.join(weightFileDir, "EB2_5.weights.root"), # EB2_5
path.join(weightFileDir, "EE_5.weights.root"), # EE_5
path.join(weightFileDir, "EB1_10.weights.root"), # EB1_10
path.join(weightFileDir, "EB2_10.weights.root"), # EB2_10
path.join(weightFileDir, "EE_10.weights.root"), # EE_10
]

mvaEleID_Fall17_iso_V2_wpHZZ_container = EleMVARaw_WP(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@


mvaFall17WeightFiles_V1 = cms.vstring(
"RecoEgamma/ElectronIdentification/data/Fall17/EIDmva_EB1_5_2017_puinfo_BDT.weights.xml.gz",
"RecoEgamma/ElectronIdentification/data/Fall17/EIDmva_EB2_5_2017_puinfo_BDT.weights.xml.gz",
"RecoEgamma/ElectronIdentification/data/Fall17/EIDmva_EE_5_2017_puinfo_BDT.weights.xml.gz",
"RecoEgamma/ElectronIdentification/data/Fall17/EIDmva_EB1_10_2017_puinfo_BDT.weights.xml.gz",
"RecoEgamma/ElectronIdentification/data/Fall17/EIDmva_EB2_10_2017_puinfo_BDT.weights.xml.gz",
"RecoEgamma/ElectronIdentification/data/Fall17/EIDmva_EE_10_2017_puinfo_BDT.weights.xml.gz"
"RecoEgamma/ElectronIdentification/data/Fall17/EIDmva_EB1_5_2017_puinfo_BDT.weights.root",
"RecoEgamma/ElectronIdentification/data/Fall17/EIDmva_EB2_5_2017_puinfo_BDT.weights.root",
"RecoEgamma/ElectronIdentification/data/Fall17/EIDmva_EE_5_2017_puinfo_BDT.weights.root",
"RecoEgamma/ElectronIdentification/data/Fall17/EIDmva_EB1_10_2017_puinfo_BDT.weights.root",
"RecoEgamma/ElectronIdentification/data/Fall17/EIDmva_EB2_10_2017_puinfo_BDT.weights.root",
"RecoEgamma/ElectronIdentification/data/Fall17/EIDmva_EE_10_2017_puinfo_BDT.weights.root"
)

## The working point for this MVA that is expected to have about 90% signal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
weightFileDir = "RecoEgamma/ElectronIdentification/data/MVAWeightFiles/Fall17NoIsoV2"

mvaWeightFiles = cms.vstring(
path.join(weightFileDir, "EB1_5.weights.xml.gz"), # EB1_5
path.join(weightFileDir, "EB2_5.weights.xml.gz"), # EB2_5
path.join(weightFileDir, "EE_5.weights.xml.gz"), # EE_5
path.join(weightFileDir, "EB1_10.weights.xml.gz"), # EB1_10
path.join(weightFileDir, "EB2_10.weights.xml.gz"), # EB2_10
path.join(weightFileDir, "EE_10.weights.xml.gz"), # EE_10
path.join(weightFileDir, "EB1_5.weights.root"), # EB1_5
path.join(weightFileDir, "EB2_5.weights.root"), # EB2_5
path.join(weightFileDir, "EE_5.weights.root"), # EE_5
path.join(weightFileDir, "EB1_10.weights.root"), # EB1_10
path.join(weightFileDir, "EB2_10.weights.root"), # EB2_10
path.join(weightFileDir, "EE_10.weights.root"), # EE_10
)

mvaEleID_Fall17_noIso_V2_wp80_container = EleMVARaw_WP(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
# 2 EE pt 10-inf GeV

mvaSpring16WeightFiles_V1 = cms.vstring(
"RecoEgamma/ElectronIdentification/data/Spring16_GeneralPurpose_V1/electronID_mva_Spring16_GeneralPurpose_V1_EB1_10.weights.xml.gz",
"RecoEgamma/ElectronIdentification/data/Spring16_GeneralPurpose_V1/electronID_mva_Spring16_GeneralPurpose_V1_EB2_10.weights.xml.gz",
"RecoEgamma/ElectronIdentification/data/Spring16_GeneralPurpose_V1/electronID_mva_Spring16_GeneralPurpose_V1_EE_10.weights.xml.gz"
"RecoEgamma/ElectronIdentification/data/Spring16_GeneralPurpose_V1/electronID_mva_Spring16_GeneralPurpose_V1_EB1_10.weights.root",
"RecoEgamma/ElectronIdentification/data/Spring16_GeneralPurpose_V1/electronID_mva_Spring16_GeneralPurpose_V1_EB2_10.weights.root",
"RecoEgamma/ElectronIdentification/data/Spring16_GeneralPurpose_V1/electronID_mva_Spring16_GeneralPurpose_V1_EE_10.weights.root"
)

### WP to give about 90 and 80% signal efficiecny for electrons from Drell-Yan with pT > 25 GeV
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@
# 5 EE pt 10-inf GeV

mvaSpring16WeightFiles_V1 = cms.vstring(
"RecoEgamma/ElectronIdentification/data/Spring16_HZZ_V1/electronID_mva_Spring16_HZZ_V1_EB1_5.weights.xml.gz",
"RecoEgamma/ElectronIdentification/data/Spring16_HZZ_V1/electronID_mva_Spring16_HZZ_V1_EB2_5.weights.xml.gz",
"RecoEgamma/ElectronIdentification/data/Spring16_HZZ_V1/electronID_mva_Spring16_HZZ_V1_EE_5.weights.xml.gz",
"RecoEgamma/ElectronIdentification/data/Spring16_HZZ_V1/electronID_mva_Spring16_HZZ_V1_EB1_10.weights.xml.gz",
"RecoEgamma/ElectronIdentification/data/Spring16_HZZ_V1/electronID_mva_Spring16_HZZ_V1_EB2_10.weights.xml.gz",
"RecoEgamma/ElectronIdentification/data/Spring16_HZZ_V1/electronID_mva_Spring16_HZZ_V1_EE_10.weights.xml.gz"
"RecoEgamma/ElectronIdentification/data/Spring16_HZZ_V1/electronID_mva_Spring16_HZZ_V1_EB1_5.weights.root",
"RecoEgamma/ElectronIdentification/data/Spring16_HZZ_V1/electronID_mva_Spring16_HZZ_V1_EB2_5.weights.root",
"RecoEgamma/ElectronIdentification/data/Spring16_HZZ_V1/electronID_mva_Spring16_HZZ_V1_EE_5.weights.root",
"RecoEgamma/ElectronIdentification/data/Spring16_HZZ_V1/electronID_mva_Spring16_HZZ_V1_EB1_10.weights.root",
"RecoEgamma/ElectronIdentification/data/Spring16_HZZ_V1/electronID_mva_Spring16_HZZ_V1_EB2_10.weights.root",
"RecoEgamma/ElectronIdentification/data/Spring16_HZZ_V1/electronID_mva_Spring16_HZZ_V1_EE_10.weights.root"
)

### WP tuned for HZZ analysis with very high efficiency (about 98%)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
weightFileDir = "RecoEgamma/ElectronIdentification/data/MVAWeightFiles/Summer_16UL_ID_ISO"

mvaWeightFiles = cms.vstring(
path.join(weightFileDir, "EB1_5.weights.xml.gz"), # EB1_5
path.join(weightFileDir, "EB2_5.weights.xml.gz"), # EB2_5
path.join(weightFileDir, "EE_5.weights.xml.gz"), # EE_5
path.join(weightFileDir, "EB1_10.weights.xml.gz"), # EB1_10
path.join(weightFileDir, "EB2_10.weights.xml.gz"), # EB2_10
path.join(weightFileDir, "EE_10.weights.xml.gz"), # EE_10
path.join(weightFileDir, "EB1_5.weights.root"), # EB1_5
path.join(weightFileDir, "EB2_5.weights.root"), # EB2_5
path.join(weightFileDir, "EE_5.weights.root"), # EE_5
path.join(weightFileDir, "EB1_10.weights.root"), # EB1_10
path.join(weightFileDir, "EB2_10.weights.root"), # EB2_10
path.join(weightFileDir, "EE_10.weights.root"), # EE_10
)

categoryCuts = cms.vstring(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
weightFileDir = "RecoEgamma/ElectronIdentification/data/MVAWeightFiles/Summer_17UL_ID_ISO"

mvaWeightFiles = cms.vstring(
path.join(weightFileDir, "EB1_5.weights.xml.gz"), # EB1_5
path.join(weightFileDir, "EB2_5.weights.xml.gz"), # EB2_5
path.join(weightFileDir, "EE_5.weights.xml.gz"), # EE_5
path.join(weightFileDir, "EB1_10.weights.xml.gz"), # EB1_10
path.join(weightFileDir, "EB2_10.weights.xml.gz"), # EB2_10
path.join(weightFileDir, "EE_10.weights.xml.gz"), # EE_10
path.join(weightFileDir, "EB1_5.weights.root"), # EB1_5
path.join(weightFileDir, "EB2_5.weights.root"), # EB2_5
path.join(weightFileDir, "EE_5.weights.root"), # EE_5
path.join(weightFileDir, "EB1_10.weights.root"), # EB1_10
path.join(weightFileDir, "EB2_10.weights.root"), # EB2_10
path.join(weightFileDir, "EE_10.weights.root"), # EE_10
)

categoryCuts = cms.vstring(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
weightFileDir = "RecoEgamma/ElectronIdentification/data/MVAWeightFiles/Summer_18UL_ID_ISO"

mvaWeightFiles = cms.vstring(
path.join(weightFileDir, "EB1_5.weights.xml.gz"), # EB1_5
path.join(weightFileDir, "EB2_5.weights.xml.gz"), # EB2_5
path.join(weightFileDir, "EE_5.weights.xml.gz"), # EE_5
path.join(weightFileDir, "EB1_10.weights.xml.gz"), # EB1_10
path.join(weightFileDir, "EB2_10.weights.xml.gz"), # EB2_10
path.join(weightFileDir, "EE_10.weights.xml.gz"), # EE_10
path.join(weightFileDir, "EB1_5.weights.root"), # EB1_5
path.join(weightFileDir, "EB2_5.weights.root"), # EB2_5
path.join(weightFileDir, "EE_5.weights.root"), # EE_5
path.join(weightFileDir, "EB1_10.weights.root"), # EB1_10
path.join(weightFileDir, "EB2_10.weights.root"), # EB2_10
path.join(weightFileDir, "EE_10.weights.root"), # EE_10
)

categoryCuts = cms.vstring(
Expand Down

0 comments on commit 6f64b14

Please sign in to comment.