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("ppsTrackBasedAlignmentTest")
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 # random seeds
0017 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0018   ppsFastLocalSimulation = cms.PSet(
0019     initialSeed = cms.untracked.uint32(81)
0020   )
0021 )
0022 
0023 # data source
0024 process.source = cms.Source("EmptySource")
0025 
0026 process.maxEvents = cms.untracked.PSet(
0027     input = cms.untracked.int32(10000)
0028 )
0029 
0030 # geometry
0031 process.load("Geometry.VeryForwardGeometry.geometryRPFromDD_2018_cfi")
0032 del(process.XMLIdealGeometryESSource_CTPPS.geomXMLFiles[-1])
0033 process.XMLIdealGeometryESSource_CTPPS.geomXMLFiles.append("CalibPPS/AlignmentRelative/test/test_with_mc/RP_Dist_Beam_Cent.xml")
0034 
0035 # initial alignments
0036 process.load("CalibPPS.ESProducers.ctppsRPAlignmentCorrectionsDataESSourceXML_cfi")
0037 process.ctppsRPAlignmentCorrectionsDataESSourceXML.MisalignedFiles = cms.vstring("CalibPPS/AlignmentRelative/test/test_modify_singular_modes/$misalignment_file")
0038 
0039 # simulation
0040 process.load("CalibPPS.AlignmentRelative.ppsFastLocalSimulation_cfi")
0041 process.ppsFastLocalSimulation.verbosity = 0
0042 process.ppsFastLocalSimulation.z0 = 215000
0043 process.ppsFastLocalSimulation.RPs = cms.vuint32(103, 104, 105, 123, 124, 125)
0044 process.ppsFastLocalSimulation.roundToPitch = False
0045 
0046 # strips: pattern recognition
0047 process.load("RecoPPS.Local.totemRPUVPatternFinder_cfi")
0048 process.totemRPUVPatternFinder.tagRecHit = cms.InputTag("ppsFastLocalSimulation")
0049 
0050 # aligner
0051 process.load("CalibPPS.AlignmentRelative.ppsStraightTrackAligner_cfi")
0052 
0053 process.ppsStraightTrackAligner.verbosity = 1
0054 
0055 process.ppsStraightTrackAligner.tagUVPatternsStrip = cms.InputTag("totemRPUVPatternFinder")
0056 process.ppsStraightTrackAligner.tagDiamondHits = cms.InputTag("")
0057 process.ppsStraightTrackAligner.tagPixelHits = cms.InputTag("ppsFastLocalSimulation")
0058 
0059 process.ppsStraightTrackAligner.maxEvents = 1000
0060 
0061 process.ppsStraightTrackAligner.rpIds = [103, 104, 105, 123, 124, 125]
0062 process.ppsStraightTrackAligner.excludePlanes = cms.vuint32()
0063 process.ppsStraightTrackAligner.z0 = process.ppsFastLocalSimulation.z0
0064 
0065 process.ppsStraightTrackAligner.maxResidualToSigma = 100
0066 process.ppsStraightTrackAligner.minimumHitsPerProjectionPerRP = 3
0067 
0068 process.ppsStraightTrackAligner.removeImpossible = True
0069 process.ppsStraightTrackAligner.requireNumberOfUnits = 2
0070 process.ppsStraightTrackAligner.requireOverlap = False
0071 process.ppsStraightTrackAligner.requireAtLeast3PotsInOverlap = True
0072 process.ppsStraightTrackAligner.additionalAcceptedRPSets = ""
0073 
0074 process.ppsStraightTrackAligner.cutOnChiSqPerNdf = True
0075 process.ppsStraightTrackAligner.chiSqPerNdfCut = 5000
0076 
0077 process.ppsStraightTrackAligner.maxTrackAx = 1
0078 process.ppsStraightTrackAligner.maxTrackAy = 1
0079 
0080 process.ppsStraightTrackAligner.resolveShR = True
0081 process.ppsStraightTrackAligner.resolveShZ = False
0082 process.ppsStraightTrackAligner.resolveRotZ = True
0083 
0084 process.ppsStraightTrackAligner.constraintsType = cms.string("standard")
0085 process.ppsStraightTrackAligner.standardConstraints.units = cms.vuint32(101, 121)
0086 
0087 process.ppsStraightTrackAligner.algorithms = cms.vstring("Ideal", "Jan")
0088 
0089 process.ppsStraightTrackAligner.JanAlignmentAlgorithm.stopOnSingularModes = False
0090 
0091 process.ppsStraightTrackAligner.taskDataFileName = "" # results_dir + "/task_data.root"
0092 
0093 process.ppsStraightTrackAligner.fileNamePrefix = "$output_iteration"
0094 process.ppsStraightTrackAligner.expandedFileNamePrefix = ""
0095 process.ppsStraightTrackAligner.factoredFileNamePrefix = "$output_cumulative"
0096 
0097 process.ppsStraightTrackAligner.diagnosticsFile = ""
0098 process.ppsStraightTrackAligner.buildDiagnosticPlots = False
0099 process.ppsStraightTrackAligner.JanAlignmentAlgorithm.buildDiagnosticPlots = False
0100 
0101 # processing sequence
0102 process.p = cms.Path(
0103   process.ppsFastLocalSimulation
0104   * process.totemRPUVPatternFinder
0105   * process.ppsStraightTrackAligner
0106 )