1 import FWCore.ParameterSet.Config
as cms
13 del ctppsInterpolatedOpticalFunctionsESSource
16 ctppsLHCInfoESSource = cms.ESSource(
"CTPPSLHCInfoESSource",
17 label = cms.string(
""),
18 validityRange = cms.EventRange(
"0:min - 999999:max"),
19 beamEnergy = cms.double(6500),
20 xangle = cms.double(-1),
21 betaStar = cms.double(-1)
25 ctppsBeamParametersESSource = cms.ESSource(
"CTPPSBeamParametersESSource",
26 setBeamPars = cms.bool(
True),
29 beamMom45 = cms.double(6500.),
30 beamMom56 = cms.double(6500.),
33 betaStarX45 = cms.double(0.),
34 betaStarX56 = cms.double(0.),
35 betaStarY45 = cms.double(0.),
36 betaStarY56 = cms.double(0.),
39 beamDivX45 = cms.double(30E-6),
40 beamDivX56 = cms.double(30E-6),
41 beamDivY45 = cms.double(30E-6),
42 beamDivY56 = cms.double(30E-6),
45 halfXangleX45 = cms.double(-1),
46 halfXangleX56 = cms.double(-1),
47 halfXangleY45 = cms.double(0.),
48 halfXangleY56 = cms.double(0.),
51 vtxOffsetX45 = cms.double(0.),
52 vtxOffsetX56 = cms.double(0.),
53 vtxOffsetY45 = cms.double(0.),
54 vtxOffsetY56 = cms.double(0.),
55 vtxOffsetZ45 = cms.double(0.),
56 vtxOffsetZ56 = cms.double(0.),
57 vtxOffsetT45 = cms.double(0.),
58 vtxOffsetT56 = cms.double(0.),
61 vtxStddevX = cms.double(10E-4),
62 vtxStddevY = cms.double(10E-4),
63 vtxStddevZ = cms.double(5),
64 vtxStddevT = cms.double(6)
71 RandomNumberGeneratorService = cms.Service(
"RandomNumberGeneratorService",
72 sourceSeed = cms.PSet(initialSeed = cms.untracked.uint32(98765)),
73 generator = cms.PSet(initialSeed = cms.untracked.uint32(98766)),
74 beamDivergenceVtxGenerator = cms.PSet(initialSeed = cms.untracked.uint32(3849)),
75 ctppsDirectProtonSimulation = cms.PSet(initialSeed = cms.untracked.uint32(4981))
79 source = cms.Source(
"EmptySource",
80 firstRun = cms.untracked.uint32(1),
81 numberEventsInLuminosityBlock = cms.untracked.uint32(10)
86 generator.xi_max = 0.25
87 generator.theta_x_sigma = 60E-6
88 generator.theta_y_sigma = 60E-6
95 ctppsDirectProtonSimulation.verbosity = 0
96 ctppsDirectProtonSimulation.hepMCTag = cms.InputTag(
'beamDivergenceVtxGenerator')
97 ctppsDirectProtonSimulation.roundToPitch =
True
98 ctppsDirectProtonSimulation.pitchStrips = 66E-3 * 12 / 19
99 ctppsDirectProtonSimulation.pitchPixelsHor = 50E-3
100 ctppsDirectProtonSimulation.pitchPixelsVer = 80E-3
101 ctppsDirectProtonSimulation.produceHitsRelativeToBeam =
True
102 ctppsDirectProtonSimulation.produceScoringPlaneHits =
False
103 ctppsDirectProtonSimulation.produceRecHits =
True
111 totemRPUVPatternFinder.tagRecHit = cms.InputTag(
'ctppsDirectProtonSimulation')
112 ctppsPixelLocalTracks.label =
"ctppsDirectProtonSimulation"
113 ctppsDiamondLocalTracks.recHitsTag = cms.InputTag(
'ctppsDirectProtonSimulation')
115 ctppsLocalTrackLiteProducer.includeDiamonds =
False
118 ctppsProtons.tagLocalTrackLite = cms.InputTag(
'ctppsLocalTrackLiteProducer')
123 obj.vtxStddevX = 0E-4
126 obj.beamDivX45 = 0E-6
127 obj.beamDivX56 = 0E-6
128 obj.beamDivY45 = 0E-6
129 obj.beamDivY56 = 0E-6
132 if hasattr(process,
"ctppsBeamParametersESSource"):
137 process.ctppsDirectProtonSimulation.roundToPitch =
False
140 obj.beamDivX45 = 0E-6
141 obj.beamDivX56 = 0E-6
142 obj.beamDivY45 = 0E-6
143 obj.beamDivY56 = 0E-6
146 if hasattr(process,
"ctppsBeamParametersESSource"):
151 process.ctppsDirectProtonSimulation.roundToPitch =
False
155 process.ctppsDirectProtonSimulation.roundToPitch =
False
163 process.generator.theta_x_sigma = 0E-6
164 process.generator.theta_y_sigma = 0E-6
172 process.ctppsLHCInfoESSource.xangle = xangle
173 process.ctppsBeamParametersESSource.halfXangleX45 = xangle * 1E-6
174 process.ctppsBeamParametersESSource.halfXangleX56 = xangle * 1E-6
176 default_xangle_beta_star_file =
"CalibPPS/ESProducers/data/xangle_beta_distributions/version1.root"
179 process.load(
"CalibPPS.ESProducers.ctppsLHCInfoRandomXangleESSource_cfi")
180 process.ctppsLHCInfoRandomXangleESSource.generateEveryNEvents = 10
181 process.ctppsLHCInfoRandomXangleESSource.xangleBetaStarHistogramFile = f
182 process.ctppsLHCInfoRandomXangleESSource.xangleBetaStarHistogramObject = obj
183 process.ctppsLHCInfoRandomXangleESSource.beamEnergy = ctppsLHCInfoESSource.beamEnergy
185 del process.ctppsLHCInfoESSource
187 process.load(
"CalibPPS.ESProducers.ctppsBeamParametersFromLHCInfoESSource_cfi")
188 process.ctppsBeamParametersFromLHCInfoESSource.beamDivX45 = process.ctppsBeamParametersESSource.beamDivX45
189 process.ctppsBeamParametersFromLHCInfoESSource.beamDivX56 = process.ctppsBeamParametersESSource.beamDivX56
190 process.ctppsBeamParametersFromLHCInfoESSource.beamDivY45 = process.ctppsBeamParametersESSource.beamDivY45
191 process.ctppsBeamParametersFromLHCInfoESSource.beamDivY56 = process.ctppsBeamParametersESSource.beamDivY56
192 process.ctppsBeamParametersFromLHCInfoESSource.vtxOffsetX45 = process.ctppsBeamParametersESSource.vtxOffsetX45
193 process.ctppsBeamParametersFromLHCInfoESSource.vtxOffsetX56 = process.ctppsBeamParametersESSource.vtxOffsetX56
194 process.ctppsBeamParametersFromLHCInfoESSource.vtxOffsetY45 = process.ctppsBeamParametersESSource.vtxOffsetY45
195 process.ctppsBeamParametersFromLHCInfoESSource.vtxOffsetY56 = process.ctppsBeamParametersESSource.vtxOffsetY56
196 process.ctppsBeamParametersFromLHCInfoESSource.vtxOffsetZ45 = process.ctppsBeamParametersESSource.vtxOffsetZ45
197 process.ctppsBeamParametersFromLHCInfoESSource.vtxOffsetZ56 = process.ctppsBeamParametersESSource.vtxOffsetZ56
198 process.ctppsBeamParametersFromLHCInfoESSource.vtxStddevX = process.ctppsBeamParametersESSource.vtxStddevX
199 process.ctppsBeamParametersFromLHCInfoESSource.vtxStddevY = process.ctppsBeamParametersESSource.vtxStddevY
200 process.ctppsBeamParametersFromLHCInfoESSource.vtxStddevZ = process.ctppsBeamParametersESSource.vtxStddevZ
202 del process.ctppsBeamParametersESSource