21 int main(
int argc, 
char* argv[])
 
   31     JParser<> zap(
"Example program to histogram muon energy loss.");
 
   38   catch(
const exception &error) {
 
   39     FATAL(error.what() << endl);
 
   46   TH1D h1(
"h1", NULL, 900, -1.0, +8.0);
 
   47   TH2D h2(
"h2", NULL,  90, -1.0, +8.0, 100, 0.0, 5.0);
 
   49   for(
int i = 1; i <= h1.GetNbinsX(); ++i) {
 
   51     const double x = h1.GetBinCenter(i);
 
   52     const double E = pow(10.0, x);
 
   57   for(
int ix = 1; ix <= h2.GetXaxis()->GetNbins(); ++ix) {
 
   58     for(
int iy = 1; iy <= h2.GetYaxis()->GetNbins(); ++iy) {
 
   60       const double x = h2.GetXaxis()->GetBinCenter(ix);
 
   61       const double y = h2.GetYaxis()->GetBinCenter(iy);
 
   63       const double E  = pow(10.0, x);
 
   64       const double dx = pow(10.0, y);
 
   66       h2.Fill(x, y, 
gWater(E, dx));