4 def setConfiguration(process, collection, mode, monitorFile, binaryFile, primaryWidth = 0.0):
11 process.AlignmentProducer.applyDbAlignment =
True
12 process.AlignmentProducer.checkDbAlignmentValidity =
False
15 process.AlignmentProducer.tjTkAssociationMapTag =
"FinalTrackRefitter"
18 process.AlignmentProducer.algoConfig = cms.PSet(
19 process.MillePedeAlignmentAlgorithm)
20 process.AlignmentProducer.algoConfig.mode = mode
21 process.AlignmentProducer.algoConfig.mergeBinaryFiles = cms.vstring()
24 process.AlignmentProducer.algoConfig.binaryFile = binaryFile
25 process.AlignmentProducer.algoConfig.monitorFile = monitorFile
27 process.AlignmentProducer.algoConfig.binaryFile =
''
28 process.AlignmentProducer.algoConfig.monitorFile =
'millePedeMonitor_merge.root'
29 process.AlignmentProducer.algoConfig.treeFile =
'treeFile_merge.root'
30 process.AlignmentProducer.algoConfig.pedeSteerer.pedeCommand =
"pede"
37 if collection
is "ALCARECOTkAlZMuMu":
38 process.AlignmentProducer.algoConfig.TrajectoryFactory = cms.PSet(
39 process.TwoBodyDecayTrajectoryFactory
41 process.AlignmentProducer.algoConfig.TrajectoryFactory.ParticleProperties.PrimaryMass = 90.8745
42 process.AlignmentProducer.algoConfig.TrajectoryFactory.ParticleProperties.PrimaryWidth = 1.8770
43 process.AlignmentProducer.algoConfig.TrajectoryFactory.MaterialEffects =
"LocalGBL"
45 process.AlignmentProducer.algoConfig.TrajectoryFactory.UseInvalidHits =
True
47 process.AlignmentProducer.algoConfig.TrajectoryFactory = cms.PSet(
48 process.BrokenLinesTrajectoryFactory
50 process.AlignmentProducer.algoConfig.TrajectoryFactory.MaterialEffects =
"LocalGBL"
57 if primaryWidth > 0.0:
58 process.AlignmentProducer.algoConfig.TrajectoryFactory.ParticleProperties.PrimaryWidth = primaryWidth