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  invertRapidityCut = cms.bool(False),
28  maxPhi = cms.double(3.2),
29  minPhi = cms.double(-3.2)
30 )
31 
32 
33 GpSelectorForEfficiencyVsEtaBlock = cms.PSet(
34  status = cms.int32(1),
35  lip = cms.double(30.0),
36  chargedOnly = cms.bool(True),
37  pdgId = cms.vint32(),
38  minRapidity = cms.double(-2.5),
39  ptMin = cms.double(0.9),
40  maxRapidity = cms.double(2.5),
41  tip = cms.double(3.5),
42  invertRapidityCut = cms.bool(False),
43  maxPhi = cms.double(3.2),
44  minPhi = cms.double(-3.2)
45 )
46 
47 GpSelectorForEfficiencyVsPhiBlock = cms.PSet(
48  status = cms.int32(1),
49  lip = cms.double(30.0),
50  chargedOnly = cms.bool(True),
51  pdgId = cms.vint32(),
52  minRapidity = cms.double(-2.5),
53  ptMin = cms.double(0.9),
54  maxRapidity = cms.double(2.5),
55  tip = cms.double(3.5),
56  invertRapidityCut = cms.bool(False),
57  maxPhi = cms.double(3.2),
58  minPhi = cms.double(-3.2)
59 )
60 
61 GpSelectorForEfficiencyVsPtBlock = cms.PSet(
62  status = cms.int32(1),
63  chargedOnly = cms.bool(True),
64  pdgId = cms.vint32(),
65  minRapidity = cms.double(-2.5),
66  maxRapidity = cms.double(2.5),
67  ptMin = cms.double(0.050),
68  tip = cms.double(3.5),
69  lip = cms.double(30.0),
70  invertRapidityCut = cms.bool(False),
71  maxPhi = cms.double(3.2),
72  minPhi = cms.double(-3.2)
73 )
74 
75 GpSelectorForEfficiencyVsVTXRBlock = cms.PSet(
76  status = cms.int32(1),
77  chargedOnly = cms.bool(True),
78  pdgId = cms.vint32(),
79  minRapidity = cms.double(-2.5),
80  ptMin = cms.double(0.9),
81  maxRapidity = cms.double(2.5),
82  lip = cms.double(30.0),
83  tip = cms.double(30.0),
84  invertRapidityCut = cms.bool(False),
85  maxPhi = cms.double(3.2),
86  minPhi = cms.double(-3.2)
87 )
88 
89 GpSelectorForEfficiencyVsVTXZBlock = cms.PSet(
90  status = cms.int32(1),
91  chargedOnly = cms.bool(True),
92  pdgId = cms.vint32(),
93  minRapidity = cms.double(-2.5),
94  ptMin = cms.double(0.9),
95  maxRapidity = cms.double(2.5),
96  lip = cms.double(35.0),
97  tip = cms.double(3.5),
98  invertRapidityCut = cms.bool(False),
99  maxPhi = cms.double(3.2),
100  minPhi = cms.double(-3.2)
101 )
102 
104  pset.minRapidity = -3
105  pset.maxRapidity = 3
106  pset.tip = 2.5 # beampipe is around 2.0, BPIX1 is at 2.9
107 from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
108 phase1Pixel.toModify(generalGpSelectorBlock, _modifyForPhase1)
109 phase1Pixel.toModify(GpSelectorForEfficiencyVsEtaBlock, _modifyForPhase1)
110 phase1Pixel.toModify(GpSelectorForEfficiencyVsPhiBlock, _modifyForPhase1)
111 phase1Pixel.toModify(GpSelectorForEfficiencyVsPtBlock, _modifyForPhase1)
112 phase1Pixel.toModify(GpSelectorForEfficiencyVsVTXRBlock, _modifyForPhase1)
113 phase1Pixel.toModify(GpSelectorForEfficiencyVsVTXZBlock, _modifyForPhase1)
114 
116  pset.minRapidity = -4.5
117  pset.maxRapidity = 4.5
118  pset.tip = 2.5 # IT1 will be around 3.0 (as in Phase1)
119 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
120 phase2_tracker.toModify(generalGpSelectorBlock, _modifyForPhase2)
121 phase2_tracker.toModify(GpSelectorForEfficiencyVsEtaBlock, _modifyForPhase2)
122 phase2_tracker.toModify(GpSelectorForEfficiencyVsPhiBlock, _modifyForPhase2)
123 phase2_tracker.toModify(GpSelectorForEfficiencyVsPtBlock, _modifyForPhase2)
124 phase2_tracker.toModify(GpSelectorForEfficiencyVsVTXRBlock, _modifyForPhase2)
125 phase2_tracker.toModify(GpSelectorForEfficiencyVsVTXZBlock, _modifyForPhase2)
GenParticleSelectionsForEfficiency_cff._modifyForPhase2
def _modifyForPhase2(pset)
Definition: GenParticleSelectionsForEfficiency_cff.py:115
GenParticleSelectionsForEfficiency_cff._modifyForPhase1
def _modifyForPhase1(pset)
Definition: GenParticleSelectionsForEfficiency_cff.py:103