https://github.com/marcodeltutto/numiflux
Code to calculate the NuMI Flux at MicroBooNE
https://github.com/marcodeltutto/numiflux
Last synced: 8 months ago
JSON representation
Code to calculate the NuMI Flux at MicroBooNE
- Host: GitHub
- URL: https://github.com/marcodeltutto/numiflux
- Owner: marcodeltutto
- Created: 2016-02-26T17:56:00.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-06-08T15:26:02.000Z (about 9 years ago)
- Last Synced: 2025-03-23T02:28:18.644Z (about 1 year ago)
- Language: C++
- Size: 600 KB
- Stars: 0
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NuMIFlux
Code to calculate the NuMI Flux at MicroBooNE.
Wiki page: https://cdcvs.fnal.gov/redmine/projects/ubooneoffline/wiki/NuMI_Flux_Histograms.
## First Usage
From the MicroBooNE gpvm machines:
```
git clone git@github.com:marcodeltutto/NuMIFlux.git
cd NuMIFlux/
source SetupNuMIFlux.sh
cd FluggNtuple/
root -l
> .L FluxNtuple.C+
> .q
cd ../
root -l
> gSystem->Load("FluggNtuple/FluxNtuple_C.so");
> .L NuMIFlux.cc+
> .q
```
## General Instructions
Run with:
```
source SetupNuMIFlux.sh
root -l
> gSystem->Load("FluggNtuple/FluxNtuple_C.so");
> gSystem->Load("NuMIFlux_cc.so");
> NuMIFlux f("generic_*_to_flugg.root");
> f.CalculateFlux();
```
or use the python script:
```
source SetupNuMIFlux.sh
python RunNuMIFlux.py
```
Compile with:
```
root -l
> gSystem->Load("FluggNtuple/FluxNtuple_C.so");
> .L NuMIFlux.cc+
```
Generate new FluxNtuple_C.so:
```
cd FluggNtuple
root -l
.L FluxNtuple.C+
```