#include "GENIE/Framework/Numerical/RandomGen.h"
#include "GENIE/Tools/Flux/GSimpleNtpFlux.h"
#include "GENIE/Framework/Utils/UnitUtils.h"
#include "TSystem.h"
#include "TStopwatch.h"
#include "TLorentzVector.h"
#include "TNtuple.h"
#include "TFile.h"
#include "TChain.h"
#include "TF1.h"
#include "TH1F.h"
#include "TRandom.h"
#include <iostream>
#include <iomanip>
#include <string>
#include <sstream>
#include <set>
#include <algorithm>
Go to the source code of this file.
Functions | |
double | pick_energy (double, double) |
void | warp_entry (GSimpleNtpEntry *entry, GSimpleNtpAux *aux, GSimpleNtpNuMI *numi) |
void | warp_meta (GSimpleNtpMeta *meta, string fnamein) |
double | fit_fcn (double *x, double *par) |
void | update_flavors (GSimpleNtpMeta *meta, std::set< int > &gFlavors) |
void | warp_gsimple (string fnameout="gsimple_output.root", string fnamein="gsimple_input.root", bool dowarp=true) |
Variables | |
TF1 * | fcn |
bool | gDoWarp = true |
double fit_fcn | ( | double * | x, |
double * | par | ||
) |
Definition at line 109 of file warp_gsimple.C.
References energy, update_flavors(), and submit_syst::y.
Referenced by warp_gsimple().
double pick_energy | ( | double | emin, |
double | emax | ||
) |
void update_flavors | ( | GSimpleNtpMeta * | meta, |
std::set< int > & | gFlavors | ||
) |
Definition at line 301 of file warp_gsimple.C.
References genie::flux::GSimpleNtpMeta::pdglist.
Referenced by fit_fcn(), and warp_gsimple().
void warp_entry | ( | GSimpleNtpEntry * | entry, |
GSimpleNtpAux * | aux, | ||
GSimpleNtpNuMI * | numi | ||
) |
Definition at line 44 of file warp_gsimple.C.
References genie::flux::GSimpleNtpAux::auxint, om::cout, genie::flux::GSimpleNtpEntry::E, allTimeWatchdog::endl, genie::flux::GSimpleNtpNuMI::entryno, gDoWarp, pick_energy(), genie::flux::GSimpleNtpEntry::px, genie::flux::GSimpleNtpEntry::py, genie::flux::GSimpleNtpEntry::pz, and std::sqrt().
Referenced by warp_gsimple().
void warp_gsimple | ( | string | fnameout = "gsimple_output.root" , |
string | fnamein = "gsimple_input.root" , |
||
bool | dowarp = true |
||
) |
Definition at line 130 of file warp_gsimple.C.
References om::cout, e, genie::flux::GSimpleNtpEntry::E, allTimeWatchdog::endl, fcn, fin, fit_fcn(), submit_syst::fout, gDoWarp, genie::flux::GSimpleNtpMeta::maxEnergy, genie::flux::GSimpleNtpMeta::maxWgt, genie::flux::GSimpleNtpEntry::metakey, genie::flux::GSimpleNtpMeta::metakey, genie::flux::GSimpleNtpMeta::minWgt, nentries, genie::flux::GSimpleNtpEntry::pdg, genie::flux::GSimpleNtpEntry::Reset(), genie::flux::GSimpleNtpNuMI::Reset(), genie::flux::GSimpleNtpAux::Reset(), sw, update_flavors(), warp_entry(), warp_meta(), and genie::flux::GSimpleNtpEntry::wgt.
void warp_meta | ( | GSimpleNtpMeta * | meta, |
string | fnamein | ||
) |
Definition at line 81 of file warp_gsimple.C.
References gDoWarp, genie::flux::GSimpleNtpMeta::infiles, and lem_server::msg.
Referenced by warp_gsimple().
TF1* fcn |
Definition at line 35 of file warp_gsimple.C.
Referenced by art::EndPathExecutor::doForAllEnabledOutputWorkers_(), art::EndPathExecutor::doForAllEnabledWorkers_(), format_product_node(), pick_energy(), and warp_gsimple().
bool gDoWarp = true |
Definition at line 39 of file warp_gsimple.C.
Referenced by warp_entry(), warp_gsimple(), and warp_meta().