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

Constructor & Destructor Documentation

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

Constructor.

Parameters
Ereference energy

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

736  {
737  this->energy = E;
738  }
then usage $script[input file[working directory[option]]] nWhere option can be 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 747 of file JReconstruction/JEvtToolkit.hh.

748  {
749  return abs(this->energy - first.getE()) < abs(this->energy - second.getE());
750  }
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 760 of file JReconstruction/JEvtToolkit.hh.

761  {
762  return std::min_element(__begin, __end, *this);
763  }

Member Data Documentation

double JRECONSTRUCTION::JShowerEnergy::energy
protected

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


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