Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("tester")
0004 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0005 process.MessageLogger.cout.enable = cms.untracked.bool(True)
0006 process.MessageLogger.cout.threshold = cms.untracked.string('DEBUG')
0007 process.MessageLogger.debugModules = cms.untracked.vstring('*')
0008 
0009 process.source = cms.Source("EmptySource", firstRun = cms.untracked.uint32(276403)) #91
0010 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1) )
0011 
0012 #process.load("L1Trigger.L1TMuon.fakeGmtParams_cff")
0013 #process.load("L1Trigger.L1TCalorimeter.caloStage2Params_2016_v2_2_cfi")
0014 
0015 # Constructing a Global Tag
0016 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0017 from Configuration.AlCa.GlobalTag import GlobalTag
0018 process.GlobalTag.toGet = cms.VPSet(
0019  cms.PSet(
0020            record  = cms.string("L1TUtmTriggerMenuRcd"),
0021            tag     = cms.string("L1TUtmTriggerMenu_Stage2v0_hlt"),
0022            connect = cms.string("frontier://FrontierProd/CMS_CONDITIONS")
0023           ),
0024  cms.PSet(
0025            record  = cms.string("L1TMuonBarrelParamsRcd"),
0026            tag     = cms.string("L1TMuonBarrelParams_Stage2v0_hlt"),
0027            connect = cms.string("frontier://FrontierProd/CMS_CONDITIONS")
0028           ),
0029  cms.PSet(
0030            record  = cms.string("L1TMuonOverlapParamsRcd"),
0031            tag     = cms.string("L1TMuonOverlapParams_Stage2v0_hlt"),
0032            connect = cms.string("frontier://FrontierProd/CMS_CONDITIONS")
0033           ),
0034  cms.PSet(
0035            record  = cms.string("L1TMuonEndCapParamsRcd"),
0036            tag     = cms.string("L1TMuonEndCapParams_Stage2v1_hlt"),
0037            connect = cms.string("frontier://FrontierProd/CMS_CONDITIONS")
0038           ),
0039  cms.PSet(
0040            record  = cms.string("L1TMuonGlobalParamsRcd"),
0041            tag     = cms.string("L1TMuonGlobalParams_Stage2v0_hlt"),
0042            connect = cms.string("frontier://FrontierProd/CMS_CONDITIONS")
0043           ),
0044  cms.PSet(
0045            record  = cms.string("L1TCaloParamsRcd"),
0046            tag     = cms.string("L1TCaloParams_Stage2v3_hlt"),
0047            connect = cms.string("frontier://FrontierProd/CMS_CONDITIONS")
0048           ),
0049  cms.PSet(
0050            record  = cms.string("L1TGlobalPrescalesVetosRcd"),
0051            tag     = cms.string("L1TGlobalPrescalesVetos_Stage2v0_hlt"),
0052            connect = cms.string("frontier://FrontierProd/CMS_CONDITIONS")
0053  )
0054 )
0055 
0056 ## One can also replace the GT block above with the one below
0057 #from CondCore.DBCommon.CondDBSetup_cfi import CondDBSetup
0058 #process.l1conddb = cms.ESSource("PoolDBESSource",
0059 #       CondDBSetup,
0060 #       connect = cms.string("frontier://FrontierPrep/CMS_CONDITIONS"),
0061 #       toGet   = cms.VPSet(
0062 #            cms.PSet(
0063 #               record  = cms.string("L1TUtmTriggerMenuRcd"),
0064 #               tag     = cms.string("L1TUtmTriggerMenu_Stage2v0_hlt"),
0065 #            ),
0066 #            cms.PSet(
0067 #               record  = cms.string("L1TMuonBarrelParamsRcd"),
0068 #               tag     = cms.string("L1TMuonBarrelParams_Stage2v0_hlt"),
0069 #            ),
0070 #            cms.PSet(
0071 #               record  = cms.string("L1TMuonOverlapParamsRcd"),
0072 #               tag     = cms.string("L1TMuonOverlapParams_Stage2v0_hlt"),
0073 #            ),
0074 #            cms.PSet(
0075 #                 record = cms.string("L1TMuonEndCapParamsRcd"),
0076 #                 tag    = cms.string("L1TMuonEndCapParams_Stage2v1_hlt")
0077 #            ),
0078 #            cms.PSet(
0079 #                 record  = cms.string("L1TMuonGlobalParamsRcd"),
0080 #                 tag     = cms.string("L1TMuonGlobalParams_Stage2v0_hlt"),
0081 #            ),
0082 #            cms.PSet(
0083 #                 record  = cms.string("L1TCaloParamsRcd"),
0084 #                 tag     = cms.string("L1TCaloParams_Stage2v0_hlt"),
0085 #            ),
0086 #            cms.PSet(
0087 #                 record  = cms.string("L1TGlobalPrescalesVetosRcd"),
0088 #                 tag     = cms.string("L1TGlobalPrescalesVetos_Stage2v0_hlt"),
0089 #            )
0090 #       )
0091 #)
0092 
0093 # Examples of various home-breed consumers
0094 process.l1cr  = cms.EDAnalyzer("L1MenuViewer")
0095 process.l1or  = cms.EDAnalyzer("L1TMuonOverlapParamsViewer", printLayerMap = cms.untracked.bool(True) )
0096 process.l1ecv = cms.EDAnalyzer("L1TMuonEndCapParamsViewer")
0097 process.l1gmr = cms.EDAnalyzer("L1TMuonGlobalParamsViewer", printLayerMap = cms.untracked.bool(True) )
0098 #process.l1cpv = cms.EDAnalyzer("L1TCaloParamsViewer", printEgIsoLUT = cms.untracked.bool(False) )
0099 process.l1gpv = cms.EDAnalyzer("L1TGlobalPrescalesVetosViewer",
0100     prescale_table_verbosity = cms.untracked.int32(1),
0101     bxmask_map_verbosity     = cms.untracked.int32(1)
0102 )
0103 
0104 process.p = cms.Path(process.l1cr + process.l1or + process.l1gmr + process.l1gpv)
0105