Skip to content

Instantly share code, notes, and snippets.

View JavierCVilla's full-sized avatar

Javier Cervantes JavierCVilla

  • CERN
  • Meyrin, Switzerland
View GitHub Profile
@JavierCVilla
JavierCVilla / infra.md
Last active October 25, 2019 08:11
FCC infrastructure Documentation
layout
site

FCC Software Infrastructure

Table of Content:

  • Main components
import ROOT
# Enable multi-threading
ROOT.ROOT.EnableImplicitMT()
# Create list of input files
files = ROOT.std.vector("string")()
files.push_back("root://eospublic.cern.ch//eos/root-eos/cms_opendata_2012_nanoaod/Run2012B_DoubleMuParked.root")
files.push_back("root://eospublic.cern.ch//eos/root-eos/cms_opendata_2012_nanoaod/Run2012C_DoubleMuParked.root")
@JavierCVilla
JavierCVilla / install-massif-visualizer.sh
Created December 13, 2018 09:04
How to install `massif-visualizer` in CentOS7
yum install epel-release
yum install subversion git cmake3 tar wget
yum install kdelibs-devel extra-cmake-modules \
graphviz-devel kdepim-devel \
qt5-qtsvg-devel qt5-qtxmlpatterns-devel \
kf5-kparts-devel kf5-karchive-devel \
kf5-kiconthemes-devel kf5-kdoctools-devel
git clone https://github.com/KDE/massif-visualizer
wget https://download.kde.org/stable/kgraphviewer/2.4.0/kgraphviewer-2.4.0.tar.xz
wget https://download.kde.org/stable/kdiagram/2.6.0/src/kdiagram-2.6.0.tar.xz
@JavierCVilla
JavierCVilla / MultipleChainTest.cpp
Last active October 25, 2018 07:55
Script to create multiple trees split on different files.
{
using namespace ROOT;
auto filenames = std::vector<std::string>();
for(int i = 0; i<20 ; i++){
std::string s = "sample" + std::to_string(i) + ".root";
filenames.push_back(s);
}
// process info tree
@JavierCVilla
JavierCVilla / testSpark.ipynb
Last active August 6, 2018 10:16
Distill + Distribution Spark Example
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JavierCVilla
JavierCVilla / heppyanalysis.cxx
Last active May 17, 2018 06:55
TDataFrame dealing with heppy+podio
#include <ROOT/TDataFrame.hxx>
#include "TVector3.h"
#include <TCanvas.h>
#include <TApplication.h>
#include <TSystem.h>
#include <ROOT/TVec.hxx>
/*
* Running from lxplus:
* source /cvmfs/sft.cern.ch/lcg/views/dev3/latest/x86_64-slc6-gcc62-opt/setup.sh