Jpp  15.0.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
JRECONSTRUCTION::JShowerEnergy Class Reference

#include <JEvtToolkit.hh>

Public Member Functions

 JShowerEnergy (double E)
 Constructor. More...
 
bool operator() (const JFit &first, const JFit &second) const
 Comparison of fit results. More...
 
template<class T >
T operator() (T __begin, T __end) const
 Select best fit result. More...
 

Protected Attributes

double energy
 

Detailed Description

Definition at line 662 of file JReconstruction/JEvtToolkit.hh.

Constructor & Destructor Documentation

JRECONSTRUCTION::JShowerEnergy::JShowerEnergy ( double  E)
inline

Constructor.

Parameters
Ereference energy

Definition at line 669 of file JReconstruction/JEvtToolkit.hh.

670  {
671  this->energy = E;
672  }
then usage E
Definition: JMuonPostfit.sh:35

Member Function Documentation

bool JRECONSTRUCTION::JShowerEnergy::operator() ( const JFit first,
const JFit second 
) const
inline

Comparison of fit results.

Parameters
firstfirst fit
secondsecond fit
Returns
true if first fit better; else false

Definition at line 681 of file JReconstruction/JEvtToolkit.hh.

682  {
683  return abs(this->energy - first.getE()) < abs(this->energy - second.getE());
684  }
then echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first
template<class T >
T JRECONSTRUCTION::JShowerEnergy::operator() ( T  __begin,
T  __end 
) const
inline

Select best fit result.

Parameters
__beginbegin of fit results
__endend of fit results
Returns
best fit result

Definition at line 694 of file JReconstruction/JEvtToolkit.hh.

695  {
696  return std::min_element(__begin, __end, *this);
697  }

Member Data Documentation

double JRECONSTRUCTION::JShowerEnergy::energy
protected

Definition at line 700 of file JReconstruction/JEvtToolkit.hh.


The documentation for this class was generated from the following file: