23int main(
int argc,
char **argv)
33 JParser<> zap(
"Example program to plot NOAA functions.");
40 catch(
const exception &error) {
41 FATAL(error.what() << endl);
47 TH1D h1(
"[ARCA]", NULL, 1000, getARCAMagneticDeclination.getXmin(), getARCAMagneticDeclination.getXmax());
48 TH1D h2(
"[ORCA]", NULL, 1000, getARCAMagneticDeclination.getXmin(), getARCAMagneticDeclination.getXmax());
50 for (Int_t ix = 1; ix <= h1.GetXaxis()->GetNbins(); ++ix) {
52 const double x = h1.GetBinCenter(ix);
53 const double y1 = getARCAMagneticDeclination(x);
54 const double y2 = getORCAMagneticDeclination(x);
58 h1.SetBinContent(ix, y1);
59 h2.SetBinContent(ix, y2);