CMS 3D CMS Logo

year_2018_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
4 
5 # beam optics
7 
8 config_2018 = cms.PSet(
9  validityRange = cms.EventRange("0:min - 999999:max"),
10 
11  opticalFunctions = cms.VPSet(
12  cms.PSet( xangle = cms.double(120), fileName = cms.FileInPath("CalibPPS/ESProducers/data/optical_functions/2018/version6/120urad.root") ),
13  cms.PSet( xangle = cms.double(130), fileName = cms.FileInPath("CalibPPS/ESProducers/data/optical_functions/2018/version6/130urad.root") ),
14  cms.PSet( xangle = cms.double(140), fileName = cms.FileInPath("CalibPPS/ESProducers/data/optical_functions/2018/version6/140urad.root") )
15  ),
16 
17  scoringPlanes = cms.VPSet(
18  # z in cm
19  cms.PSet( rpId = cms.uint32(2014838784), dirName = cms.string("XRPH_D6L5_B2"), z = cms.double(-21255.1) ), # RP 003, pixel
20  cms.PSet( rpId = cms.uint32(2054160384), dirName = cms.string("XRPH_E6L5_B2"), z = cms.double(-21570.0) ), # RP 016, diamond
21  cms.PSet( rpId = cms.uint32(2023227392), dirName = cms.string("XRPH_B6L5_B2"), z = cms.double(-21955.0) ), # RP 023, pixel
22 
23  cms.PSet( rpId = cms.uint32(2031616000), dirName = cms.string("XRPH_D6R5_B1"), z = cms.double(+21255.1) ), # RP 103, pixel
24  cms.PSet( rpId = cms.uint32(2070937600), dirName = cms.string("XRPH_E6R5_B1"), z = cms.double(+21570.0) ), # RP 116, diamond
25  cms.PSet( rpId = cms.uint32(2040004608), dirName = cms.string("XRPH_B6R5_B1"), z = cms.double(+21955.0) ), # RP 123, pixel
26  )
27 )
28 
29 ctppsOpticalFunctionsESSource.configuration.append(config_2018)
30 
32 ctppsInterpolatedOpticalFunctionsESSource.lhcInfoLabel = ""
33 
34 # geometry
36 
37 # alignment
39 alignmentFile = "Validation/CTPPS/alignment/2018.xml"
40 ctppsRPAlignmentCorrectionsDataESSourceXML.MisalignedFiles = [alignmentFile]
41 ctppsRPAlignmentCorrectionsDataESSourceXML.RealFiles = [alignmentFile]
42 
43 # aperture cuts
44 ctppsDirectProtonSimulation.useEmpiricalApertures = True
45 
46 ctppsDirectProtonSimulation.empiricalAperture45="-(8.44219E-07*[xangle]-0.000100957)+(([xi]<(0.000247185*[xangle]+0.101599))*-(1.40289E-05*[xangle]-0.00727237)+([xi]>=(0.000247185*[xangle]+0.101599))*-(0.000107811*[xangle]-0.0261867))*([xi]-(0.000247185*[xangle]+0.101599))"
47 
48 ctppsDirectProtonSimulation.empiricalAperture56="-(-4.74758E-07*[xangle]+3.0881E-05)+(([xi]<(0.000727859*[xangle]+0.0722653))*-(2.43968E-05*[xangle]-0.0085461)+([xi]>=(0.000727859*[xangle]+0.0722653))*-(7.19216E-05*[xangle]-0.0148267))*([xi]-(0.000727859*[xangle]+0.0722653))"
49 
50 
51 # local reconstruction
52 ctppsLocalTrackLiteProducer.includeStrips = False
53 ctppsLocalTrackLiteProducer.includePixels = True
54 ctppsLocalTrackLiteProducer.includeDiamonds = True
55 
56 reco_local = cms.Sequence(
57  ctppsPixelLocalTracks
58  * ctppsDiamondLocalReconstruction
59  * ctppsLocalTrackLiteProducer
60 )
61 
62 # RP ids
63 rpIds = cms.PSet(
64  rp_45_F = cms.uint32(23),
65  rp_45_N = cms.uint32(3),
66  rp_56_N = cms.uint32(103),
67  rp_56_F = cms.uint32(123)
68 )
base_cff
ctppsRPAlignmentCorrectionsDataESSourceXML_cfi
ctppsInterpolatedOpticalFunctionsESSource_cfi
add 2016 pre-TS2 configuration config_2016_preTS2 = cms.PSet( validityRange = cms....
ctppsOpticalFunctionsESSource_cfi
geometryRPFromDD_2018_cfi