Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #
0002 # cfg file to run L1GtTrigReport on GT output file containing 
0003 #    the readout record L1GlobalTriggerReadoutRecord
0004 #    or
0005 #    the lite record L1GlobalTriggerRecord
0006 #
0007 # V M Ghete 2009-03-04
0008 
0009 
0010 import FWCore.ParameterSet.Config as cms
0011 import sys
0012 
0013 # process
0014 process = cms.Process('L1GtTrigReport')
0015 
0016 print('\n')
0017 from L1Trigger.GlobalTriggerAnalyzer.UserOptions_cff import *
0018 if errorUserOptions == True :
0019     print('\nError returned by UserOptions_cff\n')
0020     sys.exit()
0021 
0022 
0023 # source according to data type
0024 if dataType == 'StreamFile' :
0025     process.source = cms.Source("NewEventStreamFileReader", fileNames=readFiles)
0026 else :        
0027     process.source = cms.Source ('PoolSource', fileNames=readFiles, secondaryFileNames=secFiles)
0028 
0029 
0030 # number of events to be processed and source file
0031 process.maxEvents = cms.untracked.PSet(
0032     input=cms.untracked.int32(maxNumberEvents)
0033 )
0034 
0035 # load and configure modules via Global Tag
0036 # https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideFrontierConditions
0037 
0038 process.load('Configuration.StandardSequences.GeometryDB_cff')
0039 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0040 
0041 process.GlobalTag.globaltag = useGlobalTag
0042 
0043 #
0044 # l1GtTrigReport module
0045 #
0046 
0047 process.load("L1Trigger.GlobalTriggerAnalyzer.l1GtTrigReport_cfi")
0048  
0049 # boolean flag to select the input record
0050 # if true, it will use L1GlobalTriggerRecord 
0051 #process.l1GtTrigReport.UseL1GlobalTriggerRecord = True
0052 
0053 # input tag for GT record: 
0054 #   GT emulator:    gtDigis (DAQ record)
0055 #   GT unpacker:    gtDigis (DAQ record)
0056 #   GT lite record: l1GtRecord 
0057 process.l1GtTrigReport.L1GtRecordInputTag = "simGtDigis"
0058 
0059 #process.l1GtTrigReport.PrintVerbosity = 2
0060 #process.l1GtTrigReport.PrintOutput = 1
0061 
0062 # for RAW data, run first the RAWTODIGI 
0063 if (dataType == 'RAW') and not (useRelValSample) :
0064     process.load('Configuration/StandardSequences/RawToDigi_Data_cff')
0065     process.l1GtTrigReport.L1GtRecordInputTag = "gtDigis"
0066     process.p = cms.Path(process.RawToDigi+process.l1GtTrigReport)
0067 
0068 elif (dataType == 'RAW') and (useRelValSample) :
0069     process.load('Configuration/StandardSequences/RawToDigi_cff')
0070     process.l1GtTrigReport.L1GtRecordInputTag = "gtDigis"
0071     process.p = cms.Path(process.RawToDigi+process.l1GtTrigReport)
0072     
0073 else :        
0074     # path to be run for RECO
0075     process.p = cms.Path(process.l1GtTrigReport)
0076 
0077 # Message Logger
0078 process.load('FWCore.MessageService.MessageLogger_cfi')
0079 process.MessageLogger.debugModules = ['l1GtTrigReport']
0080 
0081 #process.MessageLogger.cerr.threshold = 'DEBUG'
0082 process.MessageLogger.cerr.threshold = 'INFO'
0083 #process.MessageLogger.cerr.threshold = 'WARNING'
0084 #process.MessageLogger.cerr.threshold = 'ERROR'
0085 
0086 process.MessageLogger.cerr.DEBUG = cms.untracked.PSet( limit = cms.untracked.int32(0) )
0087 process.MessageLogger.cerr.INFO = cms.untracked.PSet( limit = cms.untracked.int32(0) )
0088 process.MessageLogger.cerr.WARNING = cms.untracked.PSet( limit = cms.untracked.int32(0) )
0089 process.MessageLogger.cerr.ERROR = cms.untracked.PSet( limit = cms.untracked.int32(0) )
0090 
0091 process.MessageLogger.cerr.L1GtTrigReport = cms.untracked.PSet( limit = cms.untracked.int32(-1) )
0092 
0093 
0094 # summary
0095 process.options = cms.untracked.PSet(
0096     wantSummary=cms.untracked.bool(True)
0097 )
0098