Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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