layout |
---|
site |
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") |
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 |
{ | |
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 |
#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 |