Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:11:04

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 
0004 
0005 process = cms.Process("EwkDQM")
0006 process.load("DQM.Physics.ewkElecDQM_cfi")
0007 
0008 process.load("DQMServices.Core.DQM_cfg")
0009 process.load("DQMServices.Components.DQMEnvironment_cfi")
0010 process.DQM.collectorHost = ''
0011 
0012 #keep the logging output to a nice level
0013 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0014 process.MessageLogger.cerr.FwkReport.reportEvery = 1
0015 
0016 # load the full reconstraction configuration, to make sure we're getting all needed dependencies
0017 process.load("Configuration.StandardSequences.MagneticField_cff")
0018 #process.load("Configuration.StandardSequences.GeometryRecoDB_cff") #old one, to use for old releases
0019 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0020 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0021 process.load("Configuration.StandardSequences.Reconstruction_cff")
0022 process.GlobalTag.globaltag = 'FT_53_V21_AN6::All'
0023 #process.GlobalTag.globaltag = 'START70_V2::All'
0024 
0025 process.maxEvents = cms.untracked.PSet(
0026     input = cms.untracked.int32(-1)
0027 #    input = cms.untracked.int32(5000)
0028 )
0029 
0030 process.source = cms.Source("PoolSource",
0031                             fileNames = cms.untracked.vstring(
0032 ##        '/store/relval/CMSSW_3_1_1/RelValWM/GEN-SIM-RECO/STARTUP31X_V1-v2/0002/8E5D0675-E36B-DE11-8F71-001D09F242EF.root'
0033 
0034 # MinBias real data!
0035 #    '/store/data/BeamCommissioning09/MinimumBias/RECO/v2/000/124/196/3C9489A4-B5E8-DE11-A475-001D09F2A465.root',
0036     #'/store/data/BeamCommissioning09/MinimumBias/RECO/v2/000/124/188/34641279-B5E8-DE11-A475-001D09F2910A.root',
0037 
0038 # Real data
0039         #'/store/data/Run2012B/SingleElectron/AOD/22Jan2013-v1/30000/FE93DA20-837E-E211-8A41-002481E73676.root'
0040        # 'file:12251709-D77E-E211-96C8-003048F118FE.root' # data
0041        #   , 'file:5072427B-407E-E211-88EF-003048F237FE.root' #data
0042         #  'file:DEC5AD62-280C-E311-89A7-002618FDA216.root'
0043     # 'file:/tmp/andriusj/ZeePU.root'
0044      'file:/tmp/andriusj/Data2012D_DoubleEl.root'
0045      )
0046 )
0047 
0048 runOnData = False
0049 
0050 #process.dqmEnv.subSystemFolder = 'SMP'
0051 process.dqmSaver.producer = 'DQM'
0052 process.dqmSaver.workflow = cms.untracked.string('/Physics/EWK/Elec')
0053 process.dqmSaver.convention = 'Offline'
0054 process.dqmSaver.saveByRun = cms.untracked.int32(-1)
0055 process.dqmSaver.saveAtJobEnd =cms.untracked.bool(True) 
0056 process.dqmSaver.forceRunNumber = cms.untracked.int32(1)
0057 
0058 if runOnData:
0059      process.dqmSaver.saveByRun = cms.untracked.int32(1)
0060      process.dqmSaver.saveAtJobEnd =cms.untracked.bool(False) 
0061      process.dqmSaver.forceRunNumber = cms.untracked.int32(-1)
0062 
0063 
0064 process.MessageLogger = cms.Service("MessageLogger",
0065     destinations = cms.untracked.vstring('detailedInfo'),
0066     detailedInfo = cms.untracked.PSet(
0067             default = cms.untracked.PSet( limit = cms.untracked.int32(100) ),
0068             threshold = cms.untracked.string('DEBUG')
0069             #threshold = cms.untracked.string('INFO')
0070             #threshold = cms.untracked.string('ERROR')
0071     )
0072 )
0073 #process.ana = cms.EDAnalyzer("EventContentAnalyzer")
0074 process.p = cms.Path(process.ewkElecDQM+process.dqmSaver)
0075