Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-11-27 03:17:45

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