Go to the documentation of this file.00001 import FWCore.ParameterSet.Config as cms
00002
00003 HLTPath = "HLT_Ele"
00004 HLTProcessName = "HLT"
00005
00006
00007 ELECTRON_ET_CUT_MIN = 10.0
00008 TAG_ELECTRON_ET_CUT_MIN = 20.0
00009
00010
00011 PHOTON_ET_CUT_MIN = 10.0
00012 PHOTON_COLL = "photons"
00013 PHOTON_CUTS = "(abs(superCluster.eta)<2.5) && ( hadronicOverEm<0.5 || ((isEB && sigmaIetaIeta<0.02) || (isEE && sigmaIetaIeta<0.04)) ) && (superCluster.energy*sin(superCluster.position.theta)>" + str(PHOTON_ET_CUT_MIN) + ")"
00014
00015
00016 TRACK_ET_CUT_MIN = 25.0
00017
00018
00019 MASS_CUT_MIN = 30.
00020 MASS_PHOTONTAG_CUT_MIN = 50.
00021 MASS_TAGTRACK_CUT_MIN = 60.
00022 MASS_TAGTRACK_CUT_MAX = 120.
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032 goodPhotons = cms.EDFilter(
00033 "PhotonSelector",
00034 src = cms.InputTag( PHOTON_COLL ),
00035 cut = cms.string(PHOTON_CUTS)
00036 )
00037
00038 photon_sequence = cms.Sequence(
00039 goodPhotons
00040 )
00041
00042
00043
00044 from PhysicsTools.RecoAlgos.allTrackCandidates_cfi import allTrackCandidates
00045
00046 goodTracks = cms.EDFilter("CandViewRefSelector",
00047 filter = cms.bool(True),
00048 src = cms.InputTag("allTrackCandidates"),
00049 cut = cms.string('pt > '+str(PHOTON_ET_CUT_MIN))
00050 )
00051
00052 track_sequence = cms.Sequence(allTrackCandidates + goodTracks)
00053
00054
00055
00056
00057
00058
00059
00060
00061 from DPGAnalysis.Skims.WElectronSkim_cff import goodElectrons
00062
00063
00064 GsfMatchedPhotonCands = cms.EDProducer("ElectronMatchedCandidateProducer",
00065 src = cms.InputTag("goodPhotons"),
00066 ReferenceElectronCollection = cms.untracked.InputTag("goodElectrons"),
00067 deltaR = cms.untracked.double(0.3)
00068 )
00069
00070
00071
00072
00073
00074
00075
00076
00077 from DPGAnalysis.Skims.WElectronSkim_cff import PassingWP90
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087 PassingHLT = cms.EDProducer("trgMatchGsfElectronProducer",
00088 InputProducer = cms.InputTag( 'gsfElectrons' ),
00089 hltTags = cms.untracked.string("HLT_Ele"),
00090 triggerEventTag = cms.untracked.InputTag("hltTriggerSummaryAOD","",HLTProcessName),
00091 triggerResultsTag = cms.untracked.InputTag("TriggerResults","",HLTProcessName)
00092 )
00093
00094
00095
00096
00097
00098
00099
00100
00101 ZElecTagHLT = PassingHLT.clone(
00102 InputProducer = cms.InputTag( "PassingWP90" )
00103 )
00104
00105 Zele_sequence = cms.Sequence(
00106 goodElectrons +
00107 PassingWP90 +
00108 ZElecTagHLT
00109 )
00110
00111
00112
00113
00114
00115
00116
00117
00118
00119 import copy
00120 from HLTrigger.HLTfilters.hltHighLevel_cfi import *
00121 ZEEHltFilter = copy.deepcopy(hltHighLevel)
00122 ZEEHltFilter.throw = cms.bool(False)
00123 ZEEHltFilter.HLTPaths = ["HLT_Ele*"]
00124
00125 tagPhoton = cms.EDProducer("CandViewShallowCloneCombiner",
00126 decay = cms.string("ZElecTagHLT goodPhotons"),
00127 checkCharge = cms.bool(False),
00128 cut = cms.string("mass > " + str(MASS_PHOTONTAG_CUT_MIN))
00129 )
00130 tagPhotonCounter = cms.EDFilter("CandViewCountFilter",
00131 src = cms.InputTag("tagPhoton"),
00132 minNumber = cms.uint32(1)
00133 )
00134 tagPhotonFilter = cms.Sequence(tagPhoton * tagPhotonCounter)
00135 tagPhotonSeq = cms.Sequence( ZEEHltFilter *(photon_sequence + Zele_sequence) * tagPhotonFilter )
00136
00137 tagTrack = tagPhoton.clone(
00138 decay = cms.string("ZElecTagHLT goodTracks"),
00139 cut = cms.string("mass > " + str(MASS_TAGTRACK_CUT_MIN)+ ' && mass < ' + str(MASS_TAGTRACK_CUT_MAX)),
00140 )
00141 tagTrackCounter = tagPhotonCounter.clone(
00142 src = cms.InputTag("tagTrack")
00143 )
00144 tagTrackFilter = cms.Sequence(tagTrack * tagTrackCounter)
00145 tagTrackSeq = cms.Sequence( ZEEHltFilter * (track_sequence + Zele_sequence) * tagTrackFilter )
00146
00147 tagGsf = tagPhoton.clone(
00148 decay = cms.string("PassingWP90 goodElectrons")
00149 )
00150 tagGsfCounter = tagPhotonCounter.clone(
00151 src = cms.InputTag("tagGsf")
00152 )
00153 tagGsfFilter = cms.Sequence(tagGsf * tagGsfCounter)
00154 tagGsfSeq = cms.Sequence( ZEEHltFilter * (Zele_sequence) * tagGsfFilter )