Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:06:46

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 #from HLTrigger.HLTfilters.hltHighLevel_cfi import *
0004 #exoticaMuHLT = hltHighLevel
0005 #Define the HLT path to be used.
0006 #exoticaMuHLT.HLTPaths =['HLT_L1MuOpen']
0007 #exoticaMuHLT.TriggerResultsTag = cms.InputTag("TriggerResults","","HLT8E29")
0008 
0009 #Define the HLT quality cut 
0010 #exoticaHLTElectronFilter = cms.EDFilter("HLTSummaryFilter",
0011 #    summary = cms.InputTag("hltTriggerSummaryAOD","","HLT8E29"), # trigger summary
0012 #    member  = cms.InputTag("hltL3ElectronCandidates","","HLT8E29"),      # filter or collection                                    
0013 #    cut     = cms.string("pt>0"),                     # cut on trigger object
0014 #    minN    = cms.int32(0)                  # min. # of passing objects needed
0015 # )
0016                                
0017 
0018 #Define the Reco quality cut
0019 from SimGeneral.HepPDTESSource.pythiapdt_cfi import *
0020 
0021 # Make the charged candidate collections from tracks
0022 allElectronTracks = cms.EDProducer("TrackViewCandidateProducer",
0023                                    src = cms.InputTag("generalTracks"),
0024                                    particleType = cms.string('e-'),
0025                                    cut = cms.string('pt > 0'),
0026                                    filter = cms.bool(True)
0027                                    )
0028 
0029 # Make the input candidate collections
0030 electronTagCands = cms.EDFilter("GsfElectronRefSelector",
0031                         src = cms.InputTag("gedGsfElectrons"),
0032                         cut = cms.string('pt > 1.0 && abs(eta) < 2.1'),
0033                         filter = cms.bool(True)
0034                         )
0035 
0036 
0037 # Tracker Electrons (to be matched)
0038 electronProbeCands = cms.EDFilter("RecoChargedCandidateRefSelector",
0039                             src = cms.InputTag("allElectronTracks"),
0040                             cut = cms.string('pt > 0.5'),
0041                             filter = cms.bool(True)
0042                             )
0043 
0044 # Make the tag probe association map
0045 JPsiEETagProbeMap = cms.EDProducer("TagProbeMassProducer",
0046                                      MassMaxCut = cms.untracked.double(10.0),
0047                                      TagCollection = cms.InputTag("electronTagCands"),
0048                                      MassMinCut = cms.untracked.double(2.0),
0049                                      ProbeCollection = cms.InputTag("electronProbeCands"),
0050                                      PassingProbeCollection = cms.InputTag("electronProbeCands")
0051                                  )
0052 
0053 JPsiEETPFilter = cms.EDFilter("TagProbeMassEDMFilter",
0054                         tpMapName = cms.string('JPsiEETagProbeMap')
0055                         )
0056 
0057 ZEETagProbeMap = cms.EDProducer("TagProbeMassProducer",
0058                                  MassMaxCut = cms.untracked.double(120.0),
0059                                  TagCollection = cms.InputTag("electronTagCands"),
0060                                  MassMinCut = cms.untracked.double(50.0),
0061                                  ProbeCollection = cms.InputTag("electronProbeCands"),
0062                                  PassingProbeCollection = cms.InputTag("electronProbeCands")
0063                                  )
0064 
0065 ZEETPFilter = cms.EDFilter("TagProbeMassEDMFilter",
0066                         tpMapName = cms.string('ZEETagProbeMap')
0067                         )
0068 
0069 
0070 #Define group sequence, using HLT/Reco quality cut. 
0071 #exoticaMuHLTQualitySeq = cms.Sequence()
0072 electronTagProbeSeq = cms.Sequence(allElectronTracks+electronTagCands+electronProbeCands)
0073 
0074 electronJPsiEERecoQualitySeq = cms.Sequence(
0075     #exoticaMuHLT+
0076     electronTagProbeSeq+JPsiEETagProbeMap+JPsiEETPFilter
0077     )
0078 
0079 electronZEERecoQualitySeq = cms.Sequence(
0080     #exoticaMuHLT+
0081     electronTagProbeSeq+ZEETagProbeMap+ZEETPFilter
0082     )
0083