CMS 3D CMS Logo

HIPAlignmentAlgorithm_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # parameters for HIPAlignmentAlgorithm
4 HIPAlignmentAlgorithm = cms.PSet(
5  algoName = cms.string('HIPAlignmentAlgorithm'),
6  debug = cms.bool(False),
7  verbosity = cms.bool(False),
8  checkDbAlignmentValidity=cms.bool(False),
9 
10  isCollision = cms.bool(True),
11  UsePreSelection = cms.bool(False),
12 
13  multiIOV=cms.bool(False),
14  IOVrange=cms.vuint32(1,99999999),
15 
16  minRelParameterError = cms.double(0),
17  maxRelParameterError = cms.double(-1), # -1 for no cut
18  minimumNumberOfHits = cms.int32(1),
19  maxAllowedHitPull = cms.double(-1), # -1 for no cut
20 
21  applyCutsPerComponent = cms.bool(False), # Overrides settings above for the specified detectors
22  cutsPerComponent = cms.VPSet(
23  cms.PSet(
24  Selector = cms.PSet(
25  alignParams = cms.vstring(
26  "AllAlignables,000000" # Obligatory second string
27  ) # can use "selected" for the already-specified alignables
28  ),
29  # Parameter cuts
30  minRelParError = cms.double(0),
31  maxRelParError = cms.double(-1), # -1 for no cut
32  # Hit cuts
33  minNHits = cms.int32(0),
34  maxHitPull = cms.double(-1), # -1 for no cut
35  applyPixelProbCut = cms.bool(False),
36  usePixelProbXYOrProbQ = cms.bool(False), # Uses or instead of and when applying the min-max cuts
37  minPixelProbXY = cms.double(0),
38  maxPixelProbXY = cms.double(1),
39  minPixelProbQ = cms.double(0),
40  maxPixelProbQ = cms.double(1),
41  )
42  ),
43 
44  # APE settings
45  applyAPE = cms.bool(False),
46  apeParam = cms.VPSet(
47  cms.PSet(
48  Selector = cms.PSet(
49  alignParams = cms.vstring(
50  "AllAlignables,000000"
51  ) # can use "selected" for the already-specified alignables
52  ),
53  function = cms.string('linear'), ## linear, step or exponential
54  apeRPar = cms.vdouble(0, 0, 0), # cm
55  apeSPar = cms.vdouble(0, 0, 0), # mrad
56  )
57  ),
58 
59  # Re-weighting
60  DataGroup=cms.int32(-2),
61  UseReweighting = cms.bool(False),
62  Weight = cms.double(1),
63  UniformEta = cms.bool(False),
64  UniformEtaFormula = cms.string("1"),
65  ReweightPerAlignable = cms.bool(False),
66 
67  # Impact angle cut
68  CLAngleCut = cms.double(1.571), # upper bound on collision track impact angle, default -no cut
69  CSAngleCut = cms.double(0), # lower bound on cosmics track impact angle, default -no cut
70 
71  # Chisquare scan
72  setScanDet = cms.vdouble(0,0,0), # detector ID (1=all det), start,step
73 
74  # File paths and names
75  outpath = cms.string('./'),
76  collectorActive = cms.bool(False),
77  collectorNJobs = cms.int32(0),
78  collectorPath = cms.string(''),
79  uvarFile = cms.string('IOUserVariables.root'),
80  alignedFile = cms.string('IOAlignedPositions.root'),
81  misalignedFile = cms.string('IOMisalignedPositions.root'),
82  trueFile = cms.string('IOTruePositions.root'),
83  parameterFile = cms.string('IOAlignmentParameters.root'),
84  iterationFile = cms.string('IOIteration.root'),
85  outfile2 = cms.string('HIPAlignmentAlignables.root'),
86 
87  monitorConfig = cms.PSet(
88  outfile = cms.string('HIPAlignmentEvents.root'),
89  maxEventsPerJob = cms.int32(-1),
90  fillTrackMonitoring = cms.bool(False),
91  maxTracks = cms.int32(100),
92  fillTrackHitMonitoring = cms.bool(False),
93  maxHits = cms.int32(10000), # Not per track, just total
94  ),
95 
96  surveyResiduals = cms.untracked.vstring(), ## no survey constraint
97  surveyFile = cms.string('HIPSurveyResiduals.root'),
98 )
99