Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:49:25

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 # make calotowers into candidates
0004 towersAboveThreshold = cms.EDProducer("CaloTowerCandidateCreator",
0005     src = cms.InputTag("towerMaker"),
0006     verbose = cms.untracked.int32(0),
0007     minimumE = cms.double(3.0),
0008     minimumEt = cms.double(0.0),
0009 )
0010 
0011 # select HF+ towers above threshold
0012 hfPosTowers = cms.EDFilter("EtaPtMinCandSelector",
0013     src = cms.InputTag("towersAboveThreshold"),
0014     ptMin   = cms.double(0),
0015     etaMin = cms.double(3.0),
0016     etaMax = cms.double(6.0)
0017 )
0018 
0019 # select HF- towers above threshold
0020 hfNegTowers = cms.EDFilter("EtaPtMinCandSelector",
0021     src = cms.InputTag("towersAboveThreshold"),
0022     ptMin   = cms.double(0),
0023     etaMin = cms.double(-6.0),
0024     etaMax = cms.double(-3.0)
0025 )
0026 
0027 # require at least one HF+ tower above threshold
0028 hfPosFilter = cms.EDFilter("CandCountFilter",
0029     src = cms.InputTag("hfPosTowers"),
0030     minNumber = cms.uint32(1)
0031 )
0032 
0033 # require at least one HF- tower above threshold
0034 hfNegFilter = cms.EDFilter("CandCountFilter",
0035     src = cms.InputTag("hfNegTowers"),
0036     minNumber = cms.uint32(1)
0037 )
0038 
0039 # one HF tower above threshold on each side
0040 hfCoincFilter = cms.Sequence(
0041     towersAboveThreshold *
0042     hfPosTowers *
0043     hfNegTowers *
0044     hfPosFilter *
0045     hfNegFilter)
0046 
0047 
0048 # three HF towers above threshold on each side
0049 
0050 hfPosFilter3 = hfPosFilter.clone(minNumber=cms.uint32(3))
0051 hfNegFilter3 = hfNegFilter.clone(minNumber=cms.uint32(3))
0052 
0053 hfCoincFilter3 = cms.Sequence(
0054     towersAboveThreshold *
0055     hfPosTowers *
0056     hfNegTowers *
0057     hfPosFilter3 *
0058     hfNegFilter3)