CMS 3D CMS Logo

simulation_levels_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # supply beam parameters
5 
6 # particle generator
8 
9 # direct simulation
11 ctppsDirectProtonSimulation.verbosity = 0
12 ctppsDirectProtonSimulation.hepMCTag = cms.InputTag('beamDivergenceVtxGenerator')
13 ctppsDirectProtonSimulation.useEmpiricalApertures = False
14 ctppsDirectProtonSimulation.roundToPitch = True
15 ctppsDirectProtonSimulation.pitchStrips = 66E-3 * 12 / 19 # effective value to reproduce real RP resolution
16 ctppsDirectProtonSimulation.produceHitsRelativeToBeam = True
17 ctppsDirectProtonSimulation.produceScoringPlaneHits = False
18 ctppsDirectProtonSimulation.produceRecHits = True
19 
20 #----------------------------------------------------------------------------------------------------
21 
22 def SetLevel1():
23  ctppsBeamParametersESSource.vtxStddevX = 0E-4
24  ctppsBeamParametersESSource.vtxStddevZ = 0
25 
26  ctppsBeamParametersESSource.beamDivX45 = 0E-6
27  ctppsBeamParametersESSource.beamDivX56 = 0E-6
28  ctppsBeamParametersESSource.beamDivY45 = 0E-6
29  ctppsBeamParametersESSource.beamDivY56 = 0E-6
30 
31  ctppsDirectProtonSimulation.roundToPitch = False
32 
33 
34 def SetLevel2():
35  ctppsBeamParametersESSource.beamDivX45 = 0E-6
36  ctppsBeamParametersESSource.beamDivX56 = 0E-6
37  ctppsBeamParametersESSource.beamDivY45 = 0E-6
38  ctppsBeamParametersESSource.beamDivY56 = 0E-6
39 
40  ctppsDirectProtonSimulation.roundToPitch = False
41 
42 
43 def SetLevel3():
44  ctppsDirectProtonSimulation.roundToPitch = False
45 
46 
47 def SetLevel4():
48  pass
49 
51  process.generator.theta_x_sigma = 0E-6
52  process.generator.theta_y_sigma = 0E-6
53 
54 
56  pass