CMS 3D CMS Logo

METSignificanceObjects_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 
6 
7 selectedMuons = cms.EDFilter(
8  "MuonSelector",
9  src = cms.InputTag('muons'),
10  cut = cms.string( "(isTrackerMuon) && pt > 5"
11  "&& isPFMuon"+
12  "&& globalTrack.isNonnull"+
13  "&& innerTrack.hitPattern.numberOfValidPixelHits > 0"+
14  "&& innerTrack.normalizedChi2 < 10"+
15  "&& numberOfMatches > 0"+
16  "&& innerTrack.hitPattern.numberOfValidTrackerHits>5"+
17  "&& globalTrack.hitPattern.numberOfValidHits>0"+
18  "&& (pfIsolationR03.sumChargedHadronPt+max(0.,pfIsolationR03.sumNeutralHadronEt+pfIsolationR03.sumPhotonEt - 0.5*pfIsolationR03.sumPUPt))/pt < 0.3"+
19  "&& abs(innerTrack().dxy)<2.0"
20  ),
21  filter = cms.bool(False)
22  )
23 
24 
25 
28 
29 selectedElectrons = cms.EDFilter(
30  "GsfElectronSelector",
31  src = cms.InputTag('gedGsfElectrons'),
32  cut = cms.string(
33  "abs(eta) < 2.5 && pt > 19.5" +
34  "&& (gsfTrack.hitPattern().numberOfLostHits(\'MISSING_INNER_HITS\')<=1 )" +
35  "&& (pfIsolationVariables.sumChargedHadronPt+max(0.,pfIsolationVariables.sumNeutralHadronEt+pfIsolationVariables.sumPhotonEt - 0.5*pfIsolationVariables.sumPUPt))/et < 0.3" +
36  "&& ((abs(eta) < 1.4442 " +
37  "&& abs(deltaEtaSuperClusterTrackAtVtx) < 0.007"+
38  "&& abs(deltaPhiSuperClusterTrackAtVtx) < 0.8" +
39  "&& sigmaIetaIeta < 0.01" +
40  "&& hcalOverEcal < 0.15" +
41  "&& abs(1./superCluster.energy - 1./p) < 0.05)"+
42  "|| (abs(eta) > 1.566 "+
43  "&& abs(deltaEtaSuperClusterTrackAtVtx) < 0.009"+
44  "&& abs(deltaPhiSuperClusterTrackAtVtx) < 0.10" +
45  "&& sigmaIetaIeta < 0.03" +
46  "&& hcalOverEcal < 0.10" +
47  "&& abs(1./superCluster.energy - 1./p) < 0.05))"
48  ),
49  filter = cms.bool(False)
50  )
51 
52 
53 
56 
57 selectedPhotons = cms.EDFilter("PhotonSelector",
58  src = cms.InputTag("photons"),
59  cut = cms.string(
60  "abs(eta) < 2.5 && pt > 19.5" +
61  "&& sigmaIetaIeta < 0.03" +
62  "&& hadronicOverEm < 0.05" +
63  "&& hasPixelSeed == 0" +
64  "&& (chargedHadronIso + neutralHadronIso + photonIso)/pt < 0.2"
65  )
66  )
67 
68 
69 selectionSequenceForMETSig = cms.Sequence(
70  selectedMuons+
71  selectedElectrons+
72  selectedPhotons
73  )