Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:58:34

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("ppsModifySingularModesTests")
0004 
0005 # minimum of logs
0006 process.MessageLogger = cms.Service("MessageLogger",
0007     cerr = cms.untracked.PSet(
0008         enable = cms.untracked.bool(False)
0009     ),
0010     cout = cms.untracked.PSet(
0011         enable = cms.untracked.bool(True),
0012         threshold = cms.untracked.string('WARNING')
0013     )
0014 )
0015 
0016 # data source
0017 process.source = cms.Source("EmptySource")
0018 
0019 process.maxEvents = cms.untracked.PSet(
0020     input = cms.untracked.int32(1)
0021 )
0022 
0023 # geometry
0024 process.load("Geometry.VeryForwardGeometry.geometryRPFromDD_2018_cfi")
0025 del(process.XMLIdealGeometryESSource_CTPPS.geomXMLFiles[-1])
0026 process.XMLIdealGeometryESSource_CTPPS.geomXMLFiles.append("CalibPPS/AlignmentRelative/test/test_with_mc/RP_Dist_Beam_Cent.xml")
0027 
0028 # input
0029 input = "CalibPPS/AlignmentRelative/test/test_modify_singular_modes/input.xml"
0030 
0031 # initial alignments
0032 process.load("CalibPPS.ESProducers.ctppsRPAlignmentCorrectionsDataESSourceXML_cfi")
0033 process.ctppsRPAlignmentCorrectionsDataESSourceXML.RealFiles = cms.vstring(input)
0034 
0035 # worker
0036 process.load("CalibPPS.AlignmentRelative.ppsModifySingularModes_cfi")
0037 process.ppsModifySingularModes.inputFile = input
0038 process.ppsModifySingularModes.outputFile = 'output.xml'
0039 
0040 # x, y and z: mm
0041 # rho in rad
0042 
0043 process.ppsModifySingularModes.z1 = 213.000 * 1E3 # 56-210-fr-vr
0044 process.ppsModifySingularModes.z2 = 220.000 * 1E3 # 56-220-fr-vr
0045 
0046 process.ppsModifySingularModes.de_x1 = +0.100
0047 process.ppsModifySingularModes.de_x2 = -0.100
0048 
0049 process.ppsModifySingularModes.de_y1 = +0.200
0050 process.ppsModifySingularModes.de_y2 = -0.200
0051 
0052 process.ppsModifySingularModes.de_rho1 = -0.005
0053 process.ppsModifySingularModes.de_rho2 = -0.010
0054 
0055 # processing sequence
0056 process.p = cms.Path(
0057   process.ppsModifySingularModes
0058 )