Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:34:26

0001 from PhysicsTools.SelectorUtils.centralIDRegistry import central_id_registry
0002 
0003 # Common functions and classes for ID definition are imported here:
0004 from RecoEgamma.ElectronIdentification.Identification.cutBasedElectronID_tools import *
0005 
0006 #
0007 # This is the first round of Spring15 50ns cuts, optimized on  Spring15 50ns samples. 
0008 #
0009 # The ID cuts below are optimized IDs for Spring15 Scenario with 50ns bunch spacing
0010 # The cut values are taken from the twiki:
0011 #       https://twiki.cern.ch/twiki/bin/view/CMS/CutBasedElectronIdentificationRun2
0012 #       (where they may not stay, if a newer version of cuts becomes available for these
0013 #        conditions)
0014 # See also the presentation explaining these working points (this will not change):
0015 #        https://indico.cern.ch/event/369239/contribution/6/attachments/1134836/1623383/Rami_eleCB_ID_50ns.pdf
0016 #
0017 # First, define cut values
0018 #
0019 
0020 # Veto working point Barrel and Endcap
0021 idName = "cutBasedElectronID-Spring15-50ns-V1-standalone-veto"
0022 WP_Veto_EB = EleWorkingPoint_V2(
0023     idName   , # idName
0024     0.0126   , # dEtaInCut
0025     0.107    , # dPhiInCut
0026     0.012    , # full5x5_sigmaIEtaIEtaCut
0027     0.186    , # hOverECut
0028     0.0621   , # dxyCut
0029     0.613    , # dzCut
0030     0.239    , # absEInverseMinusPInverseCut
0031     0.161    , # relCombIsolationWithEALowPtCut
0032     0.161 , # relCombIsolationWithEAHighPtCut
0033     # conversion veto cut needs no parameters, so not mentioned
0034     2          # missingHitsCut
0035     )
0036 
0037 WP_Veto_EE = EleWorkingPoint_V2(
0038     idName   , # idName
0039     0.0109   , # dEtaInCut
0040     0.219    , # dPhiInCut
0041     0.0339   , # full5x5_sigmaIEtaIEtaCut
0042     0.0962   , # hOverECut
0043     0.279    , # dxyCut
0044     0.947    , # dzCut
0045     0.141    , # absEInverseMinusPInverseCut
0046     0.193    , # relCombIsolationWithEALowPtCut
0047     0.193    , # relCombIsolationWithEAHighPtCut
0048     # conversion veto cut needs no parameters, so not mentioned
0049     3          # missingHitsCut
0050     )
0051 
0052 # Loose working point Barrel and Endcap
0053 idName = "cutBasedElectronID-Spring15-50ns-V1-standalone-loose"
0054 WP_Loose_EB = EleWorkingPoint_V2(
0055     idName   , # idName
0056     0.0098   , # dEtaInCut
0057     0.0929   , # dPhiInCut
0058     0.0105   , # full5x5_sigmaIEtaIEtaCut
0059     0.0765   , # hOverECut
0060     0.0227   , # dxyCut
0061     0.379    , # dzCut
0062     0.184    , # absEInverseMinusPInverseCut
0063     0.118    , # relCombIsolationWithEALowPtCut
0064     0.118    , # relCombIsolationWithEAHighPtCut
0065     # conversion veto cut needs no parameters, so not mentioned
0066     2          # missingHitsCut
0067     )
0068 
0069 WP_Loose_EE = EleWorkingPoint_V2(
0070     idName   , # idName
0071     0.00950  , # dEtaInCut
0072     0.181    , # dPhiInCut
0073     0.0318   , # full5x5_sigmaIEtaIEtaCut
0074     0.0824   , # hOverECut
0075     0.242    , # dxyCut
0076     0.921    , # dzCut
0077     0.125    , # absEInverseMinusPInverseCut
0078     0.118    , # relCombIsolationWithEALowPtCut
0079     0.118    , # relCombIsolationWithEAHighPtCut
0080     # conversion veto cut needs no parameters, so not mentioned
0081     1          # missingHitsCut
0082     )
0083 
0084 # Medium working point Barrel and Endcap
0085 idName = "cutBasedElectronID-Spring15-50ns-V1-standalone-medium"
0086 WP_Medium_EB = EleWorkingPoint_V2(
0087     idName   , # idName
0088     0.00945  , # dEtaInCut
0089     0.0296   , # dPhiInCut
0090     0.0101   , # full5x5_sigmaIEtaIEtaCut
0091     0.0372   , # hOverECut
0092     0.0151   , # dxyCut
0093     0.238    , # dzCut
0094     0.118    , # absEInverseMinusPInverseCut
0095     0.0987   , # relCombIsolationWithEALowPtCut
0096     0.0987   , # relCombIsolationWithEAHighPtCut
0097     # conversion veto cut needs no parameters, so not mentioned
0098     2          # missingHitsCut
0099     )
0100 
0101 WP_Medium_EE = EleWorkingPoint_V2(
0102     idName   , # idName
0103     0.00773  , # dEtaInCut
0104     0.148    , # dPhiInCut
0105     0.0287   , # full5x5_sigmaIEtaIEtaCut
0106     0.0546   , # hOverECut
0107     0.0535   , # dxyCut
0108     0.572    , # dzCut
0109     0.104    , # absEInverseMinusPInverseCut
0110     0.0902   , # relCombIsolationWithEALowPtCut
0111     0.0902   , # relCombIsolationWithEAHighPtCut
0112     # conversion veto cut needs no parameters, so not mentioned
0113     1          # missingHitsCut
0114     )
0115 
0116 # Tight working point Barrel and Endcap
0117 idName = "cutBasedElectronID-Spring15-50ns-V1-standalone-tight"
0118 WP_Tight_EB = EleWorkingPoint_V2(
0119     idName   , # idName
0120     0.00950  , # dEtaInCut
0121     0.0291   , # dPhiInCut
0122     0.0101   , # full5x5_sigmaIEtaIEtaCut
0123     0.0372   , # hOverECut
0124     0.0144   , # dxyCut
0125     0.323    , # dzCut
0126     0.0174   , # absEInverseMinusPInverseCut
0127     0.0468   , # relCombIsolationWithEALowPtCut
0128     0.0468   , # relCombIsolationWithEAHighPtCut
0129     # conversion veto cut needs no parameters, so not mentioned
0130     2          # missingHitsCut
0131     )
0132 
0133 WP_Tight_EE = EleWorkingPoint_V2(
0134     idName   , # idName
0135     0.00762  , # dEtaInCut
0136     0.0439   , # dPhiInCut
0137     0.0287   , # full5x5_sigmaIEtaIEtaCut
0138     0.0544   , # hOverECut
0139     0.0377   , # dxyCut
0140     0.571    , # dzCut
0141     0.0100   , # absEInverseMinusPInverseCut
0142     0.0759   , # relCombIsolationWithEALowPtCut
0143     0.0759   , # relCombIsolationWithEAHighPtCut
0144     # conversion veto cut needs no parameters, so not mentioned
0145     1          # missingHitsCut
0146     )
0147 
0148 # Second, define what effective areas to use for pile-up correction
0149 isoEffAreas = "RecoEgamma/ElectronIdentification/data/Spring15/effAreaElectrons_cone03_pfNeuHadronsAndPhotons_50ns.txt"
0150 
0151 
0152 #
0153 # Set up VID configuration for all cuts and working points
0154 #
0155 
0156 cutBasedElectronID_Spring15_50ns_V1_standalone_veto = configureVIDCutBasedEleID_V2(WP_Veto_EB, WP_Veto_EE, isoEffAreas)
0157 cutBasedElectronID_Spring15_50ns_V1_standalone_loose = configureVIDCutBasedEleID_V2(WP_Loose_EB, WP_Loose_EE, isoEffAreas)
0158 cutBasedElectronID_Spring15_50ns_V1_standalone_medium = configureVIDCutBasedEleID_V2(WP_Medium_EB, WP_Medium_EE, isoEffAreas)
0159 cutBasedElectronID_Spring15_50ns_V1_standalone_tight = configureVIDCutBasedEleID_V2(WP_Tight_EB, WP_Tight_EE, isoEffAreas)
0160 
0161 
0162 central_id_registry.register(cutBasedElectronID_Spring15_50ns_V1_standalone_veto.idName,
0163                              '1430580668994ed3805fc833c314354e')
0164 central_id_registry.register(cutBasedElectronID_Spring15_50ns_V1_standalone_loose.idName,
0165                              '73e5cdf3377e99aa208851339f4906b9')
0166 central_id_registry.register(cutBasedElectronID_Spring15_50ns_V1_standalone_medium.idName,
0167                              '2623f1f07173be98c3c3d6e6b69434a6')
0168 central_id_registry.register(cutBasedElectronID_Spring15_50ns_V1_standalone_tight.idName,
0169                              '19b4ab8a58bda9c2e1b79b0694f6eee7')
0170 
0171 
0172 # for now until we have a database...
0173 cutBasedElectronID_Spring15_50ns_V1_standalone_veto.isPOGApproved = cms.untracked.bool(True)
0174 cutBasedElectronID_Spring15_50ns_V1_standalone_loose.isPOGApproved = cms.untracked.bool(True)
0175 cutBasedElectronID_Spring15_50ns_V1_standalone_medium.isPOGApproved = cms.untracked.bool(True)
0176 cutBasedElectronID_Spring15_50ns_V1_standalone_tight.isPOGApproved = cms.untracked.bool(True)