Jpp  17.3.2
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 663 of file JReconstruction/JEvtToolkit.hh.

Constructor & Destructor Documentation

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

Constructor.

Parameters
Ereference energy

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

671  {
672  this->energy = E;
673  }
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 682 of file JReconstruction/JEvtToolkit.hh.

683  {
684  return fabs(this->energy - first.getE()) < fabs(this->energy - second.getE());
685  }
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 695 of file JReconstruction/JEvtToolkit.hh.

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

Member Data Documentation

double JRECONSTRUCTION::JShowerEnergy::energy
protected

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


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