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
using GLMakie | |
const σT = 0.3 | |
function tube(x0, κ, ϕ, x, y) | |
exp(-0.5*(x*cos(ϕ) + y*sin(ϕ) - x0 - κ*(y*cos(ϕ) - x*sin(ϕ))^2)^2 / σT^2) | |
end | |
f1(x, y) = tube(0, 0.01, 1.05, x, y) |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
using StaticArrays | |
using BenchmarkTools | |
using LinearAlgebra | |
function testfoxWolframMoments(entries) | |
h0 = 0.0 | |
hd = 0.0 | |
# init | |
h10 = 0.0 | |
h20 = 0.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
### | |
# Compiles a cloud of calorimeter hits for each MCParticle | |
# Calorimeter cells with multiple hits are assigned to each particle, weighted with the correct energy contribution | |
### | |
using LCIO | |
using DataStructures | |
using PyPlot | |
using JuMP |
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
#!/usr/bin/env python | |
""" Prints the storage usage at a given storage element. | |
Recursively traverses the starting path up to a given depth (default 2) | |
""" | |
from DIRAC.Resources.Catalog.FileCatalogClient import FileCatalogClient | |
from DIRAC.Core.Base import Script | |
import sys | |
import Queue | |
import threading |
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
process Zqq = e1, E1 => u:d:s:c:b, U:D:S:C:B | |
mb = 0 | |
ms = 0 | |
mc = 0 | |
beams = e1, E1 | |
beams_pol_density = @(-1), @(+1) | |
beams_pol_fraction = 80%, 30% | |
sqrts = 91 GeV |
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
# Configuration file for the color ls utility | |
# | |
# This file goes in the /etc directory, and must be world readable. | |
# You can copy this file to .dir_colors in your $HOME directory to override | |
# the system defaults. | |
# COLOR needs one of these arguments: 'tty' colorizes output to ttys, but not | |
# pipes. 'all' adds color characters to all output. 'none' shuts colorization | |
# off. | |
COLOR tty |
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
#!/bin/bash | |
#BSUB -J singleParticles[1-130] | |
#BSUB -q s | |
### LCG Libraries | |
contents=($(ls /gpfs/group/ilc/suehara/reco/dbd/train-lcfiplus/bb91new/*.slcio)) | |
filename="${contents[5*(${LSB_JOBINDEX} - 1)]} ${contents[5*(${LSB_JOBINDEX} - 1)+1]} ${contents[5*(${LSB_JOBINDEX} - 1)+2]} ${contents[5*(${LSB_JOBINDEX} - 1)+3]} ${contents[5*(${LSB_JOBINDEX} - 1)+4]} " | |
xmlfile=$(basename ${contents[${LSB_JOBINDEX} - 1]}) | |
echo $xmlfile | |
echo ${LSB_JOBINDEX} |
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
from DIRAC.Core.Base import Script | |
Script.initialize() | |
from DIRAC.Resources.Catalog.FileCatalogClient import FileCatalogClient | |
from DIRAC import gLogger | |
from urllib2 import urlopen | |
import os.path as path | |
import sys | |
from pprint import pprint |
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
function santa(current, next) | |
if next == '^' current[1] += 1 | |
elseif next == 'v' current[1] -= 1 | |
elseif next == '<' current[2] += 1 | |
elseif next == '>' current[2] -= 1 | |
else println("not known:", next) end | |
current | |
end | |
#assign variable grid = input from http://adventofcode.com/day/3/input |
NewerOlder