20 int main(
int argc, 
char* argv[])
 
   29     JParser<> zap(
"Example program to histogram neutrino interaction cross sections.");
 
   36   catch(
const exception &error) {
 
   37     FATAL(error.what() << endl);
 
   45   TH1D h1(
"#nu CC",       NULL, 1000, 2.0, 8.0);
 
   46   TH1D h2(
"#nu NC",       NULL, 1000, 2.0, 8.0);
 
   47   TH1D h3(
"#bar{#nu} CC", NULL, 1000, 2.0, 8.0);
 
   48   TH1D h4(
"#bar{#nu} NC", NULL, 1000, 2.0, 8.0);
 
   50   for(
int i = 1; i <= h1.GetNbinsX(); ++i) {
 
   52     const double x = h1.GetBinCenter(i);
 
   53     const double E = 
pow(10.0, 
x); 
 
   55     h1.SetBinContent(i, 
cc_nu   (E));
 
   56     h2.SetBinContent(i, 
nc_nu   (E));
 
General purpose messaging.
int main(int argc, char *argv[])
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Utility class to parse command line options.
T pow(const T &x, const double y)
Power .
static const JNCnu nc_nu
Function object for neutral current neutrino cross section [cm^2] as a function of neutrino energy [G...
static const JCCnubar cc_nubar
Function object for charged current anti-neutrino cross section [cm^2] as a function of neutrino ener...
static const JCCnu cc_nu
Function object for charged current neutrino cross section [cm^2] as a function of neutrino energy [G...
static const JNCnubar nc_nubar
Function object for neutral current anti-neutrino cross section [cm^2] as a function of neutrino ener...
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).