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

Comparing UserCode/VHbb/python/samplesclass.py (file contents):
Revision 1.1 by peller, Tue May 8 10:38:29 2012 UTC vs.
Revision 1.6 by nmohr, Mon Sep 17 15:34:43 2012 UTC

# Line 3 | Line 3 | class sample:
3      def __init__(self,name,type):
4          self.name=name
5          #type = bkg, sig or data
6 <        if type not in ['BKG','SIG','DATA']:
7 <            raise Exception("type must be 'BKG', 'SIG', or 'DATA'!")
6 >        #if type not in ['BKG','SIG','DATA']:
7 >        #    raise Exception("type must be 'BKG', 'SIG', or 'DATA'!")
8          self.type=type
9          self.prefix=''
10          self.identifier=''
11 +        self.active='True'
12          self.group=''
13          self.path=''
14          self.lumi=0.
15 +        self.sf=1.0
16          self.xsec=0.
17          self.split=1.0
18          self.weightexpression=1.0
# Line 18 | Line 20 | class sample:
20          self.tree='tree'
21          self.treecut=''
22          self.comment=''
23 +        #for DY falvours
24 +        self.subsamples=False
25 +        self.subnames=[]
26 +        self.subcuts=[]
27  
28      def getpath(self):
29 <        return self.path+'/'+self.prefix+self.identifier+'.root'
29 >        return './'+self.prefix+self.identifier+'.root'
30          
31      def addtreecut(self, cut):
32          if self.treecut == '':

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines