1 import FWCore.ParameterSet.Config
as cms
4 primaryWidth = 0.0, cosmicsZeroTesla =
False):
9 process.load(
"Alignment.CommonAlignmentProducer.AlignmentProducer_cff")
12 process.AlignmentProducer.applyDbAlignment =
True
13 process.AlignmentProducer.checkDbAlignmentValidity =
False
16 process.AlignmentProducer.tjTkAssociationMapTag =
"FinalTrackRefitter"
19 process.AlignmentProducer.algoConfig = cms.PSet(
20 process.MillePedeAlignmentAlgorithm)
21 process.AlignmentProducer.algoConfig.mode = mode
22 process.AlignmentProducer.algoConfig.mergeBinaryFiles = cms.vstring()
25 process.AlignmentProducer.algoConfig.binaryFile = binaryFile
26 process.AlignmentProducer.algoConfig.monitorFile = monitorFile
28 process.AlignmentProducer.algoConfig.binaryFile =
''
29 process.AlignmentProducer.algoConfig.monitorFile =
'millePedeMonitor_merge.root'
30 process.AlignmentProducer.algoConfig.treeFile =
'treeFile_merge.root'
37 if collection ==
"ALCARECOTkAlZMuMu" or collection ==
"ALCARECOTkAlZMuMuHI" or collection ==
"ALCARECOTkAlZMuMuPA":
38 process.AlignmentProducer.algoConfig.TrajectoryFactory = cms.PSet(
39 process.TwoBodyDecayTrajectoryFactory
41 process.AlignmentProducer.algoConfig.TrajectoryFactory.ParticleProperties.PrimaryMass = 91.1061
42 process.AlignmentProducer.algoConfig.TrajectoryFactory.ParticleProperties.PrimaryWidth = 1.7678
43 process.AlignmentProducer.algoConfig.TrajectoryFactory.MaterialEffects =
"LocalGBL"
45 process.AlignmentProducer.algoConfig.TrajectoryFactory.UseInvalidHits =
True
46 elif collection ==
"ALCARECOTkAlCosmicsCTF0T" and cosmicsZeroTesla:
47 process.AlignmentProducer.algoConfig.TrajectoryFactory = cms.PSet(
48 process.BrokenLinesBzeroTrajectoryFactory
50 process.AlignmentProducer.algoConfig.TrajectoryFactory.MaterialEffects =
"LocalGBL"
51 process.AlignmentProducer.algoConfig.TrajectoryFactory.MomentumEstimate = 5.0
53 process.AlignmentProducer.algoConfig.TrajectoryFactory = cms.PSet(
54 process.BrokenLinesTrajectoryFactory
56 process.AlignmentProducer.algoConfig.TrajectoryFactory.MaterialEffects =
"LocalGBL"
63 if primaryWidth > 0.0:
64 process.AlignmentProducer.algoConfig.TrajectoryFactory.ParticleProperties.PrimaryWidth = primaryWidth