CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TrackingParticleSelectionsForEfficiency_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 generalTpSelectorBlock = cms.PSet(
4  lip = cms.double(30.0),
5  chargedOnly = cms.bool(True),
6  pdgId = cms.vint32(),
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  ptMax = cms.double(1e100),
14  maxRapidity = cms.double(2.5),
15  tip = cms.double(3.5),
16  minPhi = cms.double(-3.2),
17  maxPhi = cms.double(3.2),
18  invertRapidityCut = cms.bool(False)
19 )
20 
21 from Configuration.Eras.Modifier_fastSim_cff import fastSim
22 fastSim.toModify(generalTpSelectorBlock, stableOnly = True)
23 
24 TpSelectorForEfficiencyVsEtaBlock = generalTpSelectorBlock.clone()
25 TpSelectorForEfficiencyVsPhiBlock = generalTpSelectorBlock.clone()
26 TpSelectorForEfficiencyVsPtBlock = generalTpSelectorBlock.clone(ptMin = 0.050 )
27 TpSelectorForEfficiencyVsVTXRBlock = generalTpSelectorBlock.clone(tip = 60.0)
28 TpSelectorForEfficiencyVsVTXZBlock = generalTpSelectorBlock.clone()
29 
30 def _modifyForPhase1(pset):
31  pset.minRapidity = -3
32  pset.maxRapidity = 3
33  pset.tip = 2.5 # beampipe is around 2.0, BPIX1 is at 2.9
34 
35 from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
36 phase1Pixel.toModify(generalTpSelectorBlock, _modifyForPhase1)
37 phase1Pixel.toModify(TpSelectorForEfficiencyVsEtaBlock, _modifyForPhase1)
38 
39 def _modifyForPhase2(pset):
40  pset.minRapidity = -4.5
41  pset.maxRapidity = 4.5
42  pset.tip = 2.5 # IT1 will be around 3.0 (as in Phase1)
43 
44 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
45 phase2_tracker.toModify(generalTpSelectorBlock, _modifyForPhase2)
46 phase2_tracker.toModify(TpSelectorForEfficiencyVsEtaBlock, _modifyForPhase2)