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

Comparing COMP/CRAB/python/writeCfg.py (file contents):
Revision 1.25 by ewv, Fri Aug 28 18:56:43 2009 UTC vs.
Revision 1.26 by ewv, Mon Dec 14 22:33:54 2009 UTC

# Line 102 | Line 102 | def main(argv) :
102      firstEvent = -1
103      compHEPFirstEvent = 0
104      firstRun   = 0
105 +    # FUTURE: Remove firstRun
106 +    firstLumi  = 0
107  
108      dom = xml.dom.minidom.parse(os.environ['RUNTIME_AREA']+'/arguments.xml')
109  
# Line 115 | Line 117 | def main(argv) :
117                  firstEvent = int(elem.getAttribute("FirstEvent"))
118              if elem.getAttribute("FirstRun"):
119                  firstRun = int(elem.getAttribute("FirstRun"))
120 +            if elem.getAttribute("FirstLumi"):
121 +                firstLumi = int(elem.getAttribute("FirstLumi"))
122  
123              generator      = str(elem.getAttribute('Generator'))
124              inputFiles     = str(elem.getAttribute('InputFiles'))
# Line 174 | Line 178 | def main(argv) :
178      # Pythia parameters
179      if (firstRun):
180          inModule.setFirstRun(firstRun)
181 +    if (firstLumi):
182 +        inModule.setFirstLumi(firstLumi)
183  
184      # Check if there are random #'s to deal with
185      if cfg.data.services.has_key('RandomNumberGeneratorService'):

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines