5 primaryWidth = 0.0, cosmicsZeroTesla =
False):
10 process.load(
"Alignment.CommonAlignmentProducer.AlignmentProducer_cff")
13 process.AlignmentProducer.applyDbAlignment =
True
14 process.AlignmentProducer.checkDbAlignmentValidity =
False
17 process.AlignmentProducer.tjTkAssociationMapTag =
"FinalTrackRefitter"
20 process.AlignmentProducer.algoConfig = cms.PSet(
21 process.MillePedeAlignmentAlgorithm)
22 process.AlignmentProducer.algoConfig.mode = mode
23 process.AlignmentProducer.algoConfig.mergeBinaryFiles = cms.vstring()
26 process.AlignmentProducer.algoConfig.binaryFile = binaryFile
27 process.AlignmentProducer.algoConfig.monitorFile = monitorFile
29 process.AlignmentProducer.algoConfig.binaryFile =
''
30 process.AlignmentProducer.algoConfig.monitorFile =
'millePedeMonitor_merge.root'
31 process.AlignmentProducer.algoConfig.treeFile =
'treeFile_merge.root'
38 if collection ==
"ALCARECOTkAlZMuMu":
39 process.AlignmentProducer.algoConfig.TrajectoryFactory = cms.PSet(
40 process.TwoBodyDecayTrajectoryFactory
42 process.AlignmentProducer.algoConfig.TrajectoryFactory.ParticleProperties.PrimaryMass = 90.8745
43 process.AlignmentProducer.algoConfig.TrajectoryFactory.ParticleProperties.PrimaryWidth = 1.8770
44 process.AlignmentProducer.algoConfig.TrajectoryFactory.MaterialEffects =
"LocalGBL"
46 process.AlignmentProducer.algoConfig.TrajectoryFactory.UseInvalidHits =
True
47 elif collection ==
"ALCARECOTkAlCosmicsCTF0T" and cosmicsZeroTesla:
48 process.AlignmentProducer.algoConfig.TrajectoryFactory = cms.PSet(
49 process.BrokenLinesBzeroTrajectoryFactory
51 process.AlignmentProducer.algoConfig.TrajectoryFactory.MaterialEffects =
"LocalGBL"
52 process.AlignmentProducer.algoConfig.TrajectoryFactory.MomentumEstimate = 5.0
54 process.AlignmentProducer.algoConfig.TrajectoryFactory = cms.PSet(
55 process.BrokenLinesTrajectoryFactory
57 process.AlignmentProducer.algoConfig.TrajectoryFactory.MaterialEffects =
"LocalGBL"
64 if primaryWidth > 0.0:
65 process.AlignmentProducer.algoConfig.TrajectoryFactory.ParticleProperties.PrimaryWidth = primaryWidth