ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/VHbb/python/myutils/samplesclass.py
Revision: 1.2
Committed: Fri Jan 25 16:18:01 2013 UTC (12 years, 3 months ago) by nmohr
Content type: text/x-python
Branch: MAIN
CVS Tags: lhcp_UnblindFix, hcp_Unblind, lhcp_11April, LHCP_PreAppFixAfterFreeze, LHCP_PreAppFreeze, HEAD
Changes since 1.1: +16 -35 lines
Log Message:
Restructuring, still to be validated, workspace writing missing

File Contents

# User Rev Content
1 nmohr 1.2 class Sample:
2 peller 1.1 def __init__(self,name,type):
3     self.name=name
4     self.type=type
5 nmohr 1.2 self.identifier=''
6 peller 1.1 self.prefix=''
7 nmohr 1.2 self.active=True
8 peller 1.1 self.group=''
9     self.lumi=0.
10 nmohr 1.2 self.sf=1.
11 peller 1.1 self.xsec=0.
12     self.weightexpression=1.0
13     self.tree='tree'
14     self.treecut=''
15 nmohr 1.2 self.count_with_PU=1.
16     self.count_with_PU2011B=1.
17     self.subsample=False
18     self.subcut='1'
19 peller 1.1
20 nmohr 1.2 @property
21     def get_path(self):
22     return './%s%s.root' %(self.prefix,self.identifier)
23 peller 1.1
24 nmohr 1.2 def __str__(self):
25     return '%s' %self.name
26    
27     def __eq__(self,other):
28     return self.name == other.name