CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MillePedeAlignmentAlgorithm_cfi.py
Go to the documentation of this file.
1 # MillePedeAlignmentAlgorithm
2 # ---------------------------
3 
4 import FWCore.ParameterSet.Config as cms
5 
7 
8 MillePedeAlignmentAlgorithm = cms.PSet(
9  algoName = cms.string('MillePedeAlignmentAlgorithm'),
10  mode = cms.untracked.string('full'), ## possible modes: full, mille, pede, pedeSteer, pedeRun, pedeRead
11  fileDir = cms.untracked.string(''),
12 
13  # Where mille writes (and pede reads) derivatives, labels etc.
14  binaryFile = cms.string('milleBinary.dat'),
15  # Resulting and initial parameters, absolute (original) positions, result etc.
16  treeFile = cms.string('treeFile.root'),
17  # Must be empty if mille runs, otherwise for merging (pede) jobs should be parallel with each
18  # other. Then 'treeFile' is merged result and 'binaryFile' should be empty.
19  mergeBinaryFiles = cms.vstring(),
20  mergeTreeFiles = cms.vstring(),
21 
22  monitorFile = cms.untracked.string('millePedeMonitor.root'), ## if empty: no monitoring...
23 
24  # PSet that allows to configure the pede labeler, i.e. select the actual
25  # labeler plugin to use and parameters for the selected plugin
26  pedeLabeler = cms.PSet(
27  #plugin = cms.string('MomentumDependentPedeLabeler')
28  #parameterInstances = cms.VPSet(
29  # cms.PSet(momentumRanges = cms.vstring('0.0:50.0','50.0:10000.0'),
30  # selector = cms.vstring('ExtrasBeamSpot,1111'))
31  # )
32  ),
33 
34  pedeSteerer = cms.PSet(
35  fileDir = cms.untracked.string(''),
36  steerFile = cms.string('pedeSteer'), ## beginning of steering file names
37  steerFileDebug = cms.untracked.bool(False),
38  # If MillePedeAlignmentAlgorithm.mode causes pede to run (e.g. 'full', 'pede' etc.),
39  # the pede command line is constructed as:
40  # 'pedeCommand' 'steerFile'Master.txt
41  # (and - if pedeDump is not empty - extended by: > 'pedeDump')
42  # (MillePedeAlignmentAlgorithm.theDir is taken into account...)
43  pedeCommand = cms.untracked.string('pede_1GB'),
44 
45  parameterSign = cms.untracked.int32(1), ## old pede versions (before May '07) need a sign flip
46  pedeDump = cms.untracked.string('pede.dump'),
47  method = cms.string('sparseMINRES 6 0.8'), ## "inversion 6 0.8"
48  options = cms.vstring('entries 50', # min. number of measurements (parameters with less will be skipped)
49  # 'regularisation 1.0 0.01', # regularisation with default pre-sigma 0.01
50  # "chisqcut 20.0 4.5", # simple chi^2 cut for outliers AND/OR ...
51  # "outlierdownweighting 3", "dwfractioncut 0.1" #, # ... 3x Huber down weighting OR...
52  'outlierdownweighting 5', 'dwfractioncut 0.2'),
53 
54  # Special selection of parameters to fix, use as reference coordinate system etc.
55  # ------------------------------------------------------------------------------
56  # All this is determined from what is given as
57  # AlignmentProducer.ParameterBuilder.Selector, cf. Twiki page SWGuideMillepedeIIAlgorithm.
58  Presigmas = cms.VPSet(),
59  minHieraConstrCoeff = cms.double(1.e-7), # min abs value of coeff. in hierarchy constr.
60  minHieraParPerConstr = cms.uint32(2), # ignore hierarchy constraints with less params
61 
62  # specify additional steering files
63  additionalSteerFiles = cms.vstring(), # obsolete - can be given as entries in 'options'
64 
65  # Parameter vector for the systematic geometry deformations
66  # Empty vector -> constraints are NOT applied (default)
67  constraints = cms.VPSet()
68  ),
69 
70  pedeReader = cms.PSet(
71  readFile = cms.string('millepede.res'),
72  # directory of 'readFile', if empty:
73  # take from pedeSteerer (inheriting from MillePedeAlignmentAlgorithm)
74  fileDir = cms.untracked.string('')
75  ),
76 
77  # Array of PSet's like 'pedeReader' above to be applied before running mille,
78  # i.e. for iterative running of Millepede without going via DB constants
79  # (note: if 'fileDir' empty, the one from 'pedeSteerer' will be used...):
80  pedeReaderInputs = cms.VPSet(),
81 
82  TrajectoryFactory = BrokenLinesTrajectoryFactory, # from TrajectoryFactories
83  # BrokenLinesBzeroTrajectoryFactory
84  # TwoBodyDecayReferenceTrajectoryFactory, # for this overwrite MaterialEffects for BL
85  minNumHits = cms.uint32(7), ## minimum number of hits (with alignable parameters)
86  max2Dcorrelation = cms.double(0.05), ## if correlation >5% 2D measurements in TID/TEC get diagonalized
87 
88  # Parameters for PXB survey steering
89  surveyPixelBarrel = cms.PSet(
90  doSurvey = cms.bool(False),
91  infile = cms.FileInPath("Alignment/SurveyAnalysis/data/BPix_Survey_info_raw.txt"),
92  doOutputOnStdout = cms.bool(False),
93  # Settings for toy survey - produces a file with toy survey data according to given parameters
94  doToySurvey = cms.bool(False),
95  toySurveyFile = cms.untracked.string('toySurveyInfo.txt'),
96  toySurveySeed = cms.uint32(12),
97  toySurveyParameters = cms.VPSet(
98  # Position of photo in local frame (unit: pixels in photo)
99  cms.PSet(name = cms.string('a0'), mean = cms.double(1800.), sigma = cms.double(150.)),
100  cms.PSet(name = cms.string('a1'), mean = cms.double(2600.), sigma = cms.double(200.)),
101  # Scale of photo (unit: pixels per cm)
102  cms.PSet(name = cms.string('scale'), mean = cms.double(1150.), sigma = cms.double(50.)),
103  # Rotation of photo in local frame (unit: rads)
104  cms.PSet(name = cms.string('phi'), mean = cms.double(0.), sigma = cms.double(0.0025)),
105  # Smearing of measurements in u and v coordinate (unit: pixels in photo)
106  cms.PSet(name = cms.string('u'), mean = cms.double(0.), sigma = cms.double(0.175)),
107  cms.PSet(name = cms.string('v'), mean = cms.double(0.), sigma = cms.double(0.175))
108  )
109  )
110 )
111