| layout |
|---|
site |
Table of Content:
- Main components
| #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 |
| { | |
| 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 |
| 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 |
| 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") |