Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:58:38

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 import HLTrigger.HLTfilters.hltHighLevel_cfi
0004 ALCARECOEcalCalZElectronHLT = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone(
0005     andOr = True, # choose logical OR between Triggerbits
0006     eventSetupPathsKey='EcalCalZElectron',
0007     throw = False # tolerate triggers stated above, but not available
0008 )
0009 ALCARECOEcalCalWElectronHLT = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone(
0010     andOr = True, # choose logical OR between Triggerbits
0011     eventSetupPathsKey='EcalCalWElectron',
0012     throw = False # tolerate triggers stated above, but not available
0013 )
0014 
0015 
0016 #===================================================== removing events with trackerDrivenOnly electrons
0017 # if you want to filter events with trackerDrivenOnly electrons
0018 # you should produce a collection containing the Ref to the
0019 # trackerDrivenOnly electrons and then you should filter these events
0020 # the lines to produce the Ref collection are the following
0021 # you should not need to uncomment those, because I've already
0022 # produced them in the ALCARECO step
0023 #trackerDrivenOnlyElectrons = cms.EDFilter("GsfElectronRefSelector",
0024 #                                          src = cms.InputTag( 'gedGsfElectrons' ),
0025 #                                          cut = cms.string( "(ecalDrivenSeed==0)" )
0026 #                                          )
0027 
0028 # these lines active a filter that counts if there are more than 0
0029 # trackerDrivenOnly electrons 
0030 #trackerDrivenRemover = cms.EDFilter("PATCandViewCountFilter",
0031 #                                    minNumber = cms.uint32(0),
0032 #                                    maxNumber = cms.uint32(0),
0033 #                                    src = cms.InputTag("trackerDrivenOnlyElectrons")
0034 #                                    )
0035 #trackerDrivenRemoverSeq = cms.Sequence( trackerDrivenOnlyElectrons * trackerDrivenRemover )
0036 #trackerDrivenRemoverSeq = cms.Sequence( trackerDrivenOnlyElectrons)
0037 
0038 
0039 from Calibration.EcalAlCaRecoProducers.alCaIsolatedElectrons_cfi import *
0040 from Calibration.EcalAlCaRecoProducers.AlCaElectronTracksReducer_cfi import *
0041 from Calibration.EcalAlCaRecoProducers.eleIsoSequence_cff import *
0042 
0043 from Calibration.EcalAlCaRecoProducers.WZElectronSkims_cff import *
0044 
0045 from RecoJets.Configuration.RecoPFJets_cff import kt6PFJets
0046 kt6PFJetsForRhoCorrection = kt6PFJets.clone(doRhoFastjet = True)
0047 kt6PFJetsForRhoCorrection.Rho_EtaMax = cms.double(2.5)
0048 
0049 #list of SCs to be used for the recHit reduction
0050 #GsfMatchedPhotonCands = cms.EDProducer("ElectronMatchedCandidateProducer",
0051 #   src     = cms.InputTag("goodPhotons"),
0052 #   ReferenceElectronCollection = cms.untracked.InputTag("goodElectrons"),
0053 #   deltaR =  cms.untracked.double(0.3)
0054 #)
0055 
0056 alcarecoEcalRecHitReducerSeq = cms.Sequence(alCaIsolatedElectrons)
0057 alcarecoElectronTracksReducerSeq = cms.Sequence(alcaElectronTracksReducer)
0058 
0059 # sequence that reduces the RECO format (only ECAL part) into ALCARECO
0060 ALCARECOEcalCalElectronECALSeq = cms.Sequence( alCaIsolatedElectrons)
0061 
0062 # sequence that reduces the RECO format (not ECAL part) into ALCARECO
0063 ALCARECOEcalCalElectronNonECALSeq = cms.Sequence( kt6PFJetsForRhoCorrection +
0064                                               alcaElectronTracksReducer 
0065 #                                             + pfisoALCARECO 
0066                                               )
0067 
0068 ALCARECOEcalCalElectronSeq = cms.Sequence( ALCARECOEcalCalElectronNonECALSeq+
0069                                            ALCARECOEcalCalElectronECALSeq
0070                                            )
0071 ############################################### FINAL SEQUENCES
0072 # sequences used in AlCaRecoStreams_cff.py
0073 seqALCARECOEcalCalZElectron   = cms.Sequence(ALCARECOEcalCalZElectronHLT * ZeeSkimFilterSeq  * ALCARECOEcalCalElectronSeq)
0074 seqALCARECOEcalCalZSCElectron = cms.Sequence(ALCARECOEcalCalZElectronHLT * ZSCSkimFilterSeq  * ALCARECOEcalCalElectronSeq)
0075 seqALCARECOEcalCalWElectron   = cms.Sequence(ALCARECOEcalCalWElectronHLT * WenuSkimFilterSeq * ALCARECOEcalCalElectronSeq)
0076 
0077 
0078 seqALCARECOEcalCalPhoton = cms.Sequence( alCaIsolatedElectrons +
0079                                            kt6PFJetsForRhoCorrection 
0080                                          # + pfisoALCARECO 
0081                                          )
0082 
0083 
0084