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.8 by slacapra, Wed Jan 17 18:17:58 2007 UTC vs.
Revision 1.11 by slacapra, Thu May 10 13:47:06 2007 UTC

# Line 19 | Line 19 | class PsetManipulator:
19          #convert Pset
20          self.pyPset = os.path.basename(pset)  
21          cmd = 'EdmConfigToPython > '+common.work_space.shareDir()+self.pyPset+'py < '+ self.pset
22 <        cmd_out = runCommand(cmd)  
23 <        if cmd_out != '':
24 <            msg = 'Could not convert Pset.cfg into python Dictionary \n'
25 <            msg1= '      Did you do eval `scramv1 runtime ...` from your CMSSW working area ?'
26 <            raise CrabException(msg+msg1)
22 >        exit_code = os.system(cmd)
23 >        if exit_code != 0 :
24 >            msg = 'Could not convert '+self.pset+' into a python Dictionary \n'
25 >            msg += 'Failed to execute \n'+cmd+'\n'
26 >            msg += 'Exit code : '+str(exit_code)
27 >
28 >            raise CrabException(msg)
29              pass
30          
31          self.par = file(common.work_space.shareDir()+self.pyPset+'py').read()
# Line 50 | Line 52 | class PsetManipulator:
52          inModule.setPythiaSeed(self.cfg,seed)
53          return
54  
55 <    def pythiaSeedVtx(self,vtxSeed):
55 >    def vtxSeed(self,vtxSeed):
56          """
57          Set vtx seed key
58          """
59          # set seed
60          inModule = self.cfg.inputSource
61 <        inModule.setPythiaVtxSeed(self.cfg,vtxSeed)
61 >        inModule.setVtxSeed(self.cfg,vtxSeed)
62 >        return
63 >
64 >    def g4Seed(self,g4Seed):
65 >        """
66 >        Set g4 seed key
67 >        """
68 >        # set seed
69 >        inModule = self.cfg.inputSource
70 >        inModule.setG4Seed(self.cfg, g4Seed)
71 >        return
72 >
73 >    def mixSeed(self,mixSeed):
74 >        """
75 >        Set mix seed key
76 >        """
77 >        # set seed
78 >        inModule = self.cfg.inputSource
79 >        inModule.setMixSeed(self.cfg, mixSeed)
80          return
81  
82      def pythiaFirstRun(self, firstrun):

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines