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

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