CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
year_2021_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
4 
5 import CalibPPS.ESProducers.ppsAssociationCuts_non_DB_cff as ac
6 ac.use_single_infinite_iov_entry(ac.ppsAssociationCutsESSource, ac.p2021)
7 ppsAssociationCutsESSource = ac.ppsAssociationCutsESSource
8 
9 from CalibPPS.ESProducers.ctppsOpticalFunctions_non_DB_cff import optics_2021 as selected_optics
10 
11 # base profile settings for 2021
12 profile_base_2021 = profile_base.clone(
13  ctppsLHCInfo = dict(
14  beamEnergy = 7000
15  ),
16 
17  ctppsOpticalFunctions = dict(
18  opticalFunctions = selected_optics.opticalFunctions,
19  scoringPlanes = selected_optics.scoringPlanes,
20  ),
21 
22  ctppsDirectSimuData = dict(
23  empiricalAperture45 = cms.string("1E3*([xi] - 0.20)"),
24  empiricalAperture56 = cms.string("1E3*([xi] - 0.20)")
25  )
26 )
27 
28 # adjust basic settings
29 generator.energy = profile_base_2021.ctppsLHCInfo.beamEnergy
30 
31 # geometry
33 ctppsCompositeESSource.compactViewTag = ctppsGeometryESModule.compactViewTag
34 del ctppsGeometryESModule # this functionality is replaced by the composite ES source
35 
36 # local reconstruction
37 ctppsLocalTrackLiteProducer.includeStrips = False
38 ctppsLocalTrackLiteProducer.includePixels = True
39 ctppsLocalTrackLiteProducer.includeDiamonds = True
40 
41 reco_local = cms.Sequence(
42  ctppsPixelLocalTracks
43  * ctppsDiamondLocalReconstruction
44  * ctppsLocalTrackLiteProducer
45 )
46 
47 # RP ids
48 rpIds = cms.PSet(
49  rp_45_F = cms.uint32(23),
50  rp_45_N = cms.uint32(3),
51  rp_56_N = cms.uint32(103),
52  rp_56_F = cms.uint32(123)
53 )
54 
55 # default list of profiles
56 from Validation.CTPPS.simu_config.profile_2021_default_cff import profile_2021_default
57 ctppsCompositeESSource.periods = [profile_2021_default]