CMS 3D CMS Logo

Public Member Functions | Private Attributes

EcalWeight Class Reference

#include <EcalWeight.h>

List of all members.

Public Member Functions

 EcalWeight ()
 EcalWeight (const double &awgt)
 EcalWeight (const EcalWeight &awgt)
bool operator!= (const EcalWeight &rhs) const
double operator() () const
bool operator< (const EcalWeight &rhs) const
bool operator<= (const EcalWeight &rhs) const
EcalWeightoperator= (const EcalWeight &rhs)
bool operator== (const EcalWeight &rhs) const
bool operator> (const EcalWeight &rhs) const
bool operator>= (const EcalWeight &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<EcalWeight>

Definition at line 14 of file EcalWeight.h.


Constructor & Destructor Documentation

EcalWeight::EcalWeight ( )

Author: Shahram Rahatlou, University of Rome & INFN Created: 22 Feb 2006

Id:
EcalWeight.cc,v 1.2 2006/02/23 16:56:35 rahatlou Exp

Definition at line 9 of file EcalWeight.cc.

References wgt_.

                       {
  wgt_ = 0.0;
}
EcalWeight::EcalWeight ( const double &  awgt)

Definition at line 13 of file EcalWeight.cc.

References wgt_.

                                         {
  wgt_ = awgt;
}
EcalWeight::EcalWeight ( const EcalWeight awgt)

Definition at line 17 of file EcalWeight.cc.

References wgt_.

                                             {
  wgt_ = awgt.wgt_;
}

Member Function Documentation

bool EcalWeight::operator!= ( const EcalWeight rhs) const [inline]

Definition at line 26 of file EcalWeight.h.

References wgt_.

{ return (wgt_ != rhs.wgt_); }
double EcalWeight::operator() ( ) const [inline]

Definition at line 22 of file EcalWeight.h.

References wgt_.

{ return wgt_; }
bool EcalWeight::operator< ( const EcalWeight rhs) const [inline]

Definition at line 27 of file EcalWeight.h.

References wgt_.

{ return (wgt_ < rhs.wgt_); }
bool EcalWeight::operator<= ( const EcalWeight rhs) const [inline]

Definition at line 29 of file EcalWeight.h.

References wgt_.

{ return (wgt_ <= rhs.wgt_); }
EcalWeight & EcalWeight::operator= ( const EcalWeight rhs)

Definition at line 21 of file EcalWeight.cc.

References wgt_.

                                                      {
   wgt_ = rhs.wgt_;
   return *this;
}
bool EcalWeight::operator== ( const EcalWeight rhs) const [inline]

Definition at line 25 of file EcalWeight.h.

References wgt_.

{ return (wgt_ == rhs.wgt_); }
bool EcalWeight::operator> ( const EcalWeight rhs) const [inline]

Definition at line 28 of file EcalWeight.h.

References wgt_.

{ return (wgt_ > rhs.wgt_); }
bool EcalWeight::operator>= ( const EcalWeight rhs) const [inline]

Definition at line 30 of file EcalWeight.h.

References wgt_.

{ return (wgt_ >= rhs.wgt_); }
void EcalWeight::setValue ( const double &  awgt) [inline]

Definition at line 24 of file EcalWeight.h.

References wgt_.

{ wgt_ = awgt; }
double EcalWeight::value ( ) const [inline]

Definition at line 21 of file EcalWeight.h.

References wgt_.

{ return wgt_; }

Member Data Documentation

double EcalWeight::wgt_ [private]