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