CMS 3D CMS Logo

base_cff.py
Go to the documentation of this file.
1 #----------------------------------------------------------------------------------------------------
2 # utility functions
3 
5  obj.vtxStddevX = 0E-4
6  obj.vtxStddevZ = 0
7 
8  obj.beamDivX45 = 0E-6
9  obj.beamDivX56 = 0E-6
10  obj.beamDivY45 = 0E-6
11  obj.beamDivY56 = 0E-6
12 
13 def SetLevel1(process):
14  SetSmearingLevel1(process.ctppsBeamParametersFromLHCInfoESSource)
15 
16  process.ppsDirectProtonSimulation.roundToPitch = False
17 
19  obj.beamDivX45 = 0E-6
20  obj.beamDivX56 = 0E-6
21  obj.beamDivY45 = 0E-6
22  obj.beamDivY56 = 0E-6
23 
24 def SetLevel2(process):
25  SetSmearingLevel2(process.ctppsBeamParametersFromLHCInfoESSource)
26 
27  process.ppsDirectProtonSimulation.roundToPitch = False
28 
29 def SetLevel3(process):
30  process.ppsDirectProtonSimulation.roundToPitch = False
31 
32 def SetLevel4(process):
33  pass
34 
35 def SetLowTheta(process):
36  process.generator.theta_x_sigma = 0E-6
37  process.generator.theta_y_sigma = 0E-6
38 
39 def SetLargeTheta(process):
40  pass
41 
42 def UseConstantXangleBetaStar(process, xangle, betaStar):
43  for p in ctppsCompositeESSource.periods:
44  p.ctppsLHCInfo.xangle = xangle
45  p.ctppsLHCInfo.betaStar = betaStar
46 
47 def UseXangleBetaStarHistogram(process, f="", obj=""):
48  for p in ctppsCompositeESSource.periods:
49  p.ctppsLHCInfo.xangle = -1 # negative value indicates to use the xangle/beta* histogram
50 
51  if f:
52  p.ctppsLHCInfo.xangleBetaStarHistogramFile = f
53  if obj:
54  p.ctppsLHCInfo.xangleBetaStarHistogramObject = obj
def UseXangleBetaStarHistogram(process, f="", obj="")
Definition: base_cff.py:47
def SetLevel3(process)
Definition: base_cff.py:29
def SetSmearingLevel1(obj)
Definition: base_cff.py:4
def SetSmearingLevel2(obj)
Definition: base_cff.py:18
def SetLevel4(process)
Definition: base_cff.py:32
def SetLevel1(process)
Definition: base_cff.py:13
def SetLevel2(process)
Definition: base_cff.py:24
def SetLargeTheta(process)
Definition: base_cff.py:39
def UseConstantXangleBetaStar(process, xangle, betaStar)
Definition: base_cff.py:42
def SetLowTheta(process)
Definition: base_cff.py:35