process.MessageLogger.fwkJobReports = [] process.MessageLogger.categories=cms.untracked.vstring('FwkJob' ,'FwkReport' ,'FwkSummary' ) process.MessageLogger.cerr.INFO = cms.untracked.PSet(limit = cms.untracked.int32(0)) process.MessageLogger.cerr.FwkReport.reportEvery = cms.untracked.int32(100) process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) ) ### Set the global tag from the dataset name if runOnFastSim is False: from TopBrussels.TopTreeProducer.Tools.getGlobalTag import getGlobalTagByDataset process.GlobalTag.globaltag = getGlobalTagByDataset( runOnMC, process.source.fileNames[0]) else: process.GlobalTag.globaltag = cms.string('START53_V27::All') ##-------------------- Import the Jet RECO modules ----------------------- ## this makes cmsRun crash ## process.load('RecoJets.Configuration.RecoPFJets_cff') ##-------------------- Turn-on the FastJet density calculation ----------------------- process.kt6PFJets.doRhoFastjet = True process.primaryVertexFilter = cms.EDFilter("GoodVertexFilter", vertexCollection = cms.InputTag('offlinePrimaryVertices'), minimumNDOF = cms.uint32(4) , maxAbsZ = cms.double(24), maxd0 = cms.double(2) )
process.MessageLogger.fwkJobReports = [] process.MessageLogger.categories=cms.untracked.vstring('FwkJob' ,'FwkReport' ,'FwkSummary' ) process.MessageLogger.cerr.INFO = cms.untracked.PSet(limit = cms.untracked.int32(0)) process.MessageLogger.cerr.FwkReport.reportEvery = cms.untracked.int32(100) process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) ) ### Set the global tag from the dataset name if runOnFastSim is False: from TopBrussels.TopTreeProducer.Tools.getGlobalTag import getGlobalTagByDataset process.GlobalTag.globaltag = getGlobalTagByDataset( runOnMC, process.source.fileNames[0]) else: process.GlobalTag.globaltag = cms.string('START53_V27::All') ##-------------------- Import the Jet RECO modules ----------------------- ## this makes cmsRun crash ## process.load('RecoJets.Configuration.RecoPFJets_cff') ##-------------------- Turn-on the FastJet density calculation ----------------------- process.kt6PFJets.doRhoFastjet = True process.primaryVertexFilter = cms.EDFilter("GoodVertexFilter", vertexCollection = cms.InputTag('offlinePrimaryVertices'), minimumNDOF = cms.uint32(4) , maxAbsZ = cms.double(24), maxd0 = cms.double(2)
if options.cmssw_ver_sample == None: optParser.error("Please specify a CMSSW version that was used to produce the sample.\n") if options.dataset == None: optParser.error("Please specify a dataset name.\n") ### Set the global tag from the dataset name if options.GlobalTag == "EMPTY": from TopBrussels.TopTreeProducer.Tools.getGlobalTag import getGlobalTagByDataset #runOnMC = False #if options.runOnMC == True: # runOnMC = True #options.GlobalTag = getGlobalTagByDataset( runOnMC, options.dataset) options.GlobalTag = getGlobalTagByDataset( options.runOnMC, options.dataset) print options.stdout ###################### ## SOME DEFINITIONS ## ###################### timestamp = strftime("%d%m%Y_%H%M%S") logFileName = "logs/log-"+options.dataset.split("/")[1]+"-"+options.dataset.split("/")[2]+timestamp+".txt" if not options.logFile == "EMPTY": print logFileName logFileName = options.logFile
optParser.error( "Please specify a CMSSW version that was used to produce the sample.\n" ) if options.dataset == None: optParser.error("Please specify a dataset name.\n") ### Set the global tag from the dataset name if options.GlobalTag == "EMPTY": from TopBrussels.TopTreeProducer.Tools.getGlobalTag import getGlobalTagByDataset #runOnMC = False #if options.runOnMC == True: # runOnMC = True #options.GlobalTag = getGlobalTagByDataset( runOnMC, options.dataset) options.GlobalTag = getGlobalTagByDataset(options.runOnMC, options.dataset) print options.stdout ###################### ## SOME DEFINITIONS ## ###################### timestamp = strftime("%d%m%Y_%H%M%S") logFileName = "logs/log-" + options.dataset.split( "/")[1] + "-" + options.dataset.split("/")[2] + timestamp + ".txt" if not options.logFile == "EMPTY": print logFileName logFileName = options.logFile