CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
GenRunInfoProduct::XSec Struct Reference

#include <GenRunInfoProduct.h>

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 (double value, double error=-1.)
 

Private Attributes

double error_
 
double value_
 

Detailed Description

Definition at line 31 of file GenRunInfoProduct.h.

Constructor & Destructor Documentation

◆ XSec() [1/2]

GenRunInfoProduct::XSec::XSec ( )
inline

Definition at line 33 of file GenRunInfoProduct.h.

◆ XSec() [2/2]

GenRunInfoProduct::XSec::XSec ( double  value,
double  error = -1. 
)
inline

Definition at line 34 of file GenRunInfoProduct.h.

Member Function Documentation

◆ error()

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

◆ hasError()

bool GenRunInfoProduct::XSec::hasError ( void  ) const
inline

Definition at line 40 of file GenRunInfoProduct.h.

References error_.

40 { return error_ >= 0.; }

◆ isSet()

bool GenRunInfoProduct::XSec::isSet ( ) const
inline

Definition at line 39 of file GenRunInfoProduct.h.

References value_.

Referenced by operator bool().

39 { return value_ >= 0.; }

◆ operator bool()

GenRunInfoProduct::XSec::operator bool ( ) const
inline

Definition at line 43 of file GenRunInfoProduct.h.

References isSet().

43 { return isSet(); }

◆ operator double()

GenRunInfoProduct::XSec::operator double ( ) const
inline

Definition at line 42 of file GenRunInfoProduct.h.

References value_.

42 { return value_; }

◆ operator!=()

bool GenRunInfoProduct::XSec::operator!= ( const XSec other) const
inline

Definition at line 46 of file GenRunInfoProduct.h.

References trackingPlots::other.

46 { return !(*this == other); }

◆ operator==()

bool GenRunInfoProduct::XSec::operator== ( const XSec other) const
inline

Definition at line 45 of file GenRunInfoProduct.h.

References error_, trackingPlots::other, and value_.

45 { return value_ == other.value_ && error_ == other.error_; }

◆ value()

double GenRunInfoProduct::XSec::value ( void  ) const
inline

Member Data Documentation

◆ error_

double GenRunInfoProduct::XSec::error_
private

Definition at line 49 of file GenRunInfoProduct.h.

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

◆ value_

double GenRunInfoProduct::XSec::value_
private

Definition at line 49 of file GenRunInfoProduct.h.

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