Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:44:49

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("Alignment")
0004 
0005 # initialize  MessageLogger
0006 process.MessageLogger = cms.Service("MessageLogger",
0007     cerr = cms.untracked.PSet(
0008         enable = cms.untracked.bool(False)
0009     ),
0010     cout = cms.untracked.PSet(
0011         enable = cms.untracked.bool(True),
0012         enableStatistics = cms.untracked.bool(True),
0013         noLineBreaks = cms.untracked.bool(True),
0014         threshold = cms.untracked.string('DEBUG')
0015     ),
0016     files = cms.untracked.PSet(
0017         alignment = cms.untracked.PSet(
0018             Alignment = cms.untracked.PSet(
0019                 limit = cms.untracked.int32(-1)
0020             ),
0021             DEBUG = cms.untracked.PSet(
0022                 limit = cms.untracked.int32(0)
0023             ),
0024             ERROR = cms.untracked.PSet(
0025                 limit = cms.untracked.int32(0)
0026             ),
0027             INFO = cms.untracked.PSet(
0028                 limit = cms.untracked.int32(0)
0029             ),
0030             WARNING = cms.untracked.PSet(
0031                 limit = cms.untracked.int32(0)
0032             ),
0033             enableStatistics = cms.untracked.bool(True),
0034             noLineBreaks = cms.untracked.bool(True),
0035             threshold = cms.untracked.string('INFO')
0036         )
0037     )
0038 )
0039 
0040 # we need conditions
0041 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0042 process.GlobalTag.globaltag = 'IDEAL_30X::All'
0043 
0044 # initialize magnetic field
0045 process.load("Configuration.StandardSequences.MagneticField_cff")
0046 
0047 # ideal geometry and interface
0048 process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
0049 process.load("Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi")
0050 # for Muon: include "Geometry/MuonNumbering/data/muonNumberingInitialization.cfi"
0051 
0052 # track selection for alignment
0053 process.load("Alignment.CommonAlignmentProducer.AlignmentTrackSelector_cfi")
0054 
0055 # track refit needs a beamspot in event (irrelevant which one)!:
0056 process.load("RecoVertex.BeamSpotProducer.BeamSpot_cfi")
0057 
0058 # refitter
0059 process.load("RecoTracker.TrackProducer.TrackRefitters_cff")
0060 process.TrackRefitter.src = 'AlignmentTrackSelector'
0061 process.TrackRefitter.TrajectoryInEvent = True
0062 
0063 # Alignment producer
0064 process.load("Alignment.CommonAlignmentProducer.AlignmentProducer_cff")
0065 # replace AlignmentProducer.doMisalignmentScenario = true
0066 # replace AlignmentProducer.applyDbAlignment = true
0067 
0068 process.source = cms.Source("PoolSource",
0069     skipEvents = cms.untracked.uint32(0),
0070     fileNames = cms.untracked.vstring('/store/relval/2008/6/4/RelVal-RelValZMM-1212543891-STARTUP-2nd/0000/0A9973E2-9A32-DD11-BE04-001617E30F50.root')
0071 )
0072 
0073 process.p = cms.Path(process.offlineBeamSpot+process.AlignmentTrackSelector*process.TrackRefitter)
0074 
0075