test
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
ESWeight Class Reference

#include <ESWeight.h>

Public Member Functions

 ESWeight ()
 
 ESWeight (const double &awgt)
 
 ESWeight (const ESWeight &awgt)
 
bool operator!= (const ESWeight &rhs) const
 
double operator() () const
 
bool operator< (const ESWeight &rhs) const
 
bool operator<= (const ESWeight &rhs) const
 
ESWeightoperator= (const ESWeight &rhs)
 
bool operator== (const ESWeight &rhs) const
 
bool operator> (const ESWeight &rhs) const
 
bool operator>= (const ESWeight &rhs) const
 
void setValue (const double &awgt)
 
double value () const
 

Private Attributes

double wgt_
 

Detailed Description

Author: Shahram Rahatlou, University of Rome & INFN This is workaround in order to be able to use vector<double> for ECAL weights. because of a conflict I need to define this trivial class so that I can use POOL to store vector<ESWeight>

Definition at line 14 of file ESWeight.h.

Constructor & Destructor Documentation

ESWeight::ESWeight ( )

Definition at line 3 of file ESWeight.cc.

References wgt_.

3  {
4  wgt_ = 0.0;
5 }
double wgt_
Definition: ESWeight.h:33
ESWeight::ESWeight ( const double &  awgt)

Definition at line 7 of file ESWeight.cc.

References wgt_.

7  {
8  wgt_ = awgt;
9 }
double wgt_
Definition: ESWeight.h:33
ESWeight::ESWeight ( const ESWeight awgt)

Definition at line 11 of file ESWeight.cc.

References wgt_.

11  {
12  wgt_ = awgt.wgt_;
13 }
double wgt_
Definition: ESWeight.h:33

Member Function Documentation

bool ESWeight::operator!= ( const ESWeight rhs) const
inline

Definition at line 26 of file ESWeight.h.

References wgt_.

26 { return (wgt_ != rhs.wgt_); }
double wgt_
Definition: ESWeight.h:33
double ESWeight::operator() ( ) const
inline

Definition at line 22 of file ESWeight.h.

References wgt_.

22 { return wgt_; }
double wgt_
Definition: ESWeight.h:33
bool ESWeight::operator< ( const ESWeight rhs) const
inline

Definition at line 27 of file ESWeight.h.

References wgt_.

27 { return (wgt_ < rhs.wgt_); }
double wgt_
Definition: ESWeight.h:33
bool ESWeight::operator<= ( const ESWeight rhs) const
inline

Definition at line 29 of file ESWeight.h.

References wgt_.

29 { return (wgt_ <= rhs.wgt_); }
double wgt_
Definition: ESWeight.h:33
ESWeight & ESWeight::operator= ( const ESWeight rhs)

Definition at line 15 of file ESWeight.cc.

References wgt_.

15  {
16  wgt_ = rhs.wgt_;
17  return *this;
18 }
double wgt_
Definition: ESWeight.h:33
bool ESWeight::operator== ( const ESWeight rhs) const
inline

Definition at line 25 of file ESWeight.h.

References wgt_.

25 { return (wgt_ == rhs.wgt_); }
double wgt_
Definition: ESWeight.h:33
bool ESWeight::operator> ( const ESWeight rhs) const
inline

Definition at line 28 of file ESWeight.h.

References wgt_.

28 { return (wgt_ > rhs.wgt_); }
double wgt_
Definition: ESWeight.h:33
bool ESWeight::operator>= ( const ESWeight rhs) const
inline

Definition at line 30 of file ESWeight.h.

References wgt_.

30 { return (wgt_ >= rhs.wgt_); }
double wgt_
Definition: ESWeight.h:33
void ESWeight::setValue ( const double &  awgt)
inline
double ESWeight::value ( ) const
inline

Member Data Documentation

double ESWeight::wgt_
private