Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:07:11

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("DTDQMOfflineSources")
0004 
0005 # the source
0006 process.source = cms.Source("PoolSource",
0007                             fileNames = cms.untracked.vstring(
0008     '/store/data/CRAFT09/Cosmics/RECO/v1/000/109/459/F8EA0C0B-8E7D-DE11-A114-001D09F23A6B.root',
0009     '/store/data/CRAFT09/Cosmics/RECO/v1/000/109/459/F669FC3F-977D-DE11-BFB6-001D09F241B9.root',
0010     '/store/data/CRAFT09/Cosmics/RECO/v1/000/109/459/EEA05855-927D-DE11-BDBC-000423D99B3E.root',
0011     '/store/data/CRAFT09/Cosmics/RECO/v1/000/109/459/EC6E901F-A17D-DE11-8DC1-0019B9F72F97.root',
0012     '/store/data/CRAFT09/Cosmics/RECO/v1/000/109/459/EA01D71C-957D-DE11-B32D-001D09F2545B.root',
0013     '/store/data/CRAFT09/Cosmics/RECO/v1/000/109/459/D6772604-937D-DE11-B191-000423D98834.root',
0014     '/store/data/CRAFT09/Cosmics/RECO/v1/000/109/459/D4EEE43A-977D-DE11-90C3-001D09F2AD7F.root'
0015     ),
0016                             inputCommands = cms.untracked.vstring('keep *', 'drop *_MEtoEDMConverter_*_*')                
0017 )
0018 
0019 process.maxEvents = cms.untracked.PSet(
0020     input = cms.untracked.int32(100)
0021     )
0022 
0023 
0024 #process.load("FWCore.MessageLogger.MessageLogger_cfi")
0025 
0026 from RecoMuon.TrackingTools.MuonServiceProxy_cff import * 
0027 from RecoMuon.TrackingTools.MuonTrackLoader_cff import *
0028 
0029 process.load("CondCore.DBCommon.CondDBSetup_cfi")
0030 
0031 # Conditions (Global Tag is used here):
0032 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0033 #process.GlobalTag.globaltag = "CRAFT_V4P::All"
0034 process.GlobalTag.globaltag = "GR09_31X_V5P::All"
0035 #process.prefer("GlobalTag")
0036 
0037 # Magnetic fiuld: force mag field to be 3.8 tesla
0038 process.load("Configuration.StandardSequences.MagneticField_38T_cff")
0039 
0040 #Geometry
0041 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0042 
0043 # Real data raw to digi
0044 # process.load("Configuration.StandardSequences.RawToDigi_Data_cff")
0045 
0046 # reconstruction sequence for Cosmics
0047 process.load("Configuration.StandardSequences.ReconstructionCosmics_cff")
0048 #process.load("RecoLocalMuon.Configuration.RecoLocalMuonCosmics_cff")
0049 process.load("CondCore.DBCommon.CondDBSetup_cfi")
0050 
0051 # offline DQM
0052 process.load("DQM.DTMonitorModule.dtDQMOfflineSources_cff")
0053 process.load("DQMServices.Components.MEtoEDMConverter_cff")
0054 
0055 
0056 
0057 process.out = cms.OutputModule("PoolOutputModule",
0058                                outputCommands = cms.untracked.vstring('drop *', 
0059                                                                       'keep *_MEtoEDMConverter_*_*'),
0060                                fileName = cms.untracked.string('DTDQMOffline.root')
0061                                )
0062 
0063 
0064 
0065 
0066 
0067 
0068 
0069 
0070 # message logger
0071 process.MessageLogger = cms.Service("MessageLogger",
0072     cerr = cms.untracked.PSet(
0073         enable = cms.untracked.bool(False)
0074     ),
0075     cout = cms.untracked.PSet(
0076         DEBUG = cms.untracked.PSet(
0077             limit = cms.untracked.int32(0)
0078         ),
0079         DTTimeEvolutionHisto = cms.untracked.PSet(
0080             limit = cms.untracked.int32(-1)
0081         ),
0082         INFO = cms.untracked.PSet(
0083             limit = cms.untracked.int32(0)
0084         ),
0085         enable = cms.untracked.bool(True),
0086         noLineBreaks = cms.untracked.bool(False),
0087         threshold = cms.untracked.string('WARNING')
0088     ),
0089     debugModules = cms.untracked.vstring('*')
0090 )
0091 
0092 
0093 # raw to digi
0094 # process.unpackers = cms.Sequence(process.muonDTDigis)
0095 # reco
0096 # process.reco = cms.Sequence(process.dt1DRecHits + process.dt4DSegments)
0097 
0098 process.dtSources.remove(process.dtDataIntegrityUnpacker)
0099 process.DTDQMOfflineCosmics = cms.Sequence(process.dtSources)
0100 
0101 
0102 
0103 #Paths
0104 process.allPath = cms.Path(process.DTDQMOfflineCosmics *
0105                            process.MEtoEDMConverter)
0106 
0107 
0108 process.outpath = cms.EndPath(process.out)
0109 
0110 
0111 
0112 
0113 # f = file('aNewconfigurationFile.cfg', 'w')
0114 # f.write(process.dumpConfig())
0115 # f.close()
0116 
0117