1 import FWCore.ParameterSet.Config
as cms
2 from PhysicsTools.PatAlgos.patInputFiles_cff
import filesRelValTTbarPileUpGENSIMRECO
3 import Utilities.General.cmssw_das_client
as cmssw_das_client
23 query=
'dataset file=%s' % process.source.fileNames[0]
27 'Das returned no dataset parent of the input file: %s \n'
28 'The parenthood is needed to add RAW secondary input files' % process.source.fileNames[0]
30 raw_dataset = dataset[
'data'][0][
'dataset'][0][
'name'].
replace(
'GEN-SIM-RECO',
'GEN-SIM-DIGI-RAW-HLTDEBUG')
34 raise RuntimeError(
'No files found belonging to the GEN-SIM-DIGI-RAW-HLTDEBUG sample!')
37 raw_files = [
str(i)
for i
in raw_files]
38 process.source.secondaryFileNames = cms.untracked.vstring(*raw_files)
41 process = cms.Process(
'JustATest')
42 process.load(
'Configuration.StandardSequences.MagneticField_cff')
43 process.load(
"Configuration.Geometry.GeometryRecoDB_cff")
44 process.load(
"Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
45 from Configuration.AlCa.GlobalTag
import GlobalTag
46 process.GlobalTag =
GlobalTag(process.GlobalTag,
'auto:phase1_2017_realistic')
48 process.load(
'FWCore.MessageService.MessageLogger_cfi')
49 process.load(
'Configuration.StandardSequences.Services_cff')
50 process.TFileService = cms.Service(
52 fileName = cms.string(
'FIXME' ),
53 closeFileFast = cms.untracked.bool(
True)
57 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(10) )
58 process.source = cms.Source (
60 fileNames = filesRelValTTbarPileUpGENSIMRECO
63 process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(
True) )
64 process.MessageLogger.cerr.FwkReport.reportEvery = 1
66 process.options = cms.untracked.PSet(
67 Rethrow = cms.untracked.vstring(
'OtherCMS',
77 'UnimplementedFeature',
83 'ScheduleExecutionFailure',
84 'EventProcessorFailure',
89 'MismatchedInputFiles',
90 'ProductDoesNotSupportViews',
91 'ProductDoesNotSupportPtr',