1 import FWCore.ParameterSet.Config
as cms
3 generalTpSelectorBlock = cms.PSet(
4 lip = cms.double(30.0),
5 chargedOnly = cms.bool(
True),
7 signalOnly = cms.bool(
True),
8 intimeOnly = cms.bool(
False),
9 stableOnly = cms.bool(
False),
10 minRapidity = cms.double(-2.5),
11 minHit = cms.int32(0),
12 ptMin = cms.double(0.9),
13 maxRapidity = cms.double(2.5),
17 from Configuration.Eras.Modifier_fastSim_cff
import fastSim
18 if fastSim.isChosen():
19 generalTpSelectorBlock.stableOnly =
True 21 TpSelectorForEfficiencyVsEtaBlock = generalTpSelectorBlock.clone()
22 TpSelectorForEfficiencyVsPhiBlock = generalTpSelectorBlock.clone()
23 TpSelectorForEfficiencyVsPtBlock = generalTpSelectorBlock.clone(ptMin = 0.050 )
24 TpSelectorForEfficiencyVsVTXRBlock = generalTpSelectorBlock.clone(tip = 60.0)
25 TpSelectorForEfficiencyVsVTXZBlock = generalTpSelectorBlock.clone()
30 from Configuration.Eras.Modifier_phase1Pixel_cff
import phase1Pixel
31 phase1Pixel.toModify(generalTpSelectorBlock, _modifyForPhase1)
32 phase1Pixel.toModify(TpSelectorForEfficiencyVsEtaBlock, _modifyForPhase1)
33 from Configuration.Eras.Modifier_phase2_tracker_cff
import phase2_tracker
34 phase2_tracker.toModify(generalTpSelectorBlock, minRapidity=-4.5, maxRapidity=4.5)
35 phase2_tracker.toModify(TpSelectorForEfficiencyVsEtaBlock, minRapidity=-4.5, maxRapidity=4.5)
def _modifyForPhase1(pset)