GENIEGenerator
|
#include <cstdio>
#include "Tools/Flux/GBGLRSAtmoFlux.h"
#include "Tools/Flux/GAtmoFlux.h"
#include "Framework/Conventions/Units.h"
#include <stdlib.h>
#include "TH3D.h"
#include "Framework/Messenger/Messenger.h"
Go to the source code of this file.
Classes | |
struct | tests |
Macros | |
#define | UNUSED(V) ((void) V) |
Program used for testing the GAtmoFlux class. More... | |
#define | LEN(x) ((sizeof(x)/sizeof(0[x]))/((size_t)(!(sizeof(x) % sizeof(0[x]))))) |
Typedefs | |
typedef int | testFunction (char *err) |
Functions | |
int | isclose (double a, double b, double rel_tol, double abs_tol) |
int | testGetTotalFlux (char *err) |
int | testGetTotalFluxInEnergyRange (char *err) |
int | main (int argc, char **argv) |
Variables | |
struct tests | tests [] |
#define LEN | ( | x | ) | ((sizeof(x)/sizeof(0[x]))/((size_t)(!(sizeof(x) % sizeof(0[x]))))) |
Definition at line 32 of file gtestGAtmoFlux.cxx.
Referenced by main().
#define UNUSED | ( | V | ) | ((void) V) |
Program used for testing the GAtmoFlux class.
gtestGAtmoFlux
Definition at line 27 of file gtestGAtmoFlux.cxx.
Referenced by main().
typedef int testFunction(char *err) |
Definition at line 34 of file gtestGAtmoFlux.cxx.
int isclose | ( | double | a, |
double | b, | ||
double | rel_tol, | ||
double | abs_tol | ||
) |
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 201 of file gtestGAtmoFlux.cxx.
References genie::Messenger::Instance(), LEN, tests::name, pFATAL, genie::Messenger::SetPriorityLevel(), tests::test, and UNUSED.
int testGetTotalFlux | ( | char * | err | ) |
Definition at line 49 of file gtestGAtmoFlux.cxx.
References genie::flux::GAtmoFlux::AddFluxFile(), genie::flux::GAtmoFlux::ForceMaxEnergy(), genie::flux::GAtmoFlux::ForceMinEnergy(), genie::flux::GAtmoFlux::GetFlux(), genie::flux::GAtmoFlux::GetTotalFlux(), genie::units::GeV, and genie::flux::GAtmoFlux::LoadFluxData().
int testGetTotalFluxInEnergyRange | ( | char * | err | ) |
Definition at line 92 of file gtestGAtmoFlux.cxx.
References genie::flux::GAtmoFlux::AddFluxFile(), e, genie::flux::GAtmoFlux::ForceMaxEnergy(), genie::flux::GAtmoFlux::ForceMinEnergy(), genie::flux::GAtmoFlux::GetFlux(), genie::flux::GAtmoFlux::GetTotalFlux(), genie::flux::GAtmoFlux::GetTotalFluxInEnergyRange(), genie::units::GeV, isclose(), and genie::flux::GAtmoFlux::LoadFluxData().