Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:46:19

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 # -- Load default module/services configurations -- //
0005 # Message logger service
0006 process.load("FWCore.MessageService.MessageLogger_cfi")
0007 process.MessageLogger.cout = cms.untracked.PSet(
0008     threshold = cms.untracked.string('INFO'),
0009     default = cms.untracked.PSet(
0010         limit = cms.untracked.int32(10000000)
0011     )
0012 )
0013 #replace MessageLogger.debugModules = { "*" }
0014 
0015 # service = Tracer {}
0016 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0017 process.GlobalTag.globaltag = 'MC_61_V11::All' # take your favourite
0018 
0019 # maybe this for automatic GT ?
0020 #from Configuration.AlCa.GlobalTag import GlobalTag
0021 #process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:startup', '')
0022 
0023 # Ideal geometry producer
0024 process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
0025 
0026 process.load("Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi")
0027 process.load("Geometry.TrackerNumberingBuilder.trackerTopology_cfi")
0028 process.load("Geometry.TrackerGeometryBuilder.trackerParameters_cfi")
0029 
0030 # Misalignment example scenario producer
0031 process.load("Alignment.TrackerAlignment.MisalignedTracker_cfi")
0032 process.MisalignedTracker.saveToDbase = True # to store to DB
0033 process.MisalignedTracker.saveFakeScenario = True
0034 import Alignment.TrackerAlignment.Scenarios_cff as _Scenarios
0035 #process.MisalignedTracker.scenario = _Scenarios.Tracker10pbScenario
0036 #process.MisalignedTracker.scenario = _Scenarios.SurveyLASOnlyScenario
0037 #process.MisalignedTracker.scenario = _Scenarios.SurveyLASCosmicsScenario
0038 #process.MisalignedTracker.scenario = _Scenarios.TrackerCRAFTScenario
0039 
0040 # the module
0041 process.prod = cms.EDAnalyzer("TestAnalyzer",
0042     fileName = cms.untracked.string('misaligned.root')
0043 )
0044 
0045 # data loop
0046 process.source = cms.Source("EmptySource")
0047 process.maxEvents = cms.untracked.PSet(
0048     input = cms.untracked.int32(1)
0049 )
0050 
0051 # Database output service
0052 import CondCore.DBCommon.CondDBSetup_cfi
0053 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0054     CondCore.DBCommon.CondDBSetup_cfi.CondDBSetup,
0055     # Writing to oracle needs the following shell variable setting (in zsh):
0056     # export CORAL_AUTH_PATH=/afs/cern.ch/cms/DB/conddb
0057     # connect = cms.string('oracle://cms_orcoff_prep/CMS_COND_ALIGNMENT'),  # preparation/develop. DB
0058     timetype = cms.untracked.string('runnumber'),
0059     connect = cms.string('sqlite_file:Alignments.db'),
0060     toPut = cms.VPSet(cms.PSet(
0061         record = cms.string('TrackerAlignmentRcd'),
0062         tag = cms.string('TrackerAlignment_XXX_mc')
0063     ), 
0064         cms.PSet(
0065             record = cms.string('TrackerAlignmentErrorExtendedRcd'),
0066             tag = cms.string('TrackerAlignmentErrorsExtended_XXX_mc')
0067         ))
0068 )
0069 #process.PoolDBOutputService.DBParameters.messageLevel = 2
0070 
0071 process.p1 = cms.Path(process.prod)
0072 
0073 
0074