Skip to content

CERN ATLAS Experiment Interface to compute Jet correction factors.

Notifications You must be signed in to change notification settings

swissarthurfreeman/jettoolhelpers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JetToolHelpers

Goal

This project is an Athena interface to ROOT Histograms whose goal is to allow the user to provide compile time axis interpretations.

Usage

#include "HistoInput.h"

HistoInput histogram = HistoInput(
    "MachuPichu",                   
    "./R4_AllComponents.root",                            // the .root file containing 
    "EtaIntercalibration_Modelling_AntiKt4EMPFlow",       // this Histogram
    "absrapidity", "float", true, "abseta", "float", true // the axes interpretations
);

histogram.initialize();     // reads the .root file, checks dimensions.

xAOD::Jet jet{5, 5, 5, 5};
JetContext jc;
double x{0};

// getValue will know how to read abs(jet.rapidity) and abs(jet.eta)
// when interpolating in the histogram. 
std::cout << histogram.getValue(jet, jc, x) std << cout;

Dependencies

ATHENA includes are mocked and only requires a local C++17 ROOT installation.

Since April 13th 2022 ROOT has prebuilt binary releases available.

This project has been built with Release 6.26/02.

Configuring CMake

The root CMakeLists.txt file defines where all sources are. CMake has a find package method that makes ROOT_INCLUDE_DIRS and ROOT_LIBRARIES variables available. Your local root installation location must be defined in this file. The CMake variable ROOT_DIR must be set for find_package(ROOT) to work.

set(ROOT_DIR /your/path/to/where/you/extracted/root/)

If your configuration is correct, please go to the build directory and run cmake.

JetToolHelpers/build$ mkdir build && cd build
JetToolHelpers/build$ cmake ../
JetToolHelpers/build$ make

Testing

After having successfully built the project, you can run the tests with

JetToolHelpers/build$ ctest

If you would like more output, or if a test doesn't pass, you can use,

JetToolHelpers/build$ ctest --verbose

Authors

S. Schramm Université de Genève, A. Freeman Université de Genève.

About

CERN ATLAS Experiment Interface to compute Jet correction factors.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published