#include <JEvtToolkit.hh>
|
| | JShowerEnergy (double E) |
| | Constructor.
|
| |
| bool | operator() (const JFit &first, const JFit &second) const |
| | Comparison of fit results.
|
| |
| template<class T > |
| T | operator() (T __begin, T __end) const |
| | Select best fit result.
|
| |
◆ JShowerEnergy()
| JRECONSTRUCTION::JShowerEnergy::JShowerEnergy |
( |
double | E | ) |
|
|
inline |
◆ operator()() [1/2]
| bool JRECONSTRUCTION::JShowerEnergy::operator() |
( |
const JFit & | first, |
|
|
const JFit & | second ) const |
|
inline |
Comparison of fit results.
- Parameters
-
| first | first fit |
| second | second fit |
- Returns
- true if first fit better; else false
Definition at line 707 of file JReconstruction/JEvtToolkit.hh.
708 {
709 return fabs(this->
energy - first.getE()) < fabs(this->
energy - second.getE());
710 }
◆ operator()() [2/2]
template<class T >
| T JRECONSTRUCTION::JShowerEnergy::operator() |
( |
T | __begin, |
|
|
T | __end ) const |
|
inline |
Select best fit result.
- Parameters
-
| __begin | begin of fit results |
| __end | end of fit results |
- Returns
- best fit result
Definition at line 720 of file JReconstruction/JEvtToolkit.hh.
721 {
722 return std::min_element(__begin, __end, *this);
723 }
◆ energy
| double JRECONSTRUCTION::JShowerEnergy::energy |
|
protected |
The documentation for this class was generated from the following file: