108 |
|
self.lumis = {} # DBS output: lumis in each file |
109 |
|
self.lumiMask = None |
110 |
|
self.splitByLumi = False |
111 |
+ |
self.splitDataByEvent = 0 |
112 |
|
|
113 |
|
def fetchDBSInfo(self): |
114 |
|
""" |
136 |
|
runList = LumiList(runs = runselection) |
137 |
|
|
138 |
|
self.splitByRun = int(self.cfg_params.get('CMSSW.split_by_run', 0)) |
139 |
+ |
self.splitDataByEvent = int(self.cfg_params.get('CMSSW.split_by_event', 0)) |
140 |
|
common.logger.log(10-1,"runselection is: %s"%runselection) |
141 |
|
|
142 |
|
if not self.splitByRun: |
166 |
|
primDSs = api.listPrimaryDatasets(pdsName) |
167 |
|
dataType = primDSs[0]['Type'] |
168 |
|
common.logger.debug("Datatype is %s" % dataType) |
169 |
< |
if dataType == 'data' and not (self.splitByRun or self.splitByLumi): |
169 |
> |
if dataType == 'data' and not \ |
170 |
> |
(self.splitByRun or self.splitByLumi or self.splitDataByEvent): |
171 |
|
msg = 'Data must be split by lumi or by run. ' \ |
172 |
|
'Please see crab -help for the correct settings' |
173 |
|
raise CrabException(msg) |