Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:52:18

0001 import FWCore.ParameterSet.Config as cms
0002 process = cms.Process('L1')
0003 
0004 # Define CondDB tags
0005 from CondTools.L1Trigger.L1CondEnum_cfi import L1CondEnum
0006 from CondTools.L1Trigger.L1O2OTags_cfi import initL1O2OTags
0007 initL1O2OTags()
0008 
0009 from CondTools.L1Trigger.L1CondDBSource_cff import initCondDBSource
0010 initCondDBSource(
0011     process,
0012     inputDBConnect = 'sqlite_file:l1config.db',
0013     tagBaseVec = initL1O2OTags.tagBaseVec,
0014     includeAllTags = True
0015 )
0016 process.maxEvents = cms.untracked.PSet(
0017     input=cms.untracked.int32(50)
0018 )
0019 readFiles = cms.untracked.vstring('file:Raw_160329.root')
0020 secFiles = cms.untracked.vstring() 
0021 process.source = cms.Source(
0022     'PoolSource',
0023     fileNames=readFiles,
0024     secondaryFileNames=secFiles
0025 )
0026 
0027 import EventFilter.EcalRawToDigi.EcalUnpackerData_cfi
0028 process.ecalDigis = EventFilter.EcalRawToDigi.EcalUnpackerData_cfi.ecalEBunpacker.clone()
0029 process.ecalDigis.DoRegional = False
0030 process.ecalDigis.InputLabel = 'source'
0031 
0032 import EventFilter.HcalRawToDigi.HcalRawToDigi_cfi
0033 process.hcalDigis = EventFilter.HcalRawToDigi.HcalRawToDigi_cfi.hcalDigis.clone()
0034 process.hcalDigis.InputLabel = 'source'
0035 
0036 import EventFilter.CSCRawToDigi.cscUnpacker_cfi
0037 process.muonCSCDigis = EventFilter.CSCRawToDigi.cscUnpacker_cfi.muonCSCDigis.clone()
0038 process.muonCSCDigis.InputObjects = 'source'
0039 
0040 import EventFilter.DTRawToDigi.dtunpacker_cfi
0041 process.muonDTDigis = EventFilter.DTRawToDigi.dtunpacker_cfi.muonDTDigis.clone()
0042 process.muonDTDigis.inputLabel = 'source'
0043 
0044 import EventFilter.RPCRawToDigi.rpcUnpacker_cfi
0045 process.muonRPCDigis = EventFilter.RPCRawToDigi.rpcUnpacker_cfi.rpcunpacker.clone()
0046 process.muonRPCDigis.InputLabel = 'source'
0047 
0048 # run trigger primitive generation on unpacked digis, then central L1
0049 process.load('L1Trigger.Configuration.CaloTriggerPrimitives_cff')
0050 process.load('L1Trigger.Configuration.SimL1Emulator_cff')
0051 
0052 # set the new input tags after RawToDigi for the TPG producers
0053 process.simEcalTriggerPrimitiveDigis.Label = 'ecalDigis'
0054 process.simHcalTriggerPrimitiveDigis.inputLabel = cms.VInputTag(
0055     cms.InputTag('hcalDigis'), 
0056     cms.InputTag('hcalDigis')
0057 )
0058 process.simDtTriggerPrimitiveDigis.digiTag = 'muonDTDigis'
0059 process.simCscTriggerPrimitiveDigis.CSCComparatorDigiProducer = cms.InputTag(
0060     'muonCSCDigis',
0061     'MuonCSCComparatorDigi'
0062 )
0063 process.simCscTriggerPrimitiveDigis.CSCWireDigiProducer = cms.InputTag(
0064     'muonCSCDigis',
0065     'MuonCSCWireDigi'
0066 )
0067 process.simRpcTriggerDigis.label = 'muonRPCDigis'
0068 process.simRpcTechTrigDigis.RPCDigiLabel = 'muonRPCDigis'
0069 
0070 # import of standard configurations
0071 process.load('Configuration/StandardSequences/Services_cff')
0072 process.load('Configuration/StandardSequences/GeometryIdeal_cff')
0073 process.load('Configuration/StandardSequences/MagneticField_38T_cff')
0074 process.load('Configuration/StandardSequences/FrontierConditions_GlobalTag_cff')
0075 process.load('Configuration/EventContent/EventContent_cff')
0076 
0077 # load and configure modules via Global Tag
0078 # https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideFrontierConditions
0079 #process.GlobalTag.globaltag = 'GR10_H_V4::All'
0080 #process.GlobalTag.globaltag = 'GR10_H_V8::All'
0081 process.GlobalTag.globaltag = 'GR_H_V20::All'
0082 
0083 process.GlobalTag.toGet = cms.VPSet()
0084 process.GlobalTag.toGet.append(
0085     cms.PSet(
0086         record = cms.string('DTCCBConfigRcd'),
0087         tag = cms.string('DT_config_V04'),
0088     ) )
0089 process.GlobalTag.toGet.append(
0090     cms.PSet(
0091         record = cms.string('DTKeyedConfigListRcd'),
0092         tag = cms.string('DT_keyedConfListIOV_V01'),
0093     ) )
0094 process.GlobalTag.toGet.append(
0095     cms.PSet(
0096         record = cms.string('DTKeyedConfigContainerRcd'),
0097         tag = cms.string('DT_keyedConfBricks_V01'),
0098     ) )
0099 
0100 process.p = cms.Path(
0101     process.ecalDigis * process.hcalDigis 
0102     * process.CaloTriggerPrimitives 
0103     * process.muonDTDigis 
0104     * process.muonCSCDigis 
0105     * process.muonRPCDigis 
0106     * process.SimL1Emulator
0107 )
0108 
0109 # Message Logger
0110 process.load('FWCore.MessageService.MessageLogger_cfi')
0111 process.MessageLogger.debugModules = ['*']
0112 
0113 process.MessageLogger.cerr.enable = False
0114 process.MessageLogger.cout = cms.untracked.PSet(
0115     enable = cms.untracked.bool(True),
0116     threshold = cms.untracked.string('INFO'),
0117     DEBUG=cms.untracked.PSet(
0118         limit=cms.untracked.int32(-1)
0119     ),
0120     INFO=cms.untracked.PSet(
0121         limit=cms.untracked.int32(-1)
0122     ),
0123     WARNING=cms.untracked.PSet(
0124         limit=cms.untracked.int32(-1)
0125     ),
0126     ERROR=cms.untracked.PSet(
0127         limit=cms.untracked.int32(-1)
0128     )
0129 )
0130 
0131 # Output definition
0132 #process.output = cms.OutputModule("PoolOutputModule",
0133 #    outputCommands = process.FEVTDEBUGHLTEventContent.outputCommands,
0134 #    fileName = cms.untracked.string('L1EmulatorFromRaw.root'),
0135 #    dataset = cms.untracked.PSet(
0136 #        dataTier = cms.untracked.string("\'GEN-SIM-DIGI-RAW-HLTDEBUG\'"),
0137 #        filterName = cms.untracked.string('')
0138 #    )
0139 #)
0140 #process.out_step = cms.EndPath(process.output)