Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:19:38

0001 from __future__ import print_function
0002 import sys
0003 import os
0004 
0005 from FWCore.ParameterSet.VarParsing import VarParsing
0006 options = VarParsing ('analysis')
0007 options.register ('type',
0008                   '',
0009                   VarParsing.multiplicity.singleton,
0010                   VarParsing.varType.string,
0011                   "MC or Data")
0012 options.parseArguments()
0013 
0014 if str(options.type) == "Data": globalTag = 'auto:run2_data'
0015 elif str(options.type) == "MC": globalTag = 'auto:run2_mc'
0016 else:
0017     print("Please choose \"Data\" or \"MC\" ")
0018     sys.exit(1)
0019 
0020 import FWCore.ParameterSet.Config as cms
0021 
0022 from Configuration.Eras.Era_Run2_2018_cff import Run2_2018
0023 process = cms.Process("TEST",Run2_2018)
0024 
0025 process.load('Configuration.StandardSequences.GeometryDB_cff')
0026 process.load("CalibMuon.CSCCalibration.CSCL1TPLookupTableEP_cff")
0027 process.load('L1Trigger.CSCTriggerPrimitives.cscTriggerPrimitiveDigis_cfi')
0028 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0029 from Configuration.AlCa.GlobalTag import GlobalTag
0030 process.GlobalTag = GlobalTag(process.GlobalTag, globalTag, '')
0031 
0032 process.maxEvents = cms.untracked.PSet(
0033     input = cms.untracked.int32(1)
0034 )
0035 process.source = cms.Source("EmptySource")
0036 
0037 print("---------------------------------------------------------------------------")
0038 print("Release:", os.environ['CMSSW_VERSION'], ", globaltag:", process.GlobalTag.globaltag.value())
0039 print("---------------------------------------------------------------------------")
0040 
0041 process.L1CSCTPEmulatorConfigAnalyzer = cms.EDAnalyzer("L1CSCTPEmulatorConfigAnalyzer",
0042     alctParam07 = process.cscTriggerPrimitiveDigis.alctParam07,
0043     clctParam07 = process.cscTriggerPrimitiveDigis.clctParam07,
0044     tmbParam = process.cscTriggerPrimitiveDigis.tmbParam,
0045 )
0046 
0047 process.p = cms.Path(process.L1CSCTPEmulatorConfigAnalyzer)