Skip to content

Commit

Permalink
gp_rdiff: xrange, cut off >1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaume committed Jan 30, 2014
1 parent 81d02dc commit c4eb230
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyana/examples/gp_rdiff.py
Expand Up @@ -25,6 +25,7 @@ def gp_rdiff(version):
data_type = re.sub('%s\.dat' % energy, '', file)
file_url = os.path.join(inDir, file)
data_import = np.loadtxt(open(file_url, 'rb'))
data_import = data_import[data_import[:,0] < 1.5]
if data_type == 'data': data[energy] = data_import
else: cocktail[energy] = data_import
dataOrdered = OrderedDict()
Expand Down Expand Up @@ -58,7 +59,6 @@ def gp_rdiff(version):
key = ' '.join([energy, 'GeV'])
if key in dataOrdered: dataOrdered[key].append(dp)
else: dataOrdered[key] = [ dp ]
break
# make plot
nSets = len(dataOrdered)
make_plot(
Expand All @@ -70,7 +70,7 @@ def gp_rdiff(version):
# TODO: adjust name and ylabel for ratio
name = os.path.join(outDir, 'diff%s' % version), ylabel = 'diff',
xlabel = 'dielectron mass (GeV/c^{2})',
xr = [0.1,1.1]
xr = [0.2,0.78]
)
return 'done'

Expand Down

0 comments on commit c4eb230

Please sign in to comment.