ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CRAB/python/DataDiscovery.py
(Generate patch)

Comparing COMP/CRAB/python/DataDiscovery.py (file contents):
Revision 1.48 by ewv, Tue Jul 6 16:31:55 2010 UTC vs.
Revision 1.49 by ewv, Mon Aug 30 10:36:33 2010 UTC

# Line 108 | Line 108 | class DataDiscovery:
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          """
# Line 135 | Line 136 | class DataDiscovery:
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:
# Line 164 | Line 166 | class DataDiscovery:
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)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines