CMS 3D CMS Logo

GenParticleSelectionsForEfficiency_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 GenParticleSelectionForEfficiency = cms.PSet(
4  lipGP = cms.double(30.0),
5  chargedOnlyGP = cms.bool(True),
6  pdgIdGP = cms.vint32(),
7  minRapidityGP = cms.double(-2.5),
8  ptMinGP = cms.double(0.005),
9  maxRapidityGP = cms.double(2.5),
10  tipGP = cms.double(60),
11  statusGP = cms.int32(1)
12 )
13 from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
14 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
15 phase1Pixel.toModify(GenParticleSelectionForEfficiency,minRapidityGP = -3.0, maxRapidityGP = 3.0)
16 phase2_tracker.toModify(GenParticleSelectionForEfficiency,minRapidityGP = -4.5, maxRapidityGP = 4.5)
17 
18 generalGpSelectorBlock = cms.PSet(
19  status = cms.int32(1),
20  lip = cms.double(30.0),
21  chargedOnly = cms.bool(True),
22  pdgId = cms.vint32(),
23  minRapidity = cms.double(-2.5),
24  ptMin = cms.double(0.9),
25  maxRapidity = cms.double(2.5),
26  tip = cms.double(3.5)
27 )
28 
29 
30 GpSelectorForEfficiencyVsEtaBlock = cms.PSet(
31  status = cms.int32(1),
32  lip = cms.double(30.0),
33  chargedOnly = cms.bool(True),
34  pdgId = cms.vint32(),
35  minRapidity = cms.double(-2.5),
36  ptMin = cms.double(0.9),
37  maxRapidity = cms.double(2.5),
38  tip = cms.double(3.5)
39 )
40 
41 GpSelectorForEfficiencyVsPhiBlock = cms.PSet(
42  status = cms.int32(1),
43  lip = cms.double(30.0),
44  chargedOnly = cms.bool(True),
45  pdgId = cms.vint32(),
46  minRapidity = cms.double(-2.5),
47  ptMin = cms.double(0.9),
48  maxRapidity = cms.double(2.5),
49  tip = cms.double(3.5)
50 )
51 
52 GpSelectorForEfficiencyVsPtBlock = cms.PSet(
53  status = cms.int32(1),
54  chargedOnly = cms.bool(True),
55  pdgId = cms.vint32(),
56  minRapidity = cms.double(-2.5),
57  maxRapidity = cms.double(2.5),
58  ptMin = cms.double(0.050),
59  tip = cms.double(3.5),
60  lip = cms.double(30.0),
61 )
62 
63 GpSelectorForEfficiencyVsVTXRBlock = cms.PSet(
64  status = cms.int32(1),
65  chargedOnly = cms.bool(True),
66  pdgId = cms.vint32(),
67  minRapidity = cms.double(-2.5),
68  ptMin = cms.double(0.9),
69  maxRapidity = cms.double(2.5),
70  lip = cms.double(30.0),
71  tip = cms.double(30.0)
72 )
73 
74 GpSelectorForEfficiencyVsVTXZBlock = cms.PSet(
75  status = cms.int32(1),
76  chargedOnly = cms.bool(True),
77  pdgId = cms.vint32(),
78  minRapidity = cms.double(-2.5),
79  ptMin = cms.double(0.9),
80  maxRapidity = cms.double(2.5),
81  lip = cms.double(35.0),
82  tip = cms.double(3.5)
83 )
84 
85 def _modifyForPhase1(pset):
86  pset.minRapidity = -3
87  pset.maxRapidity = 3
88  pset.tip = 2.5 # beampipe is around 2.0, BPIX1 is at 2.9
89 from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
90 phase1Pixel.toModify(generalGpSelectorBlock, _modifyForPhase1)
91 phase1Pixel.toModify(GpSelectorForEfficiencyVsEtaBlock, _modifyForPhase1)
92 phase1Pixel.toModify(GpSelectorForEfficiencyVsPhiBlock, _modifyForPhase1)
93 phase1Pixel.toModify(GpSelectorForEfficiencyVsPtBlock, _modifyForPhase1)
94 phase1Pixel.toModify(GpSelectorForEfficiencyVsVTXRBlock, _modifyForPhase1)
95 phase1Pixel.toModify(GpSelectorForEfficiencyVsVTXZBlock, _modifyForPhase1)
96 
97 def _modifyForPhase2(pset):
98  pset.minRapidity = -4.5
99  pset.maxRapidity = 4.5
100  pset.tip = 2.5 # IT1 will be around 3.0 (as in Phase1)
101 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
102 phase2_tracker.toModify(generalGpSelectorBlock, _modifyForPhase2)
103 phase2_tracker.toModify(GpSelectorForEfficiencyVsEtaBlock, _modifyForPhase2)
104 phase2_tracker.toModify(GpSelectorForEfficiencyVsPhiBlock, _modifyForPhase2)
105 phase2_tracker.toModify(GpSelectorForEfficiencyVsPtBlock, _modifyForPhase2)
106 phase2_tracker.toModify(GpSelectorForEfficiencyVsVTXRBlock, _modifyForPhase2)
107 phase2_tracker.toModify(GpSelectorForEfficiencyVsVTXZBlock, _modifyForPhase2)