Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 23:30:24

0001 #!/usr/bin/env python
0002 
0003 from __future__ import print_function
0004 import FWCore.ParameterSet.Config as cms
0005 
0006 from Configuration.Eras.Era_Run2_2016_cff import Run2_2016
0007 process = cms.Process('L1GTSUMMARY',Run2_2016)
0008 
0009 process.load('Configuration.StandardSequences.Services_cff')
0010 process.load('FWCore.MessageService.MessageLogger_cfi')
0011 process.load('Configuration/StandardSequences/FrontierConditions_GlobalTag_cff')
0012 process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
0013 process.load('Configuration.StandardSequences.MagneticField_AutoFromDBCurrent_cff')
0014 process.load('Configuration.StandardSequences.RawToDigi_Data_cff')
0015 
0016 ##process.load('L1Trigger/L1TGlobal/debug_messages_cfi')
0017 ## process.MessageLogger.l1t_debug.l1t.limit = cms.untracked.int32(100000)
0018 #
0019 #process.MessageLogger.debugModules = cms.untracked.vstring('*')
0020 #process.MessageLogger.cerr.threshold = cms.untracked.string('DEBUG')
0021 
0022 process.maxEvents = cms.untracked.PSet(
0023     input = cms.untracked.int32(10)
0024     )
0025 
0026 # Input source
0027 process.source = cms.Source("PoolSource",
0028     secondaryFileNames = cms.untracked.vstring(),
0029     fileNames = cms.untracked.vstring(
0030         '/store/data/Run2016H/ZeroBias/RAW/v1/000/283/946/00000/94A3398F-239E-E611-94A7-FA163EE85157.root'
0031     ),
0032     skipEvents = cms.untracked.uint32(0)
0033     )
0034 
0035 process.output =cms.OutputModule("PoolOutputModule",
0036         outputCommands = cms.untracked.vstring('keep *'),
0037     fileName = cms.untracked.string('poolout.root')
0038     )
0039 
0040 process.options = cms.untracked.PSet()
0041 ## process.options = cms.untracked.PSet(wantSummary = cms.untracked.bool(True))
0042 
0043 # Other statements
0044 from Configuration.AlCa.GlobalTag import GlobalTag
0045 process.GlobalTag = GlobalTag(process.GlobalTag, '90X_dataRun2_v0', '')
0046 
0047 ##### needed until prescales go into GlobalTag ########################
0048 ## from CondCore.DBCommon.CondDBSetup_cfi import CondDBSetup
0049 ## process.l1conddb = cms.ESSource("PoolDBESSource",
0050 ##        CondDBSetup,
0051 ##        connect = cms.string('frontier://FrontierPrep/CMS_CONDITIONS'),
0052 ##        toGet   = cms.VPSet(
0053 ##             cms.PSet(
0054 ##                  record = cms.string('L1TGlobalPrescalesVetosRcd'),
0055 ##                  tag = cms.string("L1TGlobalPrescalesVetos_Stage2v0_hlt")
0056 ##             )
0057 ##        )
0058 ## )
0059 ## process.es_prefer_l1conddb = cms.ESPrefer( "PoolDBESSource","l1conddb")
0060 #### done ##############################################################
0061 
0062 process.load('L1Trigger.L1TGlobal.L1TGlobalSummary_cfi')
0063 process.L1TGlobalSummary.AlgInputTag = cms.InputTag("gtStage2Digis")
0064 process.L1TGlobalSummary.ExtInputTag = cms.InputTag("gtStage2Digis")
0065 process.L1TGlobalSummary.MinBx          = cms.int32(-2)
0066 process.L1TGlobalSummary.MaxBx          = cms.int32(2)
0067 #process.L1TGlobalSummary.DumpRecord   = cms.bool(False) # print raw uGT record
0068 process.L1TGlobalSummary.DumpTrigResults= cms.bool(True)
0069 ## process.l1tGlobalSummary.ReadPrescalesFromFile = cms.bool(True)
0070 ## process.l1tGlobalSummary.psFileName = cms.string("prescale_new.csv")
0071 ## process.l1tGlobalSummary.psColumn = cms.int32(0)
0072 
0073 process.raw2digi_step = cms.Path(process.RawToDigi)
0074 process.p = cms.Path(process.L1TGlobalSummary)
0075 
0076 process.schedule = cms.Schedule(process.raw2digi_step,process.p)
0077 
0078 rootout=False
0079 if rootout:
0080     process.outpath = cms.EndPath(process.output)
0081     process.schedule.append(process.outpath)
0082 
0083 dump=False
0084 if dump:
0085     outfile = open('dump_config.py','w')
0086     print(process.dumpPython(), file=outfile)
0087     outfile.close()