BOSS 7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtPoint1D Class Reference

#include <EvtPoint1D.hh>

Public Member Functions

 EvtPoint1D ()
 
 EvtPoint1D (double value)
 
 EvtPoint1D (double min, double max, double value)
 
 ~EvtPoint1D ()
 
bool isValid () const
 
double value () const
 
void print () const
 

Detailed Description

Definition at line 16 of file EvtPoint1D.hh.

Constructor & Destructor Documentation

◆ EvtPoint1D() [1/3]

EvtPoint1D::EvtPoint1D ( )

Definition at line 17 of file EvtPoint1D.cc.

18 : _min(0.), _max(-1.), _value(0.), _valid(false)
19{}

◆ EvtPoint1D() [2/3]

EvtPoint1D::EvtPoint1D ( double  value)

Definition at line 21 of file EvtPoint1D.cc.

22 : _min(0.), _max(-1.), _value(value), _valid(true)
23{}
double value() const
Definition: EvtPoint1D.hh:29

◆ EvtPoint1D() [3/3]

EvtPoint1D::EvtPoint1D ( double  min,
double  max,
double  value 
)

Definition at line 25 of file EvtPoint1D.cc.

26 : _min(min), _max(max), _value(value), _valid((_min <= _value && _value <= _max) ? true : false)
27{}

◆ ~EvtPoint1D()

EvtPoint1D::~EvtPoint1D ( )

Definition at line 29 of file EvtPoint1D.cc.

30{}

Member Function Documentation

◆ isValid()

bool EvtPoint1D::isValid ( ) const
inline

Definition at line 24 of file EvtPoint1D.hh.

25 {
26 return _valid;
27 }

◆ print()

void EvtPoint1D::print ( ) const

Definition at line 32 of file EvtPoint1D.cc.

33{
34 printf("%f (%f : %f)\n",_value,_min,_max);
35}

◆ value()

double EvtPoint1D::value ( ) const
inline

Definition at line 29 of file EvtPoint1D.hh.

30 {
31 return _value;
32 }

Referenced by EvtMassAmp::amplitude(), and EvtRelBreitWignerBarrierFact::getRandMass().


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