Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:09:48

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("PROD")
0004 
0005 process.MessageLogger = cms.Service("MessageLogger",
0006     debugModules = cms.untracked.vstring('resolutionTest_step1',
0007         'resolutionTest_step2',
0008         'resolutionTest_step3'),
0009     cout = cms.untracked.PSet(
0010         threshold = cms.untracked.string('ERROR'),
0011         default = cms.untracked.PSet(
0012             limit = cms.untracked.int32(0)
0013         ),
0014         resolution = cms.untracked.PSet(
0015             limit = cms.untracked.int32(10000000)
0016         ),
0017         noLineBreaks = cms.untracked.bool(True)
0018     ),
0019     categories = cms.untracked.vstring('resolution'),
0020     destinations = cms.untracked.vstring('cout')
0021 )
0022 
0023 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0024 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0025 process.GlobalTag.globaltag = "GLOBALTAGTEMPLATE"
0026 
0027 process.load("CondCore.DBCommon.CondDBSetup_cfi")
0028 
0029 process.load("DQMServices.Core.DQM_cfg")
0030 
0031 process.load("RecoLocalMuon.Configuration.RecoLocalMuonCosmics_cff")
0032 
0033 process.source = cms.Source("PoolSource",
0034     debugFlag = cms.untracked.bool(True),
0035     debugVebosity = cms.untracked.uint32(10),
0036     fileNames = cms.untracked.vstring()
0037 )
0038 
0039 process.maxEvents = cms.untracked.PSet(
0040     input = cms.untracked.int32(-1)
0041 )
0042 
0043 process.calibDB = cms.ESSource("PoolDBESSource",
0044     process.CondDBSetup,
0045     timetype = cms.string('runnumber'),
0046     toGet = cms.VPSet(cms.PSet(
0047         record = cms.string('DTTtrigRcd'),
0048         tag = cms.string('ttrig')
0049     )),
0050     connect = cms.string('sqlite_file:/afs/cern.ch/cms/CAF/CMSALCA/ALCA_MUONCALIB/DTCALIB/RUNPERIODTEMPLATE/ttrig/ttrig_DUMPDBTEMPL_RUNNUMBERTEMPLATE.db'),
0051     authenticationMethod = cms.untracked.uint32(0)
0052 )
0053 process.es_prefer_calibDB = cms.ESPrefer('PoolDBESSource','calibDB')
0054 
0055 # if read from RAW
0056 process.load("EventFilter.DTRawToDigi.dtunpacker_cfi")
0057 
0058 process.eventInfoProvider = cms.EDFilter("EventCoordinatesSource",
0059     eventInfoFolder = cms.untracked.string('EventInfo/')
0060 )
0061 
0062 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
0063 process.DTkFactValidation = DQMEDAnalyzer('DTCalibValidation',
0064     # Write the histos on file
0065     OutputMEsInRootFile = cms.bool(True),
0066     # Lable to retrieve 2D segments from the event
0067     segment2DLabel = cms.untracked.string('dt2DSegments'),
0068     OutputFileName = cms.string('residuals.root'),
0069     # Lable to retrieve 4D segments from the event
0070     segment4DLabel = cms.untracked.string('dt4DSegments'),
0071     debug = cms.untracked.bool(False),
0072     # Lable to retrieve RecHits from the event
0073     recHits1DLabel = cms.untracked.string('dt1DRecHits')
0074 )
0075 
0076 process.FEVT = cms.OutputModule("PoolOutputModule",
0077                outputCommands = cms.untracked.vstring('drop *', 
0078                                 'keep *_MEtoEDMConverter_*_*'),
0079                fileName = cms.untracked.string('DQM.root')
0080                                )
0081 process.load("DQMServices.Components.MEtoEDMConverter_cff")
0082 process.dummyProducer = cms.EDProducer("ThingWithMergeProducer")
0083 
0084 # if read from RAW
0085 #process.firstStep = cms.Sequence(process.muonDTDigis*process.dt1DRecHits*process.dt2DSegments*process.dt4DSegments*process.DTkFactValidation)
0086 process.firstStep = cms.Sequence(process.dummyProducer + process.muonDTDigis*process.dt1DRecHits*process.dt2DSegments*process.dt4DSegments*process.DTkFactValidation*process.MEtoEDMConverter)
0087 
0088 #process.firstStep = cms.Sequence(process.dummyProducer + process.dt1DRecHits*process.dt2DSegments*process.dt4DSegments*process.DTkFactValidation*process.MEtoEDMConverter)
0089 process.p = cms.Path(process.firstStep)
0090 process.outpath = cms.EndPath(process.FEVT)
0091 process.DQM.collectorHost = ''