CMS 3D CMS Logo

EcalWeight Class Reference

Author: Shahram Rahatlou, University of Rome & INFN This is workaround in order to be able to use vector<double> for ECAL weights. More...

#include <CondFormats/EcalObjects/interface/EcalWeight.h>

List of all members.

Public Member Functions

 EcalWeight (const EcalWeight &awgt)
 EcalWeight (const double &awgt)
 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
.
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_.

00009                        {
00010   wgt_ = 0.0;
00011 }

EcalWeight::EcalWeight ( const double &  awgt  ) 

Definition at line 13 of file EcalWeight.cc.

References wgt_.

00013                                          {
00014   wgt_ = awgt;
00015 }

EcalWeight::EcalWeight ( const EcalWeight awgt  ) 

Definition at line 17 of file EcalWeight.cc.

References wgt_.

00017                                              {
00018   wgt_ = awgt.wgt_;
00019 }


Member Function Documentation

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

Definition at line 26 of file EcalWeight.h.

References wgt_.

00026 { return (wgt_ != rhs.wgt_); }

double EcalWeight::operator() (  )  const [inline]

Definition at line 22 of file EcalWeight.h.

References wgt_.

00022 { return wgt_; }

bool EcalWeight::operator< ( const EcalWeight rhs  )  const [inline]

Definition at line 27 of file EcalWeight.h.

References wgt_.

00027 { return (wgt_ < rhs.wgt_); }

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

Definition at line 29 of file EcalWeight.h.

References wgt_.

00029 { return (wgt_ <= rhs.wgt_); }

EcalWeight & EcalWeight::operator= ( const EcalWeight rhs  ) 

Definition at line 21 of file EcalWeight.cc.

References wgt_.

00021                                                       {
00022    wgt_ = rhs.wgt_;
00023    return *this;
00024 }

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

Definition at line 25 of file EcalWeight.h.

References wgt_.

00025 { return (wgt_ == rhs.wgt_); }

bool EcalWeight::operator> ( const EcalWeight rhs  )  const [inline]

Definition at line 28 of file EcalWeight.h.

References wgt_.

00028 { return (wgt_ > rhs.wgt_); }

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

Definition at line 30 of file EcalWeight.h.

References wgt_.

00030 { return (wgt_ >= rhs.wgt_); }

void EcalWeight::setValue ( const double &  awgt  )  [inline]

Definition at line 24 of file EcalWeight.h.

References wgt_.

00024 { wgt_ = awgt; }

double EcalWeight::value (  )  const [inline]

Definition at line 21 of file EcalWeight.h.

References wgt_.

00021 { return wgt_; }


Member Data Documentation

double EcalWeight::wgt_ [private]

Definition at line 33 of file EcalWeight.h.

Referenced by EcalWeight(), operator!=(), operator()(), operator<(), operator<=(), operator=(), operator==(), operator>(), operator>=(), setValue(), and value().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:20:03 2009 for CMSSW by  doxygen 1.5.4