1 import FWCore.ParameterSet.Config
as cms
4 primaryWidth = 0.0, cosmicsZeroTesla =
False):
9 process.load(
"Alignment.CommonAlignmentProducer.AlignmentProducerAsAnalyzer_cff")
12 process.AlignmentProducer.applyDbAlignment =
True
13 process.AlignmentProducer.checkDbAlignmentValidity =
False
16 process.AlignmentProducer.tjTkAssociationMapTag =
"FinalTrackRefitter"
19 process.AlignmentProducer.enableAlignableUpdates =
True
22 process.AlignmentProducer.algoConfig = cms.PSet(
23 process.MillePedeAlignmentAlgorithm)
24 process.AlignmentProducer.algoConfig.mode = mode
25 process.AlignmentProducer.algoConfig.mergeBinaryFiles = cms.vstring()
26 process.AlignmentProducer.algoConfig.skipGlobalPositionRcdCheck =
True
29 process.AlignmentProducer.algoConfig.pedeSteerer.method =
"sparseMINRES-QLP 3 0.8"
30 process.AlignmentProducer.algoConfig.minNumHits = 8
31 process.AlignmentProducer.algoConfig.pedeSteerer.options = [
33 "outlierdownweighting 3",
45 process.AlignmentProducer.algoConfig.binaryFile = binaryFile
46 process.AlignmentProducer.algoConfig.monitorFile = monitorFile
48 process.AlignmentProducer.algoConfig.binaryFile =
''
49 process.AlignmentProducer.algoConfig.monitorFile =
'millePedeMonitor_merge.root'
50 process.AlignmentProducer.algoConfig.treeFile =
'treeFile_merge.root'
57 if collection ==
"ALCARECOTkAlZMuMu" or collection ==
"ALCARECOTkAlZMuMuHI" or collection ==
"ALCARECOTkAlZMuMuPA":
58 process.AlignmentProducer.algoConfig.TrajectoryFactory = cms.PSet(
59 process.TwoBodyDecayTrajectoryFactory
61 process.AlignmentProducer.algoConfig.TrajectoryFactory.ParticleProperties.PrimaryMass = 91.1061
62 process.AlignmentProducer.algoConfig.TrajectoryFactory.ParticleProperties.PrimaryWidth = 1.7678
63 process.AlignmentProducer.algoConfig.TrajectoryFactory.MaterialEffects =
"LocalGBL"
65 process.AlignmentProducer.algoConfig.TrajectoryFactory.UseInvalidHits =
True
66 elif collection ==
"ALCARECOTkAlUpsilonMuMu":
67 process.AlignmentProducer.algoConfig.TrajectoryFactory = cms.PSet(
68 process.TwoBodyDecayTrajectoryFactory
70 process.AlignmentProducer.algoConfig.TrajectoryFactory.ParticleProperties.PrimaryMass = 9.4502
71 process.AlignmentProducer.algoConfig.TrajectoryFactory.ParticleProperties.PrimaryWidth = 0.0644
72 process.AlignmentProducer.algoConfig.TrajectoryFactory.MaterialEffects =
"LocalGBL"
74 process.AlignmentProducer.algoConfig.TrajectoryFactory.UseInvalidHits =
True
75 elif collection ==
"ALCARECOTkAlCosmicsCTF0T" and cosmicsZeroTesla:
76 process.AlignmentProducer.algoConfig.TrajectoryFactory = cms.PSet(
77 process.BrokenLinesBzeroTrajectoryFactory
79 process.AlignmentProducer.algoConfig.TrajectoryFactory.MaterialEffects =
"LocalGBL"
80 process.AlignmentProducer.algoConfig.TrajectoryFactory.MomentumEstimate = 5.0
82 process.AlignmentProducer.algoConfig.TrajectoryFactory = cms.PSet(
83 process.BrokenLinesTrajectoryFactory
85 process.AlignmentProducer.algoConfig.TrajectoryFactory.MaterialEffects =
"LocalGBL"
92 if primaryWidth > 0.0:
93 process.AlignmentProducer.algoConfig.TrajectoryFactory.ParticleProperties.PrimaryWidth = primaryWidth