This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
import numpy as np | |
import inspect | |
def hist_errorbars( data, xerrs=True, *args, **kwargs) : | |
"""Plot a histogram with error bars. Accepts any kwarg accepted by either numpy.histogram or pyplot.errorbar""" | |
# pop off normed kwarg, since we want to handle it specially | |
norm = False | |
if 'normed' in kwargs.keys() : | |
norm = kwargs.pop('normed') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### MATPLOTLIBRC FORMAT | |
# This is a sample matplotlib configuration file - you can find a copy | |
# of it on your system in | |
# site-packages/matplotlib/mpl-data/matplotlibrc. If you edit it | |
# there, please note that it will be overridden in your next install. | |
# If you want to keep a permanent local copy that will not be | |
# over-written, place it in HOME/.matplotlib/matplotlibrc (unix/linux | |
# like systems) and C:\Documents and Settings\yourname\.matplotlib | |
# (win32 systems). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
class ABCDCalculator(object): | |
"""Class to calculate background using the ABCD method""" | |
def __init__(self, x, y): | |
self.x = x | |
self.y = y | |
def set_x_data(self, data): | |
"""Give the calculator the x data""" | |
self.x = data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
229:cms+cmssw-tool-conf+25.########################################### [100%] | |
230:cms+cmssw+CMSSW_5_2_0 ########################################### [100%] | |
Done. | |
Create user area for CMSSW_5_2_0 release ... | |
Enter PEM pass phrase: | |
/bin/sh: scramv1: command not found | |
--------------------------------------------------------------------------- | |
OSError Traceback (most recent call last) | |
/Users/nic/cms/soft/Releases/<ipython-input-1-f0d9fe6489f2> in <module>() | |
----> 1 get_ipython().magic(u'install CMSSW_5_2_0') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cms-sh|5> info run=160915 | |
--------------------------------------------------------------------------- | |
HTTPError Traceback (most recent call last) | |
/afs/cern.ch/user/n/neggert/<ipython-input-5-c10902d46b4c> in <module>() | |
----> 1 get_ipython().magic(u'info run=160915') | |
/afs/cern.ch/work/v/valya/public/soft/install/lib/python2.6/site-packages/IPython/core/interactiveshell.pyc in magic(self, arg_s, next_input) | |
1983 self._magic_locals = sys._getframe(1).f_locals | |
1984 with self.builtin_trap: | |
-> 1985 result = fn(magic_args) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cms-sh|1> info run=160915 | |
--------------------------------------------------------------------------- | |
HTTPError Traceback (most recent call last) | |
/afs/cern.ch/user/n/neggert/<ipython-input-1-c10902d46b4c> in <module>() | |
----> 1 get_ipython().magic(u'info run=160915') | |
/afs/cern.ch/work/v/valya/public/soft/install/lib/python2.6/site-packages/IPython/core/interactiveshell.pyc in magic(self, arg_s, next_input) | |
1983 self._magic_locals = sys._getframe(1).f_locals | |
1984 with self.builtin_trap: | |
-> 1985 result = fn(magic_args) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_seu_logs() | |
# get the portion of the logs relevant to the seu | |
logs = [] | |
Dir['**/PixelFEDSupervisor_*.log'].each do |path| | |
contents = File.read(path) | |
regex = /Message : Detected soft error using FED channel monitoring(.*?)Message : New state is:Running/m | |
matches = contents.scan(regex) | |
if (matches != nil) | |
(0..matches.size-1).each do |i| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
..K...K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K.EEE.K............K..K..K..K..K..K..KK.................................................................K......K..K...K.K..KK...K..K..K......................................................................................................................................................................................K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "AndersonDarlingTestStat.h" | |
#include "RooStats/RooStatsUtils.h" | |
#include "RooMsgService.h" | |
#include "TMath.h" | |
#include <utility> | |
using namespace std; | |
typedef pair<Double_t, Double_t> double_pair; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
===================== glite-job-logging-info Success ===================== | |
LOGGING INFORMATION: | |
Printing info for the Job : https://wms309.cern.ch:9000/EHTWzFN0kL288AvLiTVx9A | |
--- | |
Event: RegJob | |
- Arrived = Thu Feb 21 13:54:15 2013 CST |
OlderNewer