1 from __future__
import absolute_import
2 from builtins
import range
12 if not os.path.isdir(basedir):
16 if os.path.isdir(name):
20 for i
in range(number_of_files):
21 os.system(
'touch file_{i:d}.root'.
format(i=i))
29 ds1 = LocalDataset(
'/ds1',
'datasets',
'.*root')
30 self.assertEqual( len(ds1.listOfGoodFiles()), n_files)
34 ds1 = EOSDataset(
'/EOSTests/ds1',
35 '/eos/cms/store/cmst3/user/cbern',
37 self.assertEqual(len(ds1.listOfGoodFiles()), 10)
40 self.assertRaises( ValueError,
42 'not_existing_basedir',
43 'not_exiting_dataset',
49 if __name__ ==
'__main__':
52 if not os.environ.get(
'CMSSW_BASE',
False):
const uint16_t range(const Frame &aFrame)