if options.inDir:
	in_files = ["file:{0}/{1}".format(options.inDir, f) for f in options.inFile]
else:
	in_files = ["file:{0}".format(f) for f in options.inFile]
#### Auto:
if options.dataset:
	in_files = []
	ds = samples.get_dataset(name=options.dataset, flavor="fatjets", generation=options.generation)
	if ds:
		if ds.set_info():
			print "Getting info about the {0} dataset ...".format(ds.name)
			if options.sigma < 0:
				options.sigma = ds.sigma
			if options.nevents < 0:
				print "\tThere are {0} events in the {1} dataset.".format(options.nevents, options.dataset)
				options.nevents = ds.nevents_fatjet
			print "Sigma = {0}".format(options.sigma)
			print "NEvents = {0}".format(options.nevents)
			in_files.extend(["file:{0}".format(f) for f in ds.files_fatjet])
			options.outFile = "{0}_ntuple.root".format(options.dataset)
		else:
			print "ERROR: I can't find the info about the dataset named {0}".format(options.dataset)
			options.nevents = 0
	else:
		print "I can't understand the dataset named {0}".format(options.dataset)
#print in_files
# /SET UP

# CONFIGURATION:
## Process options:
process.load("FWCore.MessageLogger.MessageLogger_cfi")