ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/ForwardAnalysis/Utilities/python/ExcludeHFEdgesStringCut.py
Revision: 1.2
Committed: Wed Sep 5 14:39:38 2012 UTC (12 years, 7 months ago) by eliza
Content type: text/x-python
Branch: MAIN
CVS Tags: V01-01-01, HEAD
Changes since 1.1: +3 -1 lines
Log Message:
modifying acceptance cuts for HF - exclude ring 30

File Contents

# Content
1 import FWCore.ParameterSet.Config as cms
2
3 class ExcludeHFEdgesStringCut:
4 def __init__(self):
5 #self.pset = pset
6 self.ranges = []
7 #self.ranges.append( (2.866,2.976) )
8 # HF rings 29,30,40,41 - Acceptance 3.152 - 4.730
9 self.ranges.append( (2.866,3.152) )
10 self.ranges.append( (4.730,999.) )
11 def cut(self):
12
13 cutStr = ""
14 for region in self.ranges:
15 if cutStr: cutStr += " & "
16 else: cutStr += "( "
17 cutStr += "!(abs(eta) >= %f & abs(eta) < %f)" % (region[0],region[1])
18
19 cutStr += " )"
20 return cutStr