Skip to content

Commit

Permalink
Renamed cut based ID and put in MiniAOD
Browse files Browse the repository at this point in the history
  • Loading branch information
guitargeek committed Nov 19, 2018
1 parent 9e92d1c commit 752da9c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
1 change: 1 addition & 0 deletions PhysicsTools/PatAlgos/python/slimming/miniAOD_tools.py
Expand Up @@ -316,6 +316,7 @@ def miniAOD_customizeCommon(process):
#VID Photon IDs
process.patPhotons.addPhotonID = cms.bool(True)
photon_ids = ['RecoEgamma.PhotonIdentification.Identification.cutBasedPhotonID_Fall17_94X_V1_TrueVtx_cff',
'RecoEgamma.PhotonIdentification.Identification.cutBasedPhotonID_Fall17_94X_V2_cff',
'RecoEgamma.PhotonIdentification.Identification.mvaPhotonID_Fall17_94X_V1_cff',
'RecoEgamma.PhotonIdentification.Identification.mvaPhotonID_Fall17_94X_V1p1_cff',
'RecoEgamma.PhotonIdentification.Identification.mvaPhotonID_Fall17_94X_V2_cff',
Expand Down
Expand Up @@ -22,7 +22,7 @@
#

# Loose working point Barrel and Endcap
idName = "cutBasedPhotonID-Fall17-100X-V2-loose"
idName = "cutBasedPhotonID-Fall17-94X-V2-loose"
WP_Loose_EB = WorkingPoint_V2(
idName , # idName
0.04596 , # hOverECut
Expand Down Expand Up @@ -51,7 +51,7 @@
)

# Medium working point Barrel and Endcap
idName = "cutBasedPhotonID-Fall17-100X-V2-medium"
idName = "cutBasedPhotonID-Fall17-94X-V2-medium"
WP_Medium_EB = WorkingPoint_V2(
idName , # idName
0.02197 , # hOverECut
Expand Down Expand Up @@ -81,7 +81,7 @@
)

# Tight working point Barrel and Endcap
idName = "cutBasedPhotonID-Fall17-100X-V2-tight"
idName = "cutBasedPhotonID-Fall17-94X-V2-tight"
WP_Tight_EB = WorkingPoint_V2(
idName , # idName
0.02148 , # hOverECut
Expand Down Expand Up @@ -131,9 +131,9 @@
#
# Finally, set up VID configuration for all cuts
#
cutBasedPhotonID_Fall17_100X_V2_loose = configureVIDCutBasedPhoID_V5 ( WP_Loose_EB, WP_Loose_EE, isoInputs)
cutBasedPhotonID_Fall17_100X_V2_medium = configureVIDCutBasedPhoID_V5 ( WP_Medium_EB, WP_Medium_EE, isoInputs)
cutBasedPhotonID_Fall17_100X_V2_tight = configureVIDCutBasedPhoID_V5 ( WP_Tight_EB, WP_Tight_EE, isoInputs)
cutBasedPhotonID_Fall17_94X_V2_loose = configureVIDCutBasedPhoID_V5 ( WP_Loose_EB, WP_Loose_EE, isoInputs)
cutBasedPhotonID_Fall17_94X_V2_medium = configureVIDCutBasedPhoID_V5 ( WP_Medium_EB, WP_Medium_EE, isoInputs)
cutBasedPhotonID_Fall17_94X_V2_tight = configureVIDCutBasedPhoID_V5 ( WP_Tight_EB, WP_Tight_EE, isoInputs)

## The MD5 sum numbers below reflect the exact set of cut variables
# and values above. If anything changes, one has to
Expand All @@ -142,13 +142,13 @@
# 3) update the MD5 sum strings below and uncomment the lines again.
#

central_id_registry.register(cutBasedPhotonID_Fall17_100X_V2_loose.idName,
central_id_registry.register(cutBasedPhotonID_Fall17_94X_V2_loose.idName,
'4578dfcceb0bfd1ba5ac28973c843fd0')
central_id_registry.register(cutBasedPhotonID_Fall17_100X_V2_medium.idName,
central_id_registry.register(cutBasedPhotonID_Fall17_94X_V2_medium.idName,
'28b186c301061395f394a81266c8d7de')
central_id_registry.register(cutBasedPhotonID_Fall17_100X_V2_tight.idName,
central_id_registry.register(cutBasedPhotonID_Fall17_94X_V2_tight.idName,
'6f4f0ed6a8bf2de8dcf0bc3349b0546d')

cutBasedPhotonID_Fall17_100X_V2_loose.isPOGApproved = cms.untracked.bool(True)
cutBasedPhotonID_Fall17_100X_V2_medium.isPOGApproved = cms.untracked.bool(True)
cutBasedPhotonID_Fall17_100X_V2_tight.isPOGApproved = cms.untracked.bool(True)
cutBasedPhotonID_Fall17_94X_V2_loose.isPOGApproved = cms.untracked.bool(True)
cutBasedPhotonID_Fall17_94X_V2_medium.isPOGApproved = cms.untracked.bool(True)
cutBasedPhotonID_Fall17_94X_V2_tight.isPOGApproved = cms.untracked.bool(True)

0 comments on commit 752da9c

Please sign in to comment.