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)
def add_rawRelVals(process)
def replace(string, replacements)
def query(query_str, verbose=False)