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('isFastSim', default = False, mytype = VP.varType.bool)
|
11 |
options.register('quiet', default = True, mytype = VP.varType.bool)
|
12 |
options.register('requireLepton', default = True, mytype = VP.varType.bool)
|
13 |
options.register('globalTag', mytype = VP.varType.string )
|
14 |
options.register('postfix','TR', mytype = VP.varType.string )
|
15 |
options.register('btags', mytype = VP.varType.string, mult = VP.multiplicity.list )
|
16 |
options.register('doElectronEA', default = True, mytype = VP.varType.bool)
|
17 |
options.parseArguments()
|
18 |
options._tagOrder =[]
|
19 |
|
20 |
defaultGT = ('GR_R_53_V18' if options.isData else 'START53_V15')
|
21 |
|
22 |
sync53 = '/store/mc/Summer12_DR53X/TTJets_MassiveBinDECAY_TuneZ2star_8TeV-madgraph-tauola/AODSIM/PU_S10_START53_V7A-v1/0000/FE4C2F81-D0E1-E111-9080-0030487E0A2D.root'
|
23 |
defaultFiles = [sync53] if not options.isData else pickRelValInputFiles( cmsswVersion = 'CMSSW_5_3_6',
|
24 |
dataTier = 'RECO',
|
25 |
relVal = 'SingleMu',
|
26 |
globalTag = 'GR_R_53_V15_RelVal_mu2012A',
|
27 |
numberOfFiles = 10
|
28 |
)
|
29 |
|
30 |
options.files = options.files if options.files else defaultFiles
|
31 |
if not options.globalTag : options.globalTag = defaultGT
|
32 |
|
33 |
if not options.quiet : print options
|
34 |
options.btags = ['combinedSecondaryVertex','jetProbability']
|
35 |
return options
|