CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/Alignment/MuonAlignmentAlgorithms/python/CSCOverlapsAlignmentAlgorithm_cff.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 from TrackingTools.TransientTrack.TransientTrackBuilder_cfi import *
00004 from Configuration.StandardSequences.GeometryExtended_cff import *
00005 from Configuration.StandardSequences.MagneticField_cff import *
00006 from TrackingTools.GeomPropagators.SmartPropagator_cff import *
00007 from RecoVertex.BeamSpotProducer.BeamSpot_cfi import *
00008 from RecoTracker.Configuration.RecoTracker_cff import *
00009 from RecoTracker.TransientTrackingRecHit.TransientTrackingRecHitBuilderWithoutRefit_cfi import *
00010 from TrackingTools.TrackRefitter.TracksToTrajectories_cff import *
00011 TrackerDigiGeometryESModule.applyAlignment = False
00012 del DTGeometryESModule
00013 del CSCGeometryESModule
00014 
00015 from Alignment.CommonAlignmentProducer.AlignmentProducer_cff import *
00016 looper.doTracker = cms.untracked.bool(False)
00017 looper.doMuon = cms.untracked.bool(True)
00018 looper.ParameterBuilder.Selector.alignParams = cms.vstring("MuonCSCChambers,111111")
00019 looper.tjTkAssociationMapTag = cms.InputTag("CSCOverlapsTrackPreparationTrackRefitter")
00020 
00021 from Alignment.MuonAlignmentAlgorithms.CSCOverlapsAlignmentAlgorithm_cfi import *
00022 looper.algoConfig = CSCOverlapsAlignmentAlgorithm
00023 
00024 CSCOverlapsTrackPreparationTrackRefitter = cms.EDProducer("CSCOverlapsTrackPreparation", src = cms.InputTag("ALCARECOMuAlBeamHaloOverlaps"))
00025 Path = cms.Path(offlineBeamSpot * CSCOverlapsTrackPreparationTrackRefitter)
00026 
00027 import CondCore.DBCommon.CondDBSetup_cfi
00028 inertGlobalPositionRcd = cms.ESSource("PoolDBESSource",
00029                                       CondCore.DBCommon.CondDBSetup_cfi.CondDBSetup,
00030                                       connect = cms.string("sqlite_file:inertGlobalPositionRcd.db"),
00031                                       toGet = cms.VPSet(cms.PSet(record = cms.string("GlobalPositionRcd"), tag = cms.string("inertGlobalPositionRcd"))))
00032 es_prefer_inertGlobalPositionRcd = cms.ESPrefer("PoolDBESSource", "inertGlobalPositionRcd")
00033 muonAlignment = cms.ESSource("PoolDBESSource",
00034                              CondCore.DBCommon.CondDBSetup_cfi.CondDBSetup,
00035                              connect = cms.string("sqlite_file:inputdb.db"),
00036                              toGet = cms.VPSet(cms.PSet(record = cms.string("CSCAlignmentRcd"),      tag = cms.string("CSCAlignmentRcd"))))
00037 es_prefer_muonAlignment = cms.ESPrefer("PoolDBESSource", "muonAlignment")
00038 looper.applyDbAlignment = True
00039 
00040 PoolDBOutputService = cms.Service("PoolDBOutputService",
00041                                   CondCore.DBCommon.CondDBSetup_cfi.CondDBSetup,
00042                                   connect = cms.string("sqlite_file:outputdb.db"),
00043                                   toPut = cms.VPSet(cms.PSet(record = cms.string("DTAlignmentRcd"), tag = cms.string("DTAlignmentRcd")),
00044                                                     cms.PSet(record = cms.string("DTAlignmentErrorRcd"), tag = cms.string("DTAlignmentErrorRcd")),
00045                                                     cms.PSet(record = cms.string("CSCAlignmentRcd"), tag = cms.string("CSCAlignmentRcd")),
00046                                                     cms.PSet(record = cms.string("CSCAlignmentErrorRcd"), tag = cms.string("CSCAlignmentErrorRcd"))))
00047 looper.saveToDB = True
00048 looper.saveApeToDB = True