LCOV - code coverage report
Current view: top level - TEvtGen/EvtGen/EvtGenBase - EvtPoint1D.cpp (source / functions) Hit Total Coverage
Test: coverage.info Lines: 0 9 0.0 %
Date: 2016-06-14 17:26:59 Functions: 0 9 0.0 %

          Line data    Source code
       1             : #include "EvtGenBase/EvtPatches.hh"
       2             : /*******************************************************************************
       3             :  * Project: BaBar detector at the SLAC PEP-II B-factory
       4             :  * Package: EvtGenBase
       5             :  *    File: $Id: EvtPoint1D.cpp,v 1.3 2009-03-16 15:44:41 robbep Exp $
       6             :  *  Author: Alexei Dvoretskii, dvoretsk@slac.stanford.edu, 2001-2002
       7             :  *
       8             :  * Copyright (C) 2002 Caltech
       9             :  *******************************************************************************/
      10             : 
      11             : // Point on a finite 1-D interval. isValid shows whether for a given specification,
      12             : // the coordinate _value is inside the interval defined by _min, _max.
      13             : 
      14             : #include <stdio.h>
      15             : #include "EvtGenBase/EvtPoint1D.hh"
      16             : 
      17             : EvtPoint1D::EvtPoint1D()
      18           0 :   : _min(0.), _max(-1.), _value(0.), _valid(false)
      19           0 : {}
      20             : 
      21             : EvtPoint1D::EvtPoint1D(double value)
      22           0 :   : _min(0.), _max(-1.), _value(value), _valid(true)
      23           0 : {}
      24             : 
      25             : EvtPoint1D::EvtPoint1D(double min, double max, double value)
      26           0 :   : _min(min), _max(max), _value(value), _valid((_min <= _value && _value <= _max) ? true : false)
      27           0 : {} 
      28             :   
      29             : EvtPoint1D::~EvtPoint1D()
      30           0 : {}
      31             : 
      32             : void EvtPoint1D::print() const
      33             : {
      34           0 :   printf("%f (%f : %f)\n",_value,_min,_max);
      35           0 : }
      36             : 

Generated by: LCOV version 1.11