Commit dd12d742 authored by NUNEZ Arturo's avatar NUNEZ Arturo
Browse files

many missed pushs

parent 56f5c2c5
Pipeline #770 failed with stages
This diff is collapsed.
{
"cells": [],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 1
}
{
"cells": [],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 1
}
{
"cells": [],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 1
}
{
"cells": [],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 1
}
{
"cells": [],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 1
}
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
%% Cell type:code id: tags:
``` python
import numpy as np
import matplotlib.pylab as plt
```
%% Cell type:code id: tags:
``` python
dones = open("../../datafiles/donefilesQ6.txt")
for l in dones:
path = l.split(' ')[-1]
print path.split('/')[2][:-1]
```
%% Cell type:code id: tags:
``` python
```
%% Cell type:code id: tags:
``` python
```
%% Cell type:code id: tags:
``` python
```
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
%% Cell type:code id: tags:
``` python
%matplotlib notebook
%load_ext autoreload
%autoreload 2
import warnings
warnings.filterwarnings('ignore')
import resource
soft, hard = resource.getrlimit(resource.RLIMIT_NOFILE)
resource.setrlimit(resource.RLIMIT_NOFILE, (hard, hard))
#import __future__
import numpy as np
import sys
import glob
from root_numpy import root2array, tree2array
from root_numpy import testdata
import ROOT
import matplotlib.pylab as plt
import matplotlib as mpl
import matplotlib.colors as colors
from scipy.interpolate import interp1d
import h5py
from mpl_toolkits.axes_grid1 import make_axes_locatable
from matplotlib import rc
rc('font',**{'family':'sans-serif','sans-serif':['Helvetica']})
## for Palatino and other serif fonts use:
#rc('font',**{'family':'serif','serif':['Palatino']})
rc('text', usetex=True)
```
%% Cell type:code id: tags:
``` python
paths = glob.glob("/data/ANTARES/Sun_Backgound/AA/old")
```
%% Cell type:code id: tags:
``` python
data = ROOT.TFile(paths[0],'OPEN')
in_hist = data.Get('H_STheta')
Nbins = in_hist.GetNbinsX()
print Nbins
xval = np.array([in_hist.GetBinCenter(k) for k in range(Nbins)])
xerr = np.array([in_hist.GetBinWidth(k) for k in range(Nbins)])
yval = np.array([in_hist.GetBinContent(k) for k in range(Nbins)])
```
%% Cell type:code id: tags:
``` python
fig, ax =plt.subplots()
ax.step(xval, yval,where='mid')
ax.scatter(xval, yval,s=10)
```
%% Cell type:code id: tags:
``` python
print xval
```
%% Cell type:code id: tags:
``` python
```
{
"cells": [],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 1
}
{
"cells": [],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 1
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment