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