Giter Site home page Giter Site logo

prob3-wrapper's Introduction

prob3++wrapper

A simple wrapper for prob3++ the neutrino oscillation probability calculator for use with ROOT.

build

With you root environment setup, run build.sh, if all goes well you should end up with WrappedProb3++.20121225.so in the current working directory.

usage

See example.C as an exampled of how to use the interface. The R__LOAD_LIBRARY is only applicable to ROOT6 and above.

The beam dip angle is used to calculate the chord through the earth and thus the baseline. DUNE is 5.8 degrees.

The 6 oscillation parameters are then given to OscillationHelper::Setup to instantiate the oscillation calculation. Angle are set as sin^2(mix_ang_rad), mass splittings are in eV, and dcp is cyclic from -pi to pi (or 0 to 2pi).

An oscillation channel is then set with OscillationHelper::SetOscillationChannel where the neutrinos have their standard PDG MC numbers (nue[bar] : 12/[-12], numu : 14, nutau : 16), e.g. muon neutrino disappearance would set SetOscillationChannel(14,14);

An oscillation probability is then obtained from OscillationHelper::GetWeight(energy), where the energy should be in GeV.

ROOT 5

For whatever reason, I cannot get gSystem->Load to work, so the workaround is to just compile your 'macros' to native binaries, the ROOT5 example here just disables the cling library macro and wraps the standard example in a main function.

Compile like compile_macro.sh example_R5.C, which should produce example_R5.exe, that can then be run like ./example_R5.exe to produce the same output as example.C. Note for any pure ROOT and Prob3++ macro, the above compile_macro.sh should produce a working binary.

prob3-wrapper's People

Contributors

luketpickering avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.