Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("APE")
0004 # we need conditions
0005 #process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0006 #process.GlobalTag.globaltag = 'IDEAL_V11::All'
0007 
0008 # include "Configuration/StandardSequences/data/FakeConditions.cff"
0009 # initialize magnetic field
0010 #process.load("Configuration.StandardSequences.MagneticField_cff")
0011 
0012 # ideal geometry and interface
0013 process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
0014 process.load("Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi")
0015 # for Muon: include "Geometry/MuonNumbering/data/muonNumberingInitialization.cfi"
0016 
0017 # track selection for alignment
0018 #process.load("Alignment.CommonAlignmentProducer.AlignmentTrackSelector_cfi")
0019 
0020 # Alignment producer
0021 process.load("Alignment.CommonAlignmentProducer.AlignmentProducer_cff")
0022 from Alignment.CommonAlignmentAlgorithm.ApeSettingAlgorithm_cfi import *
0023 process.AlignmentProducer.algoConfig = ApeSettingAlgorithm
0024 process.AlignmentProducer.saveApeToDB = True
0025 process.AlignmentProducer.algoConfig.readApeFromASCII = True
0026 process.AlignmentProducer.algoConfig.setComposites = False
0027 process.AlignmentProducer.algoConfig.readLocalNotGlobal = False
0028 process.AlignmentProducer.algoConfig.apeASCIIReadFile = 'Alignment/CommonAlignmentAlgorithm/test/ApeDump.txt'
0029 process.AlignmentProducer.algoConfig.saveApeToASCII = True
0030 process.AlignmentProducer.algoConfig.saveComposites = False
0031 process.AlignmentProducer.algoConfig.apeASCIISaveFile = 'myDump.txt'
0032         
0033 # replace AlignmentProducer.doMisalignmentScenario = true
0034 # replace AlignmentProducer.applyDbAlignment = true # needs other conditions than fake!
0035 # Track refitter (adapted to alignment needs)
0036 #process.load("RecoTracker.TrackProducer.RefitterWithMaterial_cff")
0037 
0038 # to be refined...
0039 process.MessageLogger = cms.Service("MessageLogger",
0040     cerr = cms.untracked.PSet(
0041         enable = cms.untracked.bool(False)
0042     ),
0043     cout = cms.untracked.PSet(
0044         enable = cms.untracked.bool(True),
0045         enableStatistics = cms.untracked.bool(True),
0046         noLineBreaks = cms.untracked.bool(True),
0047         threshold = cms.untracked.string('DEBUG')
0048     ),
0049     files = cms.untracked.PSet(
0050         alignment = cms.untracked.PSet(
0051             Alignment = cms.untracked.PSet(
0052                 limit = cms.untracked.int32(-1)
0053             ),
0054             DEBUG = cms.untracked.PSet(
0055                 limit = cms.untracked.int32(0)
0056             ),
0057             ERROR = cms.untracked.PSet(
0058                 limit = cms.untracked.int32(0)
0059             ),
0060             INFO = cms.untracked.PSet(
0061                 limit = cms.untracked.int32(0)
0062             ),
0063             WARNING = cms.untracked.PSet(
0064                 limit = cms.untracked.int32(0)
0065             ),
0066             enableStatistics = cms.untracked.bool(True),
0067             noLineBreaks = cms.untracked.bool(True),
0068             threshold = cms.untracked.string('INFO')
0069         )
0070     )
0071 )
0072 
0073 process.source = cms.Source("EmptySource")
0074 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(0) )
0075 
0076 from CondCore.DBCommon.CondDBSetup_cfi import *
0077 process.PoolDBOutputService = cms.Service(
0078     "PoolDBOutputService",
0079     CondDBSetup,
0080     timetype = cms.untracked.string('runnumber'),
0081     connect = cms.string('sqlite_file:TkAlignmentApe.db'),
0082     toPut = cms.VPSet(cms.PSet(record = cms.string('TrackerAlignmentErrorRcd'),
0083                                tag = cms.string('testTagAPE')
0084                                )
0085                       )
0086     )
0087 
0088 
0089 
0090 # We do not even need a path - producer is called anyway...
0091 #process.load("RecoVertex.BeamSpotProducer.BeamSpot_cfi")
0092 #process.p = cms.Path(process.offlineBeamSpot)
0093 #process.TrackRefitter.src = 'AlignmentTrackSelector'
0094 #process.TrackRefitter.TrajectoryInEvent = True
0095 
0096