Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:47:51

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_with_mc/mis_alignment_sr.xml")
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 = True
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 process.ppsStraightTrackAligner.useEqualMeanUMeanVRotZConstraints = False
0087 process.ppsStraightTrackAligner.oneRotZPerPot = True
0088 
0089 process.ppsStraightTrackAligner.algorithms = cms.vstring("Ideal", "Jan")
0090 
0091 process.ppsStraightTrackAligner.JanAlignmentAlgorithm.stopOnSingularModes = False
0092 
0093 process.ppsStraightTrackAligner.taskDataFileName = "" # results_dir + "/task_data.root"
0094 
0095 process.ppsStraightTrackAligner.fileNamePrefix = "results_"
0096 process.ppsStraightTrackAligner.expandedFileNamePrefix = "results_cumulative_expanded_"
0097 process.ppsStraightTrackAligner.factoredFileNamePrefix = "results_cumulative_factored_"
0098 
0099 process.ppsStraightTrackAligner.diagnosticsFile = 'diagnostics.root'
0100 process.ppsStraightTrackAligner.buildDiagnosticPlots = True
0101 process.ppsStraightTrackAligner.JanAlignmentAlgorithm.buildDiagnosticPlots = True
0102 
0103 # processing sequence
0104 process.p = cms.Path(
0105   process.ppsFastLocalSimulation
0106   * process.totemRPUVPatternFinder
0107   * process.ppsStraightTrackAligner
0108 )