CMS 3D CMS Logo

ALCARECOEcalCalIsolElectron_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
4 ALCARECOEcalCalZElectronHLT = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone(
5  andOr = True, # choose logical OR between Triggerbits
6  eventSetupPathsKey='EcalCalZElectron',
7  throw = False # tolerate triggers stated above, but not available
8 )
9 ALCARECOEcalCalWElectronHLT = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone(
10  andOr = True, # choose logical OR between Triggerbits
11  eventSetupPathsKey='EcalCalWElectron',
12  throw = False # tolerate triggers stated above, but not available
13 )
14 
15 
16 #===================================================== removing events with trackerDrivenOnly electrons
17 # if you want to filter events with trackerDrivenOnly electrons
18 # you should produce a collection containing the Ref to the
19 # trackerDrivenOnly electrons and then you should filter these events
20 # the lines to produce the Ref collection are the following
21 # you should not need to uncomment those, because I've already
22 # produced them in the ALCARECO step
23 #trackerDrivenOnlyElectrons = cms.EDFilter("GsfElectronRefSelector",
24 # src = cms.InputTag( 'gedGsfElectrons' ),
25 # cut = cms.string( "(ecalDrivenSeed==0)" )
26 # )
27 
28 # these lines active a filter that counts if there are more than 0
29 # trackerDrivenOnly electrons
30 #trackerDrivenRemover = cms.EDFilter("PATCandViewCountFilter",
31 # minNumber = cms.uint32(0),
32 # maxNumber = cms.uint32(0),
33 # src = cms.InputTag("trackerDrivenOnlyElectrons")
34 # )
35 #trackerDrivenRemoverSeq = cms.Sequence( trackerDrivenOnlyElectrons * trackerDrivenRemover )
36 #trackerDrivenRemoverSeq = cms.Sequence( trackerDrivenOnlyElectrons)
37 
38 
42 
44 
45 from RecoJets.Configuration.RecoPFJets_cff import kt6PFJets
46 kt6PFJetsForRhoCorrection = kt6PFJets.clone(doRhoFastjet = True)
47 kt6PFJetsForRhoCorrection.Rho_EtaMax = cms.double(2.5)
48 
49 #list of SCs to be used for the recHit reduction
50 #GsfMatchedPhotonCands = cms.EDProducer("ElectronMatchedCandidateProducer",
51 # src = cms.InputTag("goodPhotons"),
52 # ReferenceElectronCollection = cms.untracked.InputTag("goodElectrons"),
53 # deltaR = cms.untracked.double(0.3)
54 #)
55 
56 alcarecoEcalRecHitReducerSeq = cms.Sequence(alCaIsolatedElectrons)
57 alcarecoElectronTracksReducerSeq = cms.Sequence(alcaElectronTracksReducer)
58 
59 # sequence that reduces the RECO format (only ECAL part) into ALCARECO
60 ALCARECOEcalCalElectronECALSeq = cms.Sequence( alCaIsolatedElectrons)
61 
62 # sequence that reduces the RECO format (not ECAL part) into ALCARECO
63 ALCARECOEcalCalElectronNonECALSeq = cms.Sequence( kt6PFJetsForRhoCorrection +
64  alcaElectronTracksReducer
65 # + pfisoALCARECO
66  )
67 
68 ALCARECOEcalCalElectronSeq = cms.Sequence( ALCARECOEcalCalElectronNonECALSeq+
69  ALCARECOEcalCalElectronECALSeq
70  )
71 
73 seqALCARECOEcalCalZElectron = cms.Sequence(ALCARECOEcalCalZElectronHLT * ZeeSkimFilterSeq * ALCARECOEcalCalElectronSeq)
74 seqALCARECOEcalCalZSCElectron = cms.Sequence(ALCARECOEcalCalZElectronHLT * ZSCSkimFilterSeq * ALCARECOEcalCalElectronSeq)
75 seqALCARECOEcalCalWElectron = cms.Sequence(ALCARECOEcalCalWElectronHLT * WenuSkimFilterSeq * ALCARECOEcalCalElectronSeq)
76 
77 
78 seqALCARECOEcalCalPhoton = cms.Sequence( alCaIsolatedElectrons +
79  kt6PFJetsForRhoCorrection
80  # + pfisoALCARECO
81  )
82 
83 
84