5 primaryWidth = 0.0, cosmicsZeroTesla =
False):
10 process.load(
"Alignment.CommonAlignmentProducer.AlignmentProducerAsAnalyzer_cff")
13 process.AlignmentProducer.applyDbAlignment =
True
14 process.AlignmentProducer.checkDbAlignmentValidity =
False
17 process.AlignmentProducer.tjTkAssociationMapTag =
"FinalTrackRefitter"
20 process.AlignmentProducer.enableAlignableUpdates =
True
23 process.AlignmentProducer.algoConfig = cms.PSet(
24 process.MillePedeAlignmentAlgorithm)
25 process.AlignmentProducer.algoConfig.mode = mode
26 process.AlignmentProducer.algoConfig.mergeBinaryFiles = cms.vstring()
27 process.AlignmentProducer.algoConfig.skipGlobalPositionRcdCheck =
True
30 process.AlignmentProducer.algoConfig.pedeSteerer.method =
"sparseMINRES-QLP 3 0.8"
31 process.AlignmentProducer.algoConfig.minNumHits = 8
32 process.AlignmentProducer.algoConfig.pedeSteerer.options = [
34 "outlierdownweighting 3",
46 process.AlignmentProducer.algoConfig.binaryFile = binaryFile
47 process.AlignmentProducer.algoConfig.monitorFile = monitorFile
49 process.AlignmentProducer.algoConfig.binaryFile =
''
50 process.AlignmentProducer.algoConfig.monitorFile =
'millePedeMonitor_merge.root'
51 process.AlignmentProducer.algoConfig.treeFile =
'treeFile_merge.root'
58 if collection ==
"ALCARECOTkAlZMuMu" or collection ==
"ALCARECOTkAlZMuMuHI" or collection ==
"ALCARECOTkAlZMuMuPA":
59 process.AlignmentProducer.algoConfig.TrajectoryFactory = cms.PSet(
60 process.TwoBodyDecayTrajectoryFactory
62 process.AlignmentProducer.algoConfig.TrajectoryFactory.ParticleProperties.PrimaryMass = 91.1061
63 process.AlignmentProducer.algoConfig.TrajectoryFactory.ParticleProperties.PrimaryWidth = 1.7678
64 process.AlignmentProducer.algoConfig.TrajectoryFactory.MaterialEffects =
"LocalGBL"
66 process.AlignmentProducer.algoConfig.TrajectoryFactory.UseInvalidHits =
True
67 elif collection ==
"ALCARECOTkAlUpsilonMuMu":
68 process.AlignmentProducer.algoConfig.TrajectoryFactory = cms.PSet(
69 process.TwoBodyDecayTrajectoryFactory
71 process.AlignmentProducer.algoConfig.TrajectoryFactory.ParticleProperties.PrimaryMass = 9.4502
72 process.AlignmentProducer.algoConfig.TrajectoryFactory.ParticleProperties.PrimaryWidth = 0.0644
73 process.AlignmentProducer.algoConfig.TrajectoryFactory.MaterialEffects =
"LocalGBL"
75 process.AlignmentProducer.algoConfig.TrajectoryFactory.UseInvalidHits =
True
76 elif collection ==
"ALCARECOTkAlCosmicsCTF0T" and cosmicsZeroTesla:
77 process.AlignmentProducer.algoConfig.TrajectoryFactory = cms.PSet(
78 process.BrokenLinesBzeroTrajectoryFactory
80 process.AlignmentProducer.algoConfig.TrajectoryFactory.MaterialEffects =
"LocalGBL"
81 process.AlignmentProducer.algoConfig.TrajectoryFactory.MomentumEstimate = 5.0
83 process.AlignmentProducer.algoConfig.TrajectoryFactory = cms.PSet(
84 process.BrokenLinesTrajectoryFactory
86 process.AlignmentProducer.algoConfig.TrajectoryFactory.MaterialEffects =
"LocalGBL"
93 if primaryWidth > 0.0:
94 process.AlignmentProducer.algoConfig.TrajectoryFactory.ParticleProperties.PrimaryWidth = primaryWidth