CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
ConfigureAlignmentProducer Namespace Reference

Functions

def setConfiguration
 

Function Documentation

def ConfigureAlignmentProducer.setConfiguration (   process,
  collection,
  mode,
  monitorFile,
  binaryFile,
  primaryWidth = 0.0 
)

Definition at line 3 of file ConfigureAlignmentProducer.py.

3 
4 def setConfiguration(process, collection, mode, monitorFile, binaryFile, primaryWidth = 0.0):
5 
6  #############
7  ## general ##
8  #############
9 
10  # Start geometry from db
11  process.AlignmentProducer.applyDbAlignment = True
12  process.AlignmentProducer.checkDbAlignmentValidity = False
13 
14  # What tracks are used to construct the reference trajectories?
15  process.AlignmentProducer.tjTkAssociationMapTag = "FinalTrackRefitter"
16 
17  # Configure the algorithm
18  process.AlignmentProducer.algoConfig = cms.PSet(
19  process.MillePedeAlignmentAlgorithm)
20  process.AlignmentProducer.algoConfig.mode = mode
21  process.AlignmentProducer.algoConfig.mergeBinaryFiles = cms.vstring()
22 
23  if mode == "mille":
24  process.AlignmentProducer.algoConfig.binaryFile = binaryFile
25  process.AlignmentProducer.algoConfig.monitorFile = monitorFile
26  elif "pede" in mode:
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"
31 
32 
33  ########################
34  ## Tracktype specific ##
35  ########################
36 
37  if collection is "ALCARECOTkAlZMuMu":
38  process.AlignmentProducer.algoConfig.TrajectoryFactory = cms.PSet(
39  process.TwoBodyDecayTrajectoryFactory
40  )
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"
44  # to account for multiple scattering in these layers
45  process.AlignmentProducer.algoConfig.TrajectoryFactory.UseInvalidHits = True
46  else:
47  process.AlignmentProducer.algoConfig.TrajectoryFactory = cms.PSet(
48  process.BrokenLinesTrajectoryFactory
49  )
50  process.AlignmentProducer.algoConfig.TrajectoryFactory.MaterialEffects = "LocalGBL"
51 
52 
53  ##################
54  ## primaryWidth ##
55  ##################
56 
57  if primaryWidth > 0.0:
58  process.AlignmentProducer.algoConfig.TrajectoryFactory.ParticleProperties.PrimaryWidth = primaryWidth
59