| 
    Jpp 19.3.0-rc.1
    
   the software that should make you happy 
   | 
 
Auxiliary class for correction of energy determined by JEnergy.cc. More...
#include <JEnergyCorrection.hh>
 Public Member Functions | |
| JEnergyCorrection () | |
| Default constructor.   | |
| JEnergyCorrection (const std::string &formula) | |
| Constructor.   | |
| JEnergyCorrection (const TFormula *fcn) | |
| Constructor.   | |
| bool | is_valid () const | 
| Check validity of pointer.   | |
| TString | getFormula () const | 
| Get formula.   | |
| void | setFormula (const std::string &formula) | 
| Set formula.   | |
| double | operator() (const double E) const | 
| Get corrected energy.   | |
| void | load (const char *file_name) | 
| Load formula from file.   | |
| void | store (const char *file_name) | 
| Store formula to file.   | |
Static Public Member Functions | |
| static const char * | getName () | 
| Get name of energy correction formula.   | |
Friends | |
| std::istream & | operator>> (std::istream &in, JEnergyCorrection &object) | 
| Read energy correction from input.   | |
| std::ostream & | operator<< (std::ostream &out, const JEnergyCorrection &object) | 
| Write energy correction to output.   | |
Auxiliary class for correction of energy determined by JEnergy.cc.
Note that the correction is applied to 10log(E) with E in GeV. 
Definition at line 38 of file JEnergyCorrection.hh.
      
  | 
  inline | 
Default constructor.
No correction is applied to the energy.
Definition at line 46 of file JEnergyCorrection.hh.
      
  | 
  inline | 
Constructor.
| formula | formula | 
Definition at line 55 of file JEnergyCorrection.hh.
      
  | 
  inline | 
Constructor.
| fcn | pointer to ROOT formula | 
Definition at line 66 of file JEnergyCorrection.hh.
      
  | 
  inline | 
Check validity of pointer.
Definition at line 76 of file JEnergyCorrection.hh.
      
  | 
  inline | 
Get formula.
Definition at line 87 of file JEnergyCorrection.hh.
      
  | 
  inline | 
Set formula.
The input can be:
.root);.txt);| formula | formula | 
Definition at line 106 of file JEnergyCorrection.hh.
      
  | 
  inline | 
Get corrected energy.
| E | energy [GeV] | 
Definition at line 131 of file JEnergyCorrection.hh.
      
  | 
  inlinestatic | 
Get name of energy correction formula.
Definition at line 149 of file JEnergyCorrection.hh.
      
  | 
  inline | 
Load formula from file.
Supported file formats:
.root) containing TFormula object with name JEnergyCorrection::getName();.txt) containing TFormula compatible expression;Note that the method JEEP::getFullFilename() is used to search for a possible location of a file with the given name in the LD_LIBRARY_PATH environment variable.
| file_name | file name | 
Definition at line 167 of file JEnergyCorrection.hh.
      
  | 
  inline | 
Store formula to file.
Supported file formats:
.root) containing TFormula object with name JEnergyCorrection::getName;.txt) containing TFormula compatible expression;| file_name | file name | 
Definition at line 235 of file JEnergyCorrection.hh.
      
  | 
  friend | 
Read energy correction from input.
In case a file name is specified, the method load() is used to read the energy correction from the corresponding file.
| in | input stream | 
| object | energy correction | 
Definition at line 280 of file JEnergyCorrection.hh.
      
  | 
  friend | 
Write energy correction to output.
| out | output stream | 
| object | energy correction | 
Definition at line 299 of file JEnergyCorrection.hh.