Skip to content

Commit

Permalink
use a variable for phase2 anti e base name
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Wozniewski committed Oct 23, 2020
1 parent c0b3daf commit bd1cc46
Showing 1 changed file with 25 additions and 24 deletions.
Original file line number Diff line number Diff line change
@@ -1,80 +1,81 @@
import FWCore.ParameterSet.Config as cms

# anti-e phase-2 tauID mva names
_antiEMVABaseName = "RecoTauTag_antiElectronMVAPhase2"
mvaNames_phase2 = dict(
mvaName_NoEleMatch_woGwoGSF_BL = cms.string("RecoTauTag_antiElectronMVAPhase2_NoEleMatch_woGwoGSF_BL"),
mvaName_NoEleMatch_wGwoGSF_BL = cms.string("RecoTauTag_antiElectronMVAPhase2_NoEleMatch_wGwoGSF_BL"),
mvaName_woGwGSF_BL = cms.string("RecoTauTag_antiElectronMVAPhase2_woGwGSF_BL"),
mvaName_wGwGSF_BL = cms.string("RecoTauTag_antiElectronMVAPhase2_wGwGSF_BL"),
mvaName_NoEleMatch_woGwoGSF_EC = cms.string("RecoTauTag_antiElectronMVAPhase2_NoEleMatch_woGwoGSF_FWEC"),
mvaName_NoEleMatch_wGwoGSF_EC = cms.string("RecoTauTag_antiElectronMVAPhase2_NoEleMatch_wGwoGSF_FWEC"),
mvaName_woGwGSF_EC = cms.string("RecoTauTag_antiElectronMVAPhase2_woGwGSF_FWEC"),
mvaName_wGwGSF_EC = cms.string("RecoTauTag_antiElectronMVAPhase2_wGwGSF_FWEC"),
mvaName_NoEleMatch_woGwoGSF_VFEC = cms.string("RecoTauTag_antiElectronMVAPhase2_NoEleMatch_woGwoGSF_VFWEC"),
mvaName_NoEleMatch_wGwoGSF_VFEC = cms.string("RecoTauTag_antiElectronMVAPhase2_NoEleMatch_wGwoGSF_VFWEC"),
mvaName_woGwGSF_VFEC = cms.string("RecoTauTag_antiElectronMVAPhase2_woGwGSF_VFWEC"),
mvaName_wGwGSF_VFEC = cms.string("RecoTauTag_antiElectronMVAPhase2_wGwGSF_VFWEC")
mvaName_NoEleMatch_woGwoGSF_BL = cms.string(_antiEMVABaseName+"_NoEleMatch_woGwoGSF_BL"),
mvaName_NoEleMatch_wGwoGSF_BL = cms.string(_antiEMVABaseName+"_NoEleMatch_wGwoGSF_BL"),
mvaName_woGwGSF_BL = cms.string(_antiEMVABaseName+"_woGwGSF_BL"),
mvaName_wGwGSF_BL = cms.string(_antiEMVABaseName+"_wGwGSF_BL"),
mvaName_NoEleMatch_woGwoGSF_EC = cms.string(_antiEMVABaseName+"_NoEleMatch_woGwoGSF_FWEC"),
mvaName_NoEleMatch_wGwoGSF_EC = cms.string(_antiEMVABaseName+"_NoEleMatch_wGwoGSF_FWEC"),
mvaName_woGwGSF_EC = cms.string(_antiEMVABaseName+"_woGwGSF_FWEC"),
mvaName_wGwGSF_EC = cms.string(_antiEMVABaseName+"_wGwGSF_FWEC"),
mvaName_NoEleMatch_woGwoGSF_VFEC = cms.string(_antiEMVABaseName+"_NoEleMatch_woGwoGSF_VFWEC"),
mvaName_NoEleMatch_wGwoGSF_VFEC = cms.string(_antiEMVABaseName+"_NoEleMatch_wGwoGSF_VFWEC"),
mvaName_woGwGSF_VFEC = cms.string(_antiEMVABaseName+"_woGwGSF_VFWEC"),
mvaName_wGwGSF_VFEC = cms.string(_antiEMVABaseName+"_wGwGSF_VFWEC")
)
# anti-e phase-2 tauID (WPs)
mapping_phase2 = cms.VPSet(
cms.PSet(
category = cms.uint32(0), # minMVANoEleMatchWOgWOgsfBL
cut = cms.string("RecoTauTag_antiElectronMVAPhase2_NoEleMatch_woGwoGSF_BL"),
cut = cms.string(_antiEMVABaseName+"_NoEleMatch_woGwoGSF_BL"),
variable = cms.string("pt")
),
cms.PSet(
category = cms.uint32(2), # minMVANoEleMatchWgWOgsfBL
cut = cms.string("RecoTauTag_antiElectronMVAPhase2_NoEleMatch_wGwoGSF_BL"),
cut = cms.string(_antiEMVABaseName+"_NoEleMatch_wGwoGSF_BL"),
variable = cms.string("pt")
),
cms.PSet(
category = cms.uint32(5), # minMVAWOgWgsfBL
cut = cms.string("RecoTauTag_antiElectronMVAPhase2_woGwGSF_BL"),
cut = cms.string(_antiEMVABaseName+"_woGwGSF_BL"),
variable = cms.string("pt")
),
cms.PSet(
category = cms.uint32(7), # minMVAWgWgsfBL
cut = cms.string("RecoTauTag_antiElectronMVAPhase2_wGwGSF_BL"),
cut = cms.string(_antiEMVABaseName+"_wGwGSF_BL"),
variable = cms.string("pt")
),
cms.PSet(
category = cms.uint32(8), # minMVANoEleMatchWOgWOgsfEC
cut = cms.string("RecoTauTag_antiElectronMVAPhase2_NoEleMatch_woGwoGSF_FWEC"),
cut = cms.string(_antiEMVABaseName+"_NoEleMatch_woGwoGSF_FWEC"),
variable = cms.string("pt")
),
cms.PSet(
category = cms.uint32(9), # minMVANoEleMatchWOgWOgsfVFEC
cut = cms.string("RecoTauTag_antiElectronMVAPhase2_NoEleMatch_woGwoGSF_VFWEC"),
cut = cms.string(_antiEMVABaseName+"_NoEleMatch_woGwoGSF_VFWEC"),
variable = cms.string("pt")
),
cms.PSet(
category = cms.uint32(10), # minMVANoEleMatchWgWOgsfEC
cut = cms.string("RecoTauTag_antiElectronMVAPhase2_NoEleMatch_wGwoGSF_FWEC"),
cut = cms.string(_antiEMVABaseName+"_NoEleMatch_wGwoGSF_FWEC"),
variable = cms.string("pt")
),
cms.PSet(
category = cms.uint32(11), # minMVANoEleMatchWgWOgsfVFEC
cut = cms.string("RecoTauTag_antiElectronMVAPhase2_NoEleMatch_wGwoGSF_VFWEC"),
cut = cms.string(_antiEMVABaseName+"_NoEleMatch_wGwoGSF_VFWEC"),
variable = cms.string("pt")
),
cms.PSet(
category = cms.uint32(13), # minMVAWOgWgsfEC
cut = cms.string("RecoTauTag_antiElectronMVAPhase2_woGwGSF_FWEC"),
cut = cms.string(_antiEMVABaseName+"_woGwGSF_FWEC"),
variable = cms.string("pt")
),
cms.PSet(
category = cms.uint32(14), # minMVAWOgWgsfVFEC
cut = cms.string("RecoTauTag_antiElectronMVAPhase2_woGwGSF_VFWEC"),
cut = cms.string(_antiEMVABaseName+"_woGwGSF_VFWEC"),
variable = cms.string("pt")
),
cms.PSet(
category = cms.uint32(15), # minMVAWgWgsfEC
cut = cms.string("RecoTauTag_antiElectronMVAPhase2_wGwGSF_FWEC"),
cut = cms.string(_antiEMVABaseName+"_wGwGSF_FWEC"),
variable = cms.string("pt")
),
cms.PSet(
category = cms.uint32(16), # minMVAWgWgsfVFEC
cut = cms.string("RecoTauTag_antiElectronMVAPhase2_wGwGSF_VFWEC"),
cut = cms.string(_antiEMVABaseName+"_wGwGSF_VFWEC"),
variable = cms.string("pt")
)
)
Expand Down

0 comments on commit bd1cc46

Please sign in to comment.