|
Jpp 19.3.0-rc.5
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 x) const |
| Get corrected value. | |
| 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 37 of file JEnergyCorrection.hh.
|
inline |
Default constructor.
No correction is applied to the energy.
Definition at line 45 of file JEnergyCorrection.hh.
|
inline |
Constructor.
| formula | formula |
Definition at line 54 of file JEnergyCorrection.hh.
|
inline |
Constructor.
| fcn | pointer to ROOT formula |
Definition at line 65 of file JEnergyCorrection.hh.
|
inline |
Check validity of pointer.
Definition at line 75 of file JEnergyCorrection.hh.
|
inline |
Get formula.
Definition at line 86 of file JEnergyCorrection.hh.
|
inline |
Set formula.
The input can be:
.root);.txt);| formula | formula |
Definition at line 105 of file JEnergyCorrection.hh.
|
inline |
Get corrected value.
| x | value |
Definition at line 130 of file JEnergyCorrection.hh.
|
inlinestatic |
Get name of energy correction formula.
Definition at line 144 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 162 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 231 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 276 of file JEnergyCorrection.hh.
|
friend |
Write energy correction to output.
| out | output stream |
| object | energy correction |
Definition at line 295 of file JEnergyCorrection.hh.