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

Comparing COMP/CRAB/python/PsetManipulator.py (file contents):
Revision 1.1 by gutsche, Sun May 28 02:24:35 2006 UTC vs.
Revision 1.2 by slacapra, Thu Jun 22 16:05:18 2006 UTC

# Line 31 | Line 31 | class PsetManipulator:
31              raise CrabException(msg+msg1)
32              pass
33          
34 <        par = file(common.work_space.shareDir()+self.pyPset+'py').read()
34 >        self.par = file(common.work_space.shareDir()+self.pyPset+'py').read()
35         # par = file(common.work_space.shareDir()+self.pset+'py').read()
36  
37          # get PSet
38 <        self.cfg = CfgInterface(par,True)
39 <
38 >        self.cfg = CfgInterface(self.par,True)
39  
40      def inputModule(self, source):
41          """ Clean  String FileName if there
# Line 47 | Line 46 | class PsetManipulator:
46          inModule.cleanStringFileNames() ## Add Daniele
47          inModule.setFileNames(source)
48          return
49 +  
50 +    def pythiaSeed(self,seed):
51 +        """
52 +            Set pythia seed key
53 +        """
54 +        # set seed
55 +        inModule = self.cfg.inputSource
56 +        inModule.setPythiaSeed(self.cfg,seed)
57 +        return
58  
59      def maxEvent(self, maxEv):
60          """ """
# Line 56 | Line 64 | class PsetManipulator:
64          inModule.setMaxEvents(maxEv)   ## Add Daniele
65          return
66  
59    
60
67      def outputModule(self, output):
68  
69          #set output module

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines