Category Archives: ROOT

ScramBuildEggs

This project parses a build log and gives more intuitive output.

Links

GitHub repository

Overview

This is a script that parses the build log created by the CMSSW command “scram build” (hence the name!) It takes the output, wraps it to a more readable width, splits errors by type and colours them, and also gives more useful output. It’s not complete yet, but it is already rather useful.

Screenshot

ScramBuildEggs screenshot
ScramBuildEggs screenshot

Marriage data scrubbing

This project was the first step in a larger project that scrubbed data from pages for analysis.

Links

Live page
GitHub repository
Wikipedia page

Overview

This page takes input from Wikipedia (although at the moment this is extracted manually from the main page) and then produces a C script which summarises the data for further analysis. ROOT is then used to make a plot showing the data. The idea behind the project was to make data scrubbing easier and to give me practice in data scrubbing. If I ever get sufficient time I intend to create some resources to make data scrubbing easier and make sharing of publically accessible data simpler. The the data are taken from an outdated Wikipedia page which is missing many sources.

Challenges

Challenge: The data needs to be scrubbed from the page easily.
Solution: To save time I manually copied the data from Wikipedia for offline analysis, but this should be fixed to read the data online. (Resolved, to be revisited)
Challenge: The output needs to be some kind of source file, for example C or python.
Solution: The source file I chose was a ROOT macro for convenience. Ideally the user should be able to choose what output they want (including xml) to best suit their needs. (Resolved, to be revisited)

Sample output

Anlaysis of marriage data
Anlaysis of marriage data

CERN Open Data (CMS)

In 2014 the CMS experiment at CERN released their 2010 data to the public for analysis. As a quick exercise I decided to analyse the dimuon mass spectrum to show that this could be done in a reasonable amount of time.

Links

Live page
GitHub repository

Overview

The input file is the 2010 Run B comma separated values file. The python script then produces mass spectra for same sign and opposite sign mass spectra and zooms in on the interesting regions.

Challenges

Challenge: The main challenge was that this project was made as quickly as possible.
Solution: This project uses python and existing ROOT libraries for the maximal development speed. The other data format available was using CMSSW and a virtual machine. In principle using CMSSW should be straightforward, but I decided against using this because the software was already four years old and support would be minimal or non-existant, even to current CMS physicsts. (Resolved)

Sample output

Charmonia dimuon spectra
Charmonia dimuon spectra
Full dimuon spectra
Full dimuon spectra
Bottomonium dimuon spectra
Bottomonium dimuon spectra

ROOT colors

This project creates an infographic showing the ROOT colors and how they relate to each other.

Links

ROOT page
GitHub repository

Overview

Physicists use ROOT to make plots and it’s often useful to be able to easily browse the color space. ROOT provides a color wheel, but I find the rectangular display very useful as well. In principle, colors in the same column should suit each other, which makes the rectangular display more useful than the color wheel.

Sample output

Rectangular array of ROOT colors
Rectangular array of ROOT colors

Accelerator future prospects plot

This project was written as part of the content for a talk presented at the International Workshop on Future Linear Colliders to compare the future prospects of the LHC and lepton colliders. It is shared here in case it is of use for other physicists.

Links

GitHub repository

Overview

This project simply plots a series of graphs.

Challenges

Challenge: Using a TMultigraph in pyroot is not easy.
Solution: In order to make this work I had to use the array module, a step I usually forget! This macro should save me a few headaches in the future. (Resolved.)

Output

Future prospects of various accelerators
Future prospects of various accelerators