1 import FWCore.ParameterSet.Config
as cms
2 from PhysicsTools.PatAlgos.patInputFiles_cff
import filesRelValTTbarPileUpGENSIMRECO
7 dataset =
das.query(
'dataset file=%s' % process.source.fileNames[0], verbose=
True)
10 'Das returned no dataset parent of the input file: %s \n'
11 'The parenthood is needed to add RAW secondary input files' % process.source.fileNames[0]
13 raw_dataset = dataset[0].
replace(
'GEN-SIM-RECO',
'GEN-SIM-DIGI-RAW-HLTDEBUG')
14 raw_files =
das.query(
'file dataset=%s' % raw_dataset, verbose=
True)
16 raise RuntimeError(
'No files found belonging to the GEN-SIM-DIGI-RAW-HLTDEBUG sample!')
18 raw_files = [str(i)
for i
in raw_files]
19 process.source.secondaryFileNames = cms.untracked.vstring(*raw_files)
22 process = cms.Process(
'JustATest')
23 process.load(
'Configuration/StandardSequences/MagneticField_AutoFromDBCurrent_cff')
24 process.load(
"Configuration.Geometry.GeometryRecoDB_cff")
25 process.load(
"Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
27 process.GlobalTag =
GlobalTag(process.GlobalTag,
'auto:run2_mc')
29 process.load(
'FWCore.MessageService.MessageLogger_cfi')
30 process.load(
'Configuration.StandardSequences.Services_cff')
31 process.TFileService = cms.Service(
33 fileName = cms.string(
'FIXME' ),
34 closeFileFast = cms.untracked.bool(
True)
38 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(10) )
39 process.source = cms.Source (
41 fileNames = filesRelValTTbarPileUpGENSIMRECO
44 process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(
True) )
45 process.MessageLogger.cerr.FwkReport.reportEvery = 1
47 process.options = cms.untracked.PSet(
48 Rethrow = cms.untracked.vstring(
'OtherCMS',
58 'UnimplementedFeature',
64 'ScheduleExecutionFailure',
65 'EventProcessorFailure',
70 'MismatchedInputFiles',
71 'ProductDoesNotSupportViews',
72 'ProductDoesNotSupportPtr',