ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/VHbb/python/HistoMaker.py
(Generate patch)

Comparing UserCode/VHbb/python/HistoMaker.py (file contents):
Revision 1.6 by peller, Thu Oct 11 08:39:53 2012 UTC vs.
Revision 1.7 by peller, Thu Oct 11 13:40:18 2012 UTC

# Line 6 | Line 6 | from ROOT import TFile, TTree
6   import ROOT
7   from array import array
8   from BetterConfigParser import BetterConfigParser
9 < import sys
9 > import sys,os
10  
11   class HistoMaker:
12      def __init__(self, path, config, region, optionsList,rescale=1,which_weightF='weightF'):
# Line 57 | Line 57 | class HistoMaker:
57          plot_path = self.config.get('Directories','plotpath')
58          addOverFlow=eval(self.config.get('Plot_general','addOverFlow'))
59  
60 +        scratchDir = os.environ["TMPDIR"]
61 +        #scratchDir = '/shome/peller/'
62          # define treeCut
63          if job.type != 'DATA':
64              if type(self.region)==str:
# Line 75 | Line 77 | class HistoMaker:
77              treeCut='%s'%(cutcut)
78  
79          # get and skim the Trees
80 <        output=TFile.Open(plot_path+'/tmp_plotCache_%s_%s.root'%(self.region,job.identifier),'recreate')
80 >        output=TFile.Open(scratchDir+'/tmp_plotCache_%s_%s.root'%(self.region,job.identifier),'recreate')
81          input = TFile.Open(self.path+'/'+job.getpath(),'read')
82          Tree = input.Get(job.tree)
83          output.cd()

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines