forked from CMSLQ/submitJobsWithCrabV2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPSet.py
36 lines (34 loc) · 1.42 KB
/
PSet.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#this fake PSET is needed for local test and for crab to figure the output filename
#you do not need to edit it unless you want to do a local test using a different input file than
#the one marked below
import FWCore.ParameterSet.Config as cms
import FWCore.ParameterSet.VarParsing as VarParsing
#import utils
process = cms.Process('NANO')
#options = VarParsing.VarParsing ('analysis')
#options.register ('dataset',
# '/varparsing/default/dataset', # default value
# VarParsing.VarParsing.multiplicity.singleton,
# VarParsing.VarParsing.varType.string,
# "Full name of the dataset")
#options.register ('isMC',
# 1, # default value
# VarParsing.VarParsing.multiplicity.singleton,
# VarParsing.VarParsing.varType.int,
# "MC or data?")
#options.parseArguments()
#
process.source = cms.Source("PoolSource", fileNames = cms.untracked.vstring(),
# lumisToProcess=cms.untracked.VLuminosityBlockRange("254231:1-254231:24")
)
process.source.fileNames = [
'../../NanoAOD/test/lzma.root' ##you can change only this line
]
process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(1))
##process.output = cms.OutputModule("PoolOutputModule", fileName = cms.untracked.string('tree.root'))
#process.output = cms.OutputModule(
# "PoolOutputModule",
# fileName = cms.untracked.string(utils.GetOutputFilename(options.dataset,options.isMC))
#)
#process.out = cms.EndPath(process.output)
#