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 ROOT | |
ROOT.gSystem.Load("libEXOROOT") | |
class model: | |
def __init__(self,RC_tau_1,RC_tau_2,CR_tau_1,CR_tau_2,CR_tau_3,baseline,lower_range,upper_range,size): | |
self.function = ROOT.TF1('function',self,lower_range,upper_range,size) | |
self.function.SetParName(0, 'number of signals') | |
self.cm = ROOT.EXOChannelManager() | |
self.cm.initialize(RC_tau_1,RC_tau_2,CR_tau_1,CR_tau_2,CR_tau_3) |
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
# Source this script in tcsh to setup shell completions | |
# for git. Completions are activated by typing or Control-D | |
# in the shell after entering a partial command. | |
# | |
# Usage: | |
# source git-completion.tcsh (e.g. in ~/.cshrc) | |
# | |
# Supported completions: | |
# git (lists git commands) | |
# git help (lists git commands) |
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 numpy as np | |
def allanVar(data, sf=1): | |
''' | |
calculates allan variance | |
according to eq 8.13a in | |
David W. Allan, John H. Shoaf and Donald Halford: Statistics of Time and Frequency Data Analysis, | |
NBS Monograph 140, pages 151–204, 1974 | |
''' |