Skip to content

Instantly share code, notes, and snippets.

Avatar

Jan Musinsky musinsky

  • SAS Kosice
  • Slovakia
View GitHub Profile
@musinsky
musinsky / TH1_PrintWiki.cxx
Last active Dec 20, 2015
PrintWiki function for ROOT TH1 class
View TH1_PrintWiki.cxx
void TH1::PrintWiki(Option_t * /*option*/) const
{
if (fDimension > 1) {
Info("PrintWiki", "only for 1D histo");
return;
}
Int_t binx;
Int_t firstx = 0, lastx = fXaxis.GetNbins()+1;
Double_t x, bc, be, bsw2;
@musinsky
musinsky / TH1_AddBinContent.cxx
Last active Dec 20, 2015
Simplified basic functions of ROOT TH1 class
View TH1_AddBinContent.cxx
void TH1D::AddBinContent(Int_t bin) {
// AbstractMethod, overridden by TH1D (TH1.h)
++fArray[bin];
}
@musinsky
musinsky / Makefile
Created Sep 6, 2013
fortran convert ascii from/to binary
View Makefile
OUT1 = ascii2bin
OUT2 = bin2ascii
SRCS1 = ${OUT1}.f
SRCS2 = ${OUT2}.f
FC = gfortran
all: ${OUT1} $(OUT2)
${OUT1}: ${SRCS1}
${FC} -o $@ $^
View bash_mucha.sh
# [] source bash_mucha.sh
#
# see in /etc/profile function "pathmunge"
check_var () {
varname=$1
varvalue=${!1}
echo "# check_var function #"
echo "varname="$varname
echo "varvalue="$varvalue
@musinsky
musinsky / README.md
Last active Nov 21, 2016
ROOT Tips Tricks
View README.md

ROOT Tips Tricks

View blue_colors.md
Red Green Blue RGB Hex Note
30 60 90 rgb(30,60,90) #1E3C5A Fedora background gradient, dark blue
45 90 135 rgb(45,90,135) #2D5A87 Windows background
60 120 180 rgb(60,120,180) #3C78B4 Fedora background gradient, light blue
37 75 112 rgb(37,75,112) #254B70 MC background (between win and dark blue)
View VTi_uname
root@vuzero:~# uname -a
Linux vuzero 3.13.5 #1 SMP Fri Nov 3 01:13:58 CET 2017 mips GNU/Linux
View gnome-shell.css
@import url("/usr/share/gnome-shell/theme/gnome-shell.css");
/* customizing GNOME Shell for desktop interface
with fonts size 9pt (instead default 11pt size) */
/* Text Styles */
/* default text style */
stage {
font-size: 9pt; /* 11pt */
}