Example program to histogram energy corrections.  
More...
#include <string>
#include <iostream>
#include <iomanip>
#include "TROOT.h"
#include "TFile.h"
#include "TH1D.h"
#include "JReconstruction/JEvtToolkit.hh"
#include "JReconstruction/JEnergyCorrection.hh"
#include "JROOT/JManager.hh"
#include "Jeep/JeepToolkit.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
 
Go to the source code of this file.
 | 
| int  | main (int argc, char **argv) | 
|   | 
Example program to histogram energy corrections. 
- Author
 - mdejong 
 
Definition in file examples/JReconstruction/JEnergyCorrection.cc.
 
◆ main()
      
        
          | int main  | 
          ( | 
          int  | 
          argc,  | 
        
        
           | 
           | 
          char **  | 
          argv  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 24 of file examples/JReconstruction/JEnergyCorrection.cc.
   35     JParser<> zap(
"Example program to histogram energy corrections.");
 
   43   catch(
const exception& error) {
 
   44     FATAL(error.what() << endl);
 
   56     for (
int i = 1; i <= zmap->GetNbinsX(); ++i) {
 
   58       const double x = zmap->GetBinCenter (i);
 
   59       const double E = 
pow(10.0, 
x);
 
   60       const double y = fcn(E) / E;
 
#define DEBUG(A)
Message macros.
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
 
Auxiliary class for correction of energy determined by JEnergy.cc.
 
Utility class to parse command line options.
 
const JPolynome f1(1.0, 2.0, 3.0)
Function.
 
std::string getFilename(const std::string &file_name)
Get file name part, i.e. part after last JEEP::PATHNAME_SEPARATOR if any.
 
T pow(const T &x, const double y)
Power .
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).