Exemplo n.º 1
0
)
options.maxEvents = 2
options.parseArguments()
process.maxEvents = cms.untracked.PSet(input=cms.untracked.int32(options.maxEvents))		# Set up the number of events to run over.

### Output:
if not options.outFile:
	options.outFile = "{0}_{1}_aodsim.root".format(options.subprocess, cmssw)
if options.crab:
	out_location = "{0}".format(options.outFile)
else:
	out_location = "{0}/{1}".format(options.outDir, options.outFile)
	
### Input:
if not options.inFile:
	options.inFile = "{0}.lhe".format(options.subprocess)
if options.crab:
	if "/" not in options.inFile:
		in_file = "file:{0}".format(options.inFile)
	else:
		in_file = options.inFile
else:
	in_file = "{0}/{1}".format(options.inDir, options.inFile)

#raw_output = Popen(['xrdcp root://cmseos.fnal.gov//store/user/tote/lhe/{} .'.format(in_file)], shell=True, stdout=PIPE, stderr=PIPE).communicate()
#print in_file
# /SET UP

# import of standard configurations
process.load('Configuration.StandardSequences.Services_cff')
process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
)
options.maxEvents = 2
options.parseArguments()
process.maxEvents = cms.untracked.PSet(input=cms.untracked.int32(options.maxEvents))		# Set up the number of events to run over.

### Output:
if not options.outFile:
	options.outFile = "{0}_{1}_miniaod.root".format(options.subprocess, cmssw_version)
if options.crab:
	out_location = "{0}".format(options.outFile)
else:
	out_location = "{0}/{1}".format(options.outDir, options.outFile)
	
### Input:
if not options.inFile:
	options.inFile = "{0}.lhe".format(options.subprocess)
if options.crab:
	if "/" not in options.inFile:
		in_file = "file:{0}".format(options.inFile)
	else:
		in_file = options.inFile
else:
	in_file = "{0}/{1}".format(options.inDir, options.inFile)

#raw_output = Popen(['xrdcp root://cmseos.fnal.gov//store/user/tote/lhe/{} .'.format(in_file)], shell=True, stdout=PIPE, stderr=PIPE).communicate()
#print in_file
# /SET UP

# import of standard configurations
process.load('Configuration.StandardSequences.Services_cff')
process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')