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

Private Attributes

double error_
 
double value_
 

Detailed Description

Definition at line 32 of file GenRunInfoProduct.h.

Constructor & Destructor Documentation

◆ XSec() [1/3]

GenRunInfoProduct::XSec::XSec ( )
inline

Definition at line 34 of file GenRunInfoProduct.h.

34 : value_(-1.), error_(-1.) {}

◆ XSec() [2/3]

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

Definition at line 35 of file GenRunInfoProduct.h.

35 : value_(value), error_(error) {}

◆ XSec() [3/3]

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

Definition at line 36 of file GenRunInfoProduct.h.

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

Member Function Documentation

◆ error()

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

◆ hasError()

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

Definition at line 42 of file GenRunInfoProduct.h.

42 { return error_ >= 0.; }

References error_.

◆ isSet()

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

Definition at line 41 of file GenRunInfoProduct.h.

41 { return value_ >= 0.; }

References value_.

Referenced by operator bool().

◆ operator bool()

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

Definition at line 45 of file GenRunInfoProduct.h.

45 { return isSet(); }

References isSet().

◆ operator double()

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

Definition at line 44 of file GenRunInfoProduct.h.

44 { return value_; }

References value_.

◆ operator!=()

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

Definition at line 48 of file GenRunInfoProduct.h.

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

References trackingPlots::other.

◆ operator==()

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

Definition at line 47 of file GenRunInfoProduct.h.

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

References error_, trackingPlots::other, and value_.

◆ value()

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

Member Data Documentation

◆ error_

double GenRunInfoProduct::XSec::error_
private

Definition at line 51 of file GenRunInfoProduct.h.

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

◆ value_

double GenRunInfoProduct::XSec::value_
private

Definition at line 51 of file GenRunInfoProduct.h.

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

GenRunInfoProduct::XSec::error_
double error_
Definition: GenRunInfoProduct.h:51
GenRunInfoProduct::XSec::value_
double value_
Definition: GenRunInfoProduct.h:51
trackingPlots.other
other
Definition: trackingPlots.py:1460
GenRunInfoProduct::XSec::isSet
bool isSet() const
Definition: GenRunInfoProduct.h:41
value
Definition: value.py:1
GenRunInfoProduct::XSec::error
double error() const
Definition: GenRunInfoProduct.h:39