1 |
bbetchar |
1.1 |
from FWCore.ParameterSet.VarParsing import VarParsing as VP
|
2 |
|
|
from PhysicsTools.PatAlgos.tools.cmsswVersionTools import pickRelValInputFiles
|
3 |
|
|
|
4 |
|
|
def options() :
|
5 |
|
|
options = VP('standard')
|
6 |
|
|
options.output = "topTuple.root"
|
7 |
|
|
options.maxEvents = 100
|
8 |
|
|
|
9 |
|
|
options.register('isData', default = True, mytype = VP.varType.bool)
|
10 |
|
|
options.register('quiet', default = True, mytype = VP.varType.bool)
|
11 |
|
|
options.register('globalTag', mytype = VP.varType.string )
|
12 |
|
|
options.register('postfix','TR', mytype = VP.varType.string )
|
13 |
|
|
options.parseArguments()
|
14 |
|
|
options._tagOrder =[]
|
15 |
|
|
|
16 |
|
|
defaultGT = ('GR_R_53_V15' if options.isData else 'START53_V13')
|
17 |
|
|
|
18 |
|
|
defaultFiles = ( pickRelValInputFiles( cmsswVersion = 'CMSSW_5_3_4_cand1',
|
19 |
|
|
dataTier = 'RECO' if options.isData else 'AODSIM',
|
20 |
|
|
relVal = 'SingleMu' if options.isData else 'RelValProdTTbar',
|
21 |
|
|
globalTag = ( options.globalTag if options.globalTag else
|
22 |
|
|
'GR_R_53_V12_RelVal_mu2012A' if options.isData else
|
23 |
|
|
'START53_V10'),
|
24 |
|
|
maxVersions = 1 ) )
|
25 |
|
|
|
26 |
|
|
options.files = options.files if options.files else defaultFiles[:10]
|
27 |
|
|
if not options.globalTag : options.globalTag = defaultGT
|
28 |
|
|
|
29 |
|
|
if not options.quiet : print options
|
30 |
|
|
return options
|