CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
GenLumiInfoProduct::XSec Struct Reference

#include <GenLumiInfoProduct.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 v, double e=-1.)
 
 XSec (const XSec &other)
 

Private Attributes

double error_
 
double value_
 

Detailed Description

Definition at line 31 of file GenLumiInfoProduct.h.

Constructor & Destructor Documentation

GenLumiInfoProduct::XSec::XSec ( )
inline

Definition at line 33 of file GenLumiInfoProduct.h.

GenLumiInfoProduct::XSec::XSec ( double  v,
double  e = -1. 
)
inline
GenLumiInfoProduct::XSec::XSec ( const XSec other)
inline

Definition at line 36 of file GenLumiInfoProduct.h.

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

Member Function Documentation

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

Definition at line 40 of file GenLumiInfoProduct.h.

References error_.

Referenced by GenXSecAnalyzer::compute(), and GenXSecAnalyzer::final_xsec_error().

40 { return error_; }
bool GenLumiInfoProduct::XSec::hasError ( void  ) const
inline

Definition at line 43 of file GenLumiInfoProduct.h.

References error_.

43 { return error_ >= 0.; }
bool GenLumiInfoProduct::XSec::isSet ( ) const
inline

Definition at line 42 of file GenLumiInfoProduct.h.

References value_.

Referenced by operator bool().

42 { return value_ >= 0.; }
GenLumiInfoProduct::XSec::operator bool ( ) const
inline

Definition at line 46 of file GenLumiInfoProduct.h.

References isSet().

46 { return isSet(); }
GenLumiInfoProduct::XSec::operator double ( ) const
inline

Definition at line 45 of file GenLumiInfoProduct.h.

References value_.

45 { return value_; }
bool GenLumiInfoProduct::XSec::operator!= ( const XSec other) const
inline

Definition at line 50 of file GenLumiInfoProduct.h.

50 { return !(*this == other); }
bool GenLumiInfoProduct::XSec::operator== ( const XSec other) const
inline

Definition at line 48 of file GenLumiInfoProduct.h.

References error_, and value_.

49  { return value_ == other.value_ && error_ == other.error_; }
double GenLumiInfoProduct::XSec::value ( void  ) const
inline

Definition at line 39 of file GenLumiInfoProduct.h.

References value_.

Referenced by GenXSecAnalyzer::compute(), and GenXSecAnalyzer::final_xsec_value().

39 { return value_; }

Member Data Documentation

double GenLumiInfoProduct::XSec::error_
private

Definition at line 53 of file GenLumiInfoProduct.h.

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

double GenLumiInfoProduct::XSec::value_
private

Definition at line 53 of file GenLumiInfoProduct.h.

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