Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:22:17

0001 from __future__ import print_function
0002 import FWCore.ParameterSet.Config as cms
0003 
0004 # options
0005 import FWCore.ParameterSet.VarParsing as VarParsing
0006 options = VarParsing.VarParsing()
0007 options.register('globalTag',
0008                  '', #default value
0009                  VarParsing.VarParsing.multiplicity.singleton,
0010                  VarParsing.VarParsing.varType.string,
0011                  "Global Tag")
0012 options.register('sqlite',
0013                  '', #default value
0014                  VarParsing.VarParsing.multiplicity.singleton,
0015                  VarParsing.VarParsing.varType.string,
0016                  "SQLite file")
0017 options.register('run',
0018                  '1', #default value
0019                  VarParsing.VarParsing.multiplicity.singleton,
0020                  VarParsing.VarParsing.varType.int,
0021                  "run number")
0022 options.register('cfi',
0023                  '0',
0024                  VarParsing.VarParsing.multiplicity.singleton,
0025                  VarParsing.VarParsing.varType.int,
0026                  "CMSSW cfi file")
0027                  
0028 options.parseArguments()
0029 
0030 # the job
0031 process = cms.Process("L1GctConfigDump")
0032 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0033 process.MessageLogger.cout.enable = cms.untracked.bool(True)
0034 process.MessageLogger.cout.threshold = cms.untracked.string('DEBUG')
0035 process.MessageLogger.debugModules = cms.untracked.vstring('l1GctConfigDump')
0036 
0037 process.maxEvents = cms.untracked.PSet(
0038     input = cms.untracked.int32(1)
0039 )
0040 
0041 process.source = cms.Source("EmptyIOVSource",
0042     timetype = cms.string('runnumber'),
0043     firstValue = cms.uint64(options.run),
0044     lastValue = cms.uint64(options.run),
0045     interval = cms.uint64(1)
0046 )
0047 
0048 if (options.globalTag != "") :
0049     process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0050     process.GlobalTag.globaltag = options.globalTag+"::All"
0051 
0052 if (options.sqlite != "") :
0053     process.load("CondTools.L1Trigger.L1CondDBSource_cff")
0054     print("Can't read SQLite files yet")
0055 
0056 if (options.cfi > 0) :
0057     process.load("L1Trigger.Configuration.L1Trigger_FakeConditions_cff")
0058 
0059 #from CondCore.DBCommon.CondDBSetup_cfi import *
0060 
0061 
0062 process.load("L1TriggerConfig.GctConfigProducers.l1GctConfigDump_cfi")
0063 
0064 process.path = cms.Path(
0065     process.l1GctConfigDump
0066 )
0067