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
|