1 import FWCore.ParameterSet.Config
as cms
3 def setConfiguration(process, collection, mode, monitorFile, binaryFile, primaryWidth = 0.0):
10 process.AlignmentProducer.applyDbAlignment =
True
11 process.AlignmentProducer.checkDbAlignmentValidity =
False
14 process.AlignmentProducer.tjTkAssociationMapTag =
"FinalTrackRefitter"
17 process.AlignmentProducer.algoConfig = cms.PSet(
18 process.MillePedeAlignmentAlgorithm)
19 process.AlignmentProducer.algoConfig.mode = mode
20 process.AlignmentProducer.algoConfig.mergeBinaryFiles = cms.vstring()
23 process.AlignmentProducer.algoConfig.binaryFile = binaryFile
24 process.AlignmentProducer.algoConfig.monitorFile = monitorFile
26 process.AlignmentProducer.algoConfig.binaryFile =
''
27 process.AlignmentProducer.algoConfig.monitorFile =
'millePedeMonitor_merge.root'
28 process.AlignmentProducer.algoConfig.treeFile =
'treeFile_merge.root'
29 process.AlignmentProducer.algoConfig.pedeSteerer.pedeCommand =
"pede"
36 if collection
is "ALCARECOTkAlZMuMu":
37 process.AlignmentProducer.algoConfig.TrajectoryFactory = cms.PSet(
38 process.TwoBodyDecayTrajectoryFactory
40 process.AlignmentProducer.algoConfig.TrajectoryFactory.ParticleProperties.PrimaryMass = 90.8745
41 process.AlignmentProducer.algoConfig.TrajectoryFactory.ParticleProperties.PrimaryWidth = 1.8770
42 process.AlignmentProducer.algoConfig.TrajectoryFactory.MaterialEffects =
"LocalGBL"
44 process.AlignmentProducer.algoConfig.TrajectoryFactory.UseInvalidHits =
True
46 process.AlignmentProducer.algoConfig.TrajectoryFactory = cms.PSet(
47 process.BrokenLinesTrajectoryFactory
49 process.AlignmentProducer.algoConfig.TrajectoryFactory.MaterialEffects =
"LocalGBL"
56 if primaryWidth > 0.0:
57 process.AlignmentProducer.algoConfig.TrajectoryFactory.ParticleProperties.PrimaryWidth = primaryWidth