Skip to content

Instantly share code, notes, and snippets.

View carbolymer's full-sized avatar
🤔
Building castles of abstraction

Mateusz Galazyn carbolymer

🤔
Building castles of abstraction
View GitHub Profile
Version 4
SymbolType CELL
LINE Normal 0 44 32 44
LINE Normal 0 20 32 20
LINE Normal 32 20 16 44
LINE Normal 0 20 16 44
LINE Normal 16 0 16 20
LINE Normal 16 44 16 64
LINE Normal 0 38 0 44
LINE Normal 32 44 32 38
@carbolymer
carbolymer / dist.m
Created June 9, 2012 20:41
Larges Lyapunov Exponent from time series
function D = dist(X)
s = length(X(1,:));
n = length(X(:,1));
D = zeros(s,s);
for i=1:s
for j=1:i
if i == j
D(i,j) = 0;
else
D(i,j) = sqrt(sum(power(X(:,i)-X(:,j),2)));
int pythia2()
{
int i = 0, index = 0;
TCanvas *canv = 0;
TFile *files[7];
TH1F *multiplicity[4];
TH1F *multiplicity14[4];
clear;
function X = generate(a,c,m)
X = zeros(1000,1);
X(1) = 1;
for i = 1:999
X(i+1) = mod(a*X(i)+c,m);
endfor
endfunction
clear;
page_output_immediately(1);
% obliczanie energii lancucha
function E = energy(chain, J, H)
E = -sum(chain)*H;
E += -J*sum(chain.*[chain(end) ; chain(1:end-1)]);
endfunction
% generator LCG
function value = LCGrand()
@carbolymer
carbolymer / Makefile
Created July 19, 2012 10:54
Makefile with root libraries
DIR_HPP=./inc/
DIR_CPP=./src/
DIR_OBJ=./tmp/
DIR_BIN=./
DIR_TMP=./tmp/
CXXFLAGS=`root-config --cflags` -I$(DIR_HPP) -O3 -g
LFLAGS=`root-config --libs` -lboost_regex -g
OBJS=fit1dcould.o fitshanalyticaaabackshdircovcoulpars.o plotter.o merger.o siniukow2therminator.o
@carbolymer
carbolymer / TChainProxy.cxx
Created July 30, 2012 17:00
Plik: /home/mgalazyn/workspace/tpi/TChainProxy.cxx
#include "TChainProxy.h"
TChainProxy::TChainProxy() : _type(NONE), _isSiniukowLoaded(false)
{
_types[0] = "particles"; // Therminator
_types[1] = "tf"; // Siniukow
_types[2] = "teposevent"; // EPOS
_chain = new TChain();
[ 160.711]
X.Org X Server 1.12.3
Release Date: 2012-07-09
[ 160.749] X Protocol Version 11, Revision 0
[ 160.762] Build Operating System: Linux 3.4.4-3-ARCH x86_64
[ 160.776] Current Operating System: Linux nucleon 3.4.6-1-ARCH #1 SMP PREEMPT Fri Jul 20 08:21:26 CEST 2012 x86_64
[ 160.776] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=2a41bc68-0c74-4229-ad7b-ccf1be99a9ca ro nomodeset radeon.audio=1
[ 160.804] Build Date: 09 July 2012 03:59:39PM
[ 160.818]
[ 160.832] Current version of pixman: 0.26.2
1)
Rank
A8-3500M 161
Radeon HD 6640G2 174
2)
Corei3-2330M 89
Radeon HD 6490M 208
execve("/usr/bin/git", ["git", "add", "."], [/* 42 vars */]) = 0
brk(0) = 0x1618000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=192064, ...}) = 0
mmap(NULL, 192064, PROT_READ, MAP_PRIVATE, 4, 0) = 0x7f1ff0691000
close(4) = 0
open("/usr/lib/libpcre.so.1", O_RDONLY|O_CLOEXEC) = 4
read(4, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\360\36\0\0\0\0\0\0"..., 832) = 832
fstat(4, {st_mode=S_IFREG|0755, st_size=383264, ...}) = 0