test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ALCARECOEcalCalIsolElectron_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 
4 #===================================================== removing events with trackerDrivenOnly electrons
5 # if you want to filter events with trackerDrivenOnly electrons
6 # you should produce a collection containing the Ref to the
7 # trackerDrivenOnly electrons and then you should filter these events
8 # the lines to produce the Ref collection are the following
9 # you should not need to uncomment those, because I've already
10 # produced them in the ALCARECO step
11 #trackerDrivenOnlyElectrons = cms.EDFilter("GsfElectronRefSelector",
12 # src = cms.InputTag( 'gedGsfElectrons' ),
13 # cut = cms.string( "(ecalDrivenSeed==0)" )
14 # )
15 
16 # these lines active a filter that counts if there are more than 0
17 # trackerDrivenOnly electrons
18 #trackerDrivenRemover = cms.EDFilter("PATCandViewCountFilter",
19 # minNumber = cms.uint32(0),
20 # maxNumber = cms.uint32(0),
21 # src = cms.InputTag("trackerDrivenOnlyElectrons")
22 # )
23 #trackerDrivenRemoverSeq = cms.Sequence( trackerDrivenOnlyElectrons * trackerDrivenRemover )
24 #trackerDrivenRemoverSeq = cms.Sequence( trackerDrivenOnlyElectrons)
25 
26 
30 
32 
33 from RecoJets.Configuration.RecoPFJets_cff import kt6PFJets
34 kt6PFJetsForRhoCorrection = kt6PFJets.clone(doRhoFastjet = True)
35 kt6PFJetsForRhoCorrection.Rho_EtaMax = cms.double(2.5)
36 
37 #list of SCs to be used for the recHit reduction
38 #GsfMatchedPhotonCands = cms.EDProducer("ElectronMatchedCandidateProducer",
39 # src = cms.InputTag("goodPhotons"),
40 # ReferenceElectronCollection = cms.untracked.InputTag("goodElectrons"),
41 # deltaR = cms.untracked.double(0.3)
42 #)
43 
44 alcarecoEcalRecHitReducerSeq = cms.Sequence(alCaIsolatedElectrons)
45 alcarecoElectronTracksReducerSeq = cms.Sequence(alcaElectronTracksReducer)
46 
47 # sequence that reduces the RECO format (only ECAL part) into ALCARECO
48 ALCARECOEcalCalElectronECALSeq = cms.Sequence( alCaIsolatedElectrons)
49 
50 # sequence that reduces the RECO format (not ECAL part) into ALCARECO
51 ALCARECOEcalCalElectronNonECALSeq = cms.Sequence( kt6PFJetsForRhoCorrection +
52  alcaElectronTracksReducer
53 # + pfisoALCARECO
54  )
55 
56 ALCARECOEcalCalElectronSeq = cms.Sequence( ALCARECOEcalCalElectronNonECALSeq+
57  ALCARECOEcalCalElectronECALSeq
58  )
59 ############################################### FINAL SEQUENCES
60 # sequences used in AlCaRecoStreams_cff.py
61 seqALCARECOEcalCalZElectron = cms.Sequence(ZeeSkimFilterSeq * ALCARECOEcalCalElectronSeq)
62 seqALCARECOEcalCalZSCElectron = cms.Sequence(ZSCSkimFilterSeq * ALCARECOEcalCalElectronSeq)
63 seqALCARECOEcalCalWElectron = cms.Sequence(WenuSkimFilterSeq * ALCARECOEcalCalElectronSeq)
64 
65 
66 seqALCARECOEcalCalPhoton = cms.Sequence( alCaIsolatedElectrons +
67  kt6PFJetsForRhoCorrection
68  # + pfisoALCARECO
69  )
70 
71 
72