Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:56:16

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 # misalignment scenarios
0004 from Alignment.TrackerAlignment.Scenarios_cff import *
0005 
0006 # algorithms
0007 from Alignment.HIPAlignmentAlgorithm.HIPAlignmentAlgorithm_cfi import *
0008 from Alignment.MillePedeAlignmentAlgorithm.MillePedeAlignmentAlgorithm_cfi import *
0009 
0010 # parameters
0011 from Alignment.CommonAlignmentAlgorithm.AlignmentParameterStore_cfi import *
0012 
0013 AlignmentProducer = cms.EDProducer("AlignmentProducerAsAnalyzer",
0014                     AlignmentParameterStore, # configuration of AlignmentParameterStore
0015                     doTracker = cms.untracked.bool(True),
0016                     doMuon = cms.untracked.bool(False),
0017                     useExtras = cms.untracked.bool(False),
0018                     # Read survey info from DB: true requires configuration of PoolDBESSource
0019                     # See Alignment/SurveyAnalysis/test/readDB.cfg for an example
0020                     useSurvey = cms.bool(False),
0021 
0022                     # (Mis-)alignment including surface deformations from database
0023                     # true requires configuration of PoolDBESSource
0024                     applyDbAlignment = cms.untracked.bool(False),
0025 
0026                     # Checks the IOV of the alignment to be applied. Only has an effect
0027                     # if applyDbAlignment is True as well. If set to True, the alignment
0028                     # record to be applied is expected to have a validity from 1 to INF
0029                     checkDbAlignmentValidity = cms.untracked.bool(True),
0030 
0031                     # misalignment scenario
0032                     MisalignmentScenario = cms.PSet(NoMovementsScenario), # why not by reference?
0033                     doMisalignmentScenario = cms.bool(False),
0034                     # simple misalignment of selected alignables and selected dof (deprecated!)
0035                     randomShift = cms.double(0.0),
0036                     randomRotation = cms.double(0.0),
0037                     parameterSelectorSimple = cms.string('-1'),
0038 
0039                     # selection of alignables and their parameters
0040                     # see twiki: SWGuideAlignmentAlgorithms
0041                     ParameterBuilder = cms.PSet(parameterTypes = cms.vstring('Selector,RigidBody'),
0042                                                 Selector = cms.PSet(alignParams = cms.vstring('PixelHalfBarrelLayers,111000'))
0043                                                 ),
0044                     # number of selected alignables to be kept fixed (deprecated!)
0045                     nFixAlignables = cms.int32(0), # i.e. removed from selection above...
0046 
0047                     # event input
0048                     tjTkAssociationMapTag = cms.InputTag("TrackRefitter"),
0049                     beamSpotTag           = cms.InputTag("offlineBeamSpot"),
0050                     hitPrescaleMapTag     = cms.InputTag(""), # not used if empty
0051                     # run input
0052                     tkLasBeamTag          = cms.InputTag(""), # not used if empty
0053 
0054                     # Choose one algorithm with configuration, HIP is default
0055                     algoConfig = cms.PSet(MillePedeAlignmentAlgorithm), # why not by reference?
0056                     # Some algorithms support integrated calibrations, which to use is defined
0057                     # by the string 'calibrationName' in the PSet of each calibration.
0058                     calibrations = cms.VPSet(),
0059                     # choose monitors (default is none)
0060                     monitorConfig = cms.PSet(monitors = cms.untracked.vstring()),
0061 
0062                     # VPSet that allows splitting of alignment parameters into various
0063                     # run ranges. The default is a run range independent alignment
0064                     RunRangeSelection = cms.VPSet(
0065                       #cms.PSet(RunRanges = cms.vstring('-1','140401','143488')
0066                       #         selector = cms.vstring('TrackerTPBHalfBarrel,001000',
0067                       #                                'TrackerTPEHalfDisk,111000')
0068                       #)
0069                     ),
0070 
0071                     # Save alignment to DB: true requires configuration of PoolDBOutputService
0072                     saveToDB = cms.bool(False),             # save alignment?
0073                     saveApeToDB = cms.bool(False),          # save APE?
0074                     saveDeformationsToDB = cms.bool(False), # save surface deformations (bows, etc.)?
0075 
0076                     # update alignables if triggered by corresponding input IOV boundary
0077                     enableAlignableUpdates = cms.bool(False),
0078                     
0079                     # Change tracker alignment record name to avoid confusion bettwen HG and LG PCL alignment
0080                     trackerAlignmentRcdName = cms.string("TrackerAlignmentRcd")
0081                     )
0082 import Geometry.DTGeometryBuilder.dtGeometryDB_cfi
0083 DTGeometryAlignmentProducerAsAnalyzer = Geometry.DTGeometryBuilder.dtGeometryDB_cfi.DTGeometryESModule.clone()
0084 DTGeometryAlignmentProducerAsAnalyzer.appendToDataLabel = 'idealForAlignmentProducerBase'
0085 import Geometry.CSCGeometryBuilder.cscGeometryDB_cfi
0086 CSCGeometryAlignmentProducerAsAnalyzer = Geometry.CSCGeometryBuilder.cscGeometryDB_cfi.CSCGeometryESModule.clone()
0087 CSCGeometryAlignmentProducerAsAnalyzer.appendToDataLabel = 'idealForAlignmentProducerBase'
0088 import   Geometry.GEMGeometryBuilder.gemGeometryDB_cfi
0089 GEMGeometryAlignmentProducerAsAnalyzer = Geometry.GEMGeometryBuilder.gemGeometryDB_cfi.GEMGeometryESModule.clone()
0090 GEMGeometryAlignmentProducerAsAnalyzer.appendToDataLabel = 'idealForAlignmentProducerBase'