Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-05-01 22:51:59

0001 from __future__ import print_function
0002 #
0003 # cfg file to run the L1GtTriggerMenuLite producer  
0004 # with the options set in UserOptions_cff.py
0005 #
0006 #
0007 
0008 import FWCore.ParameterSet.Config as cms
0009 import sys
0010 
0011 process = cms.Process("L1T")
0012 
0013 print('\n')
0014 from L1Trigger.GlobalTriggerAnalyzer.UserOptions_cff import *
0015 if errorUserOptions == True :
0016     print('\nError returned by UserOptions_cff\n')
0017     sys.exit()
0018 
0019 
0020 # source according to data type
0021 if dataType == 'StreamFile' :
0022     process.source = cms.Source("NewEventStreamFileReader", fileNames=readFiles)
0023 else :        
0024     process.source = cms.Source ('PoolSource', fileNames=readFiles, secondaryFileNames=secFiles)
0025 
0026 
0027 # number of events to be processed and source file
0028 process.maxEvents = cms.untracked.PSet(
0029     input=cms.untracked.int32(maxNumberEvents)
0030 )
0031 
0032 #
0033 # load and configure modules via Global Tag
0034 # https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideFrontierConditions
0035 
0036 process.load("Configuration.StandardSequences.GeometryDB_cff")
0037 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0038 
0039 process.GlobalTag.globaltag = useGlobalTag
0040 
0041 
0042 # processes to be run
0043 
0044 process.load("EventFilter.L1GlobalTriggerRawToDigi.l1GtTriggerMenuLite_cfi")
0045 
0046 # for RAW data, run first the RAWTODIGI 
0047 if dataType == 'RAW' :
0048     process.load('Configuration/StandardSequences/RawToDigi_Data_cff')
0049     process.p = cms.Path(process.RawToDigi+process.l1GtTriggerMenuLite)
0050     
0051 else :        
0052     # path to be run for RECO
0053     process.p = cms.Path(process.l1GtTriggerMenuLite)
0054 
0055 
0056 # Message Logger
0057 process.load('FWCore.MessageService.MessageLogger_cfi')
0058 process.MessageLogger.debugModules = ['l1GtTriggerMenuLite']
0059 
0060 process.MessageLogger.cerr.default.limit = 0
0061 process.MessageLogger.cerr.FwkReport.limit = 0
0062 process.MessageLogger.cerr.FwkSummary.limit = 0
0063 
0064 process.MessageLogger.files.debugs = cms.untracked.PSet( 
0065         threshold = cms.untracked.string('DEBUG'),
0066         DEBUG = cms.untracked.PSet( limit = cms.untracked.int32(0) ),
0067         INFO = cms.untracked.PSet( limit = cms.untracked.int32(0) ),
0068         WARNING = cms.untracked.PSet( limit = cms.untracked.int32(0) ),
0069         ERROR = cms.untracked.PSet( limit = cms.untracked.int32(0) ),
0070         L1GtTriggerMenuLiteProducer = cms.untracked.PSet( limit = cms.untracked.int32(-1) )
0071         )
0072 
0073 process.MessageLogger.files.warnings = cms.untracked.PSet( 
0074         threshold = cms.untracked.string('WARNING'),
0075         WARNING = cms.untracked.PSet( limit = cms.untracked.int32(0) ),
0076         ERROR = cms.untracked.PSet( limit = cms.untracked.int32(0) ),
0077         L1GtTriggerMenuLiteProducer = cms.untracked.PSet( limit = cms.untracked.int32(-1) )
0078         )
0079 
0080 process.MessageLogger.files.errors = cms.untracked.PSet( 
0081         threshold = cms.untracked.string('ERROR'),
0082         ERROR = cms.untracked.PSet( limit = cms.untracked.int32(-1) ),
0083         L1GtTriggerMenuLiteProducer = cms.untracked.PSet( limit = cms.untracked.int32(-1) )
0084         )
0085 
0086 # output 
0087 process.outputL1GtTriggerMenu = cms.OutputModule("PoolOutputModule",
0088     fileName = cms.untracked.string('L1GtTriggerMenuLite_output.root'),
0089     # keep only unpacked data in the ROOT file
0090     outputCommands = cms.untracked.vstring('drop *', 
0091         'keep *_l1GtTriggerMenuLite_*_*')
0092 )
0093 
0094 process.outpath = cms.EndPath(process.outputL1GtTriggerMenu)