CMS 3D CMS Logo

Public Member Functions | Private Attributes

GenRunInfoProduct::XSec Struct Reference

#include <GenRunInfoProduct.h>

List of all members.

Public Member Functions

double error () const
bool hasError () const
bool isSet () const
 operator bool () const
 operator double () const
bool operator!= (const XSec &other) const
bool operator== (const XSec &other) const
double value () const
 XSec ()
 XSec (const XSec &other)
 XSec (double value, double error=-1.)

Private Attributes

double error_
double value_

Detailed Description

Definition at line 33 of file GenRunInfoProduct.h.


Constructor & Destructor Documentation

GenRunInfoProduct::XSec::XSec ( ) [inline]

Definition at line 35 of file GenRunInfoProduct.h.

: value_(-1.), error_(-1.) {}
GenRunInfoProduct::XSec::XSec ( double  value,
double  error = -1. 
) [inline]

Definition at line 36 of file GenRunInfoProduct.h.

GenRunInfoProduct::XSec::XSec ( const XSec other) [inline]

Definition at line 38 of file GenRunInfoProduct.h.

                                        :
                        value_(other.value_), error_(other.error_) {}

Member Function Documentation

double GenRunInfoProduct::XSec::error ( ) const [inline]

Definition at line 42 of file GenRunInfoProduct.h.

References error_.

{ return error_; }
bool GenRunInfoProduct::XSec::hasError ( void  ) const [inline]

Definition at line 45 of file GenRunInfoProduct.h.

References error_.

{ return error_ >= 0.; }
bool GenRunInfoProduct::XSec::isSet ( ) const [inline]

Definition at line 44 of file GenRunInfoProduct.h.

References value_.

Referenced by operator bool().

{ return value_ >= 0.; }
GenRunInfoProduct::XSec::operator bool ( ) const [inline]

Definition at line 48 of file GenRunInfoProduct.h.

References isSet().

{ return isSet(); }
GenRunInfoProduct::XSec::operator double ( ) const [inline]

Definition at line 47 of file GenRunInfoProduct.h.

References value_.

{ return value_; }
bool GenRunInfoProduct::XSec::operator!= ( const XSec other) const [inline]

Definition at line 52 of file GenRunInfoProduct.h.

{ return !(*this == other); }
bool GenRunInfoProduct::XSec::operator== ( const XSec other) const [inline]

Definition at line 50 of file GenRunInfoProduct.h.

References error_, and value_.

                { return value_ == other.value_ && error_ == other.error_; }
double GenRunInfoProduct::XSec::value ( void  ) const [inline]

Definition at line 41 of file GenRunInfoProduct.h.

References value_.

Referenced by GenRunInfoProduct::crossSection().

{ return value_; }

Member Data Documentation

Definition at line 55 of file GenRunInfoProduct.h.

Referenced by error(), hasError(), and operator==().

Definition at line 55 of file GenRunInfoProduct.h.

Referenced by isSet(), operator double(), operator==(), and value().