Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:18:53

0001 from __future__ import print_function
0002 import FWCore.ParameterSet.Config as cms
0003 import os,sys
0004 
0005 process = cms.Process("EDMtoMEConvert")
0006 
0007 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0008 process.MessageLogger.cerr.FwkReport.reportEvery = 2000
0009 
0010 process.load("Configuration.StandardSequences.EDMtoMEAtJobEnd_cff")
0011 process.load("DQMServices.Components.DQMEnvironment_cfi")
0012 process.load("HLTriggerOffline.Exotica.HLTExoticaPostVal_cff")
0013 #process.load("HLTriggerOffline.Exotica.HLTExoticaQualityTester_cfi")
0014 
0015 # Decide input data
0016 myinput   = ""
0017 
0018 for i in range(0,len(sys.argv)):
0019     if str(sys.argv[i])=="_input" and len(sys.argv)>i+1:
0020         myinput = str(sys.argv[i+1])
0021 
0022 myfileNames = cms.untracked.vstring('file:hltExoticaValidator'+myinput+'.root')
0023 
0024 print("Using inputs : ")
0025 print(myfileNames)
0026 
0027 process.maxEvents = cms.untracked.PSet(
0028     input = cms.untracked.int32(-1)
0029 )
0030 
0031 process.source = cms.Source("PoolSource",
0032     fileNames = myfileNames
0033 )
0034 
0035 process.postprocessor_path = cms.Path(
0036         process.HLTExoticaPostVal
0037                 #* process.hltExoticaQualityTester
0038 )
0039 
0040 process.edmtome_path = cms.Path(process.EDMtoME)
0041 process.dqmsave_path = cms.Path(process.DQMSaver)
0042 
0043 process.schedule = cms.Schedule(process.edmtome_path,
0044                                 process.postprocessor_path,
0045                                 process.dqmsave_path)
0046