20int 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));
 
   57    h3.SetBinContent(i, cc_nubar(E));
 
   58    h4.SetBinContent(i, nc_nubar(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.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).