Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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/RAW/v1/000/109/459/F2C412D1-4D7D-DE11-8C60-000423D99E46.root',
0009         '/store/data/CRAFT09/Cosmics/RAW/v1/000/109/459/EAC40AC3-527D-DE11-A2BF-000423D952C0.root',
0010         '/store/data/CRAFT09/Cosmics/RAW/v1/000/109/459/EA44F625-4D7D-DE11-A259-000423D9A212.root',
0011         '/store/data/CRAFT09/Cosmics/RAW/v1/000/109/459/F6F17AD3-4D7D-DE11-8E8C-000423D99F3E.root',
0012         '/store/data/CRAFT09/Cosmics/RAW/v1/000/109/459/E6ACE824-4D7D-DE11-93CF-000423D996C8.root',
0013         '/store/data/CRAFT09/Cosmics/RAW/v1/000/109/459/DA838A3D-4F7D-DE11-AA12-001D09F248F8.root',
0014       '/store/data/CRAFT09/Cosmics/RAW/v1/000/109/459/FA1FEED3-4D7D-DE11-A695-000423D98B6C.root'
0015     )
0016 )
0017 
0018 process.maxEvents = cms.untracked.PSet(
0019     input = cms.untracked.int32(10)
0020     )
0021 
0022 
0023 #process.load("FWCore.MessageLogger.MessageLogger_cfi")
0024 
0025 process.load("CondCore.DBCommon.CondDBSetup_cfi")
0026 
0027 
0028 # Conditions (Global Tag is used here):
0029 
0030 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cfi")
0031 process.GlobalTag.globaltag = "GR09_31X_V5P::All"
0032 #process.prefer("GlobalTag")
0033 
0034 # Magnetic fiuld: force mag field to be 3.8 tesla
0035 process.load("Configuration.StandardSequences.MagneticField_38T_cff")
0036 
0037 #Geometry
0038 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0039 
0040 
0041 # Real data raw to digi
0042 process.load("Configuration.StandardSequences.RawToDigi_Data_cff")
0043 
0044 # reconstruction sequence for Cosmics
0045 process.load("Configuration.StandardSequences.ReconstructionCosmics_cff")
0046 #process.load("RecoLocalMuon.Configuration.RecoLocalMuonCosmics_cff")
0047 #process.load("RecoMuon.Configuration.RecoMuonCosmics_cff")
0048 
0049 
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                                     debugModules = cms.untracked.vstring('*'),
0073                                     destinations = cms.untracked.vstring('cout'),
0074                                     categories = cms.untracked.vstring('DTChamberEfficiency'), 
0075                                     cout = cms.untracked.PSet(threshold = cms.untracked.string('WARNING'),
0076                                                               noLineBreaks = cms.untracked.bool(False),
0077                                                               DEBUG = cms.untracked.PSet(
0078                                                                       limit = cms.untracked.int32(0)),
0079                                                               INFO = cms.untracked.PSet(
0080                                                                       limit = cms.untracked.int32(0)),
0081                                                               DTChamberEfficiency = cms.untracked.PSet(
0082                                                                                  limit = cms.untracked.int32(-1))
0083                                                               )
0084                                     )
0085 
0086 
0087 
0088 
0089 # raw to digi
0090 process.unpackers = cms.Sequence(process.gtDigis + process.dttfDigis + process.muonDTDigis + process.muonCSCDigis + process.muonRPCDigis)
0091 # reco
0092 #process.reco = cms.Sequence(process.dt1DRecHits + process.dt4DSegments + process.muonRecoGR)
0093 process.reco = cms.Sequence(process.offlineBeamSpot + process.muonsLocalRecoCosmics + process.STAmuontrackingforcosmics)
0094 
0095 process.DTDQMOfflineCosmics = cms.Sequence(process.dtSources)
0096 
0097 
0098 #Paths
0099 process.allPath = cms.Path(process.unpackers *
0100                            process.reco *
0101                            process.DTDQMOfflineCosmics *
0102                            process.MEtoEDMConverter)
0103 
0104 
0105 process.outpath = cms.EndPath(process.out)
0106 
0107 
0108 
0109 
0110 # f = file('aNewconfigurationFile.cfg', 'w')
0111 # f.write(process.dumpConfig())
0112 # f.close()
0113 
0114