Reweights the MAUS simulation to reproduce the amplitude distribution observed in data.
More...
#include <iostream>
#include <algorithm>
#include <regex>
#include <map>
#include "TStyle.h"
#include "TNtuple.h"
#include "TFile.h"
#include "TCanvas.h"
#include "TRandom3.h"
#include "Globals.hh"
#include "ProgressBar.hh"
#include "InfoBox.hh"
#include "Bunch.hh"
Reweights the MAUS simulation to reproduce the amplitude distribution observed in data.
Algorithm that reweights the MAUS simulation to faithfully reproduce the amplitude distribution observed in hte corresponding data downstream of the MICE absorber. It uses the requested density estimator to reconstruct the minimum local density as a function of the fraction of the beam included.
Reweighting method.
| Enumerator |
|---|
| maxdist |
Fixes everything to the largest discrepancy.
|
| binbybin |
Fixes bin by bin from largest to smallest.
|
Reweighting metric.
| Enumerator |
|---|
| own |
Simulation metric.
|
| data |
Data metric.
|
| std::vector<double> CustomAmplitudes |
( |
const Beam::Bunch & |
beam, |
|
|
const Matrix< double > & |
covmat |
|
) |
| |
Computes the amplitudes of particles in the metric defined by covmat.
- Parameters
-
| beam | Particle beam object |
| covmat | Custom metric |
- Returns
- Vector of amplitudes
| int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Main function.
- Parameters
-
| argc | Number of command line arguments |
| argv | List of command line aguments |