CMS 3D CMS Logo

ctppsProtons_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # import default alignment settings
5 
6 # import default optics settings
8 
9 # import and adjust proton-reconstructions settings
11 ctppsProtons.lhcInfoLabel = ctppsLHCInfoLabel
12 
13 from Configuration.Eras.Modifier_ctpps_2016_cff import ctpps_2016
14 from Configuration.Eras.Modifier_ctpps_2017_cff import ctpps_2017
15 from Configuration.Eras.Modifier_ctpps_2018_cff import ctpps_2018
16 
17 from Configuration.ProcessModifiers.run2_miniAOD_UL_cff import run2_miniAOD_UL
18 
19 def applyDefaultSettings(ctppsProtons):
20  ctppsProtons.association_cuts_45.x_cut_apply = False
21  ctppsProtons.association_cuts_45.y_cut_apply = False
22  ctppsProtons.association_cuts_45.xi_cut_apply = True
23  ctppsProtons.association_cuts_45.xi_cut_value = 0.010
24  ctppsProtons.association_cuts_45.th_y_cut_apply = False
25 
26  ctppsProtons.association_cuts_56.x_cut_apply = False
27  ctppsProtons.association_cuts_56.y_cut_apply = False
28  ctppsProtons.association_cuts_56.xi_cut_apply = True
29  ctppsProtons.association_cuts_56.xi_cut_value = 0.015
30  ctppsProtons.association_cuts_56.th_y_cut_apply = False
31 
32  # update for re-miniAOD
33  run2_miniAOD_UL.toModify(ctppsProtons,
34  pixelDiscardBXShiftedTracks = True,
35  association_cuts_45 = dict(ti_tr_min = -1.5, ti_tr_max = 2.0),
36  association_cuts_56 = dict(ti_tr_min = -1.5, ti_tr_max = 2.0),
37  default_time = -999.
38  )
39 
40 ctpps_2016.toModify(ctppsProtons, applyDefaultSettings) # applied for all Run2 years (2016, 2017 and 2018)
41 
42 def apply2017Settings(ctppsProtons):
43  ctppsProtons.association_cuts_45.xi_cut_value = 0.010
44  ctppsProtons.association_cuts_56.xi_cut_value = 0.015
45 
46  # update for re-miniAOD
47  run2_miniAOD_UL.toModify(ctppsProtons,
48  association_cuts_45 = dict(
49  x_cut_apply = False,
50  y_cut_apply = False,
51 
52  xi_cut_apply = True,
53  xi_cut_value = 5. * 0.00121,
54  xi_cut_mean = +6.0695e-5,
55 
56  th_y_cut_apply = False
57  ),
58 
59  association_cuts_56 = dict(
60  x_cut_apply = False,
61 
62  y_cut_apply = True,
63  y_cut_value = 5. * 0.14777,
64  y_cut_mean = -0.022612,
65 
66  xi_cut_apply = True,
67  xi_cut_value = 5. * 0.0020627,
68  xi_cut_mean = +8.012857e-5,
69 
70  th_y_cut_apply = False
71  )
72  )
73 
74 ctpps_2017.toModify(ctppsProtons, apply2017Settings)
75 
76 def apply2018Settings(ctppsProtons):
77  ctppsProtons.association_cuts_45.xi_cut_value = 0.013
78  ctppsProtons.association_cuts_45.th_y_cut_apply = True
79  ctppsProtons.association_cuts_45.th_y_cut_value = 30E-6
80 
81  ctppsProtons.association_cuts_56.xi_cut_value = 0.013
82  ctppsProtons.association_cuts_56.th_y_cut_apply = True
83  ctppsProtons.association_cuts_56.th_y_cut_value = 20E-6
84 
85  # update for re-miniAOD
86  run2_miniAOD_UL.toModify(ctppsProtons,
87  association_cuts_45 = dict(
88  x_cut_apply = True,
89  x_cut_value = 4. * 0.16008188,
90  x_cut_mean = -0.065194856,
91 
92  y_cut_apply = True,
93  y_cut_value = 4. * 0.1407986,
94  y_cut_mean = +0.10973631,
95 
96  xi_cut_apply = True,
97  xi_cut_value = 4. * 0.0012403586,
98  xi_cut_mean = +3.113062e-5,
99 
100  th_y_cut_apply = False
101  ),
102 
103  association_cuts_56 = dict(
104  x_cut_apply = True,
105  x_cut_value = 5. * 0.18126434,
106  x_cut_mean = +0.073016431,
107 
108  y_cut_apply = True,
109  y_cut_value = 5. * 0.14990802,
110  y_cut_mean = +0.064261029,
111 
112  xi_cut_apply = True,
113  xi_cut_value = 5. * 0.002046409,
114  xi_cut_mean = -1.1852528e-5,
115 
116  th_y_cut_apply = False
117  )
118  )
119 
120 ctpps_2018.toModify(ctppsProtons, apply2018Settings)
def apply2018Settings(ctppsProtons)
def applyDefaultSettings(ctppsProtons)
def apply2017Settings(ctppsProtons)