CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
reco::IsoDeposit::SumAlgo Class Reference

#include <IsoDeposit.h>

Public Member Functions

void operator+= (DepIterator deposit)
 
void operator+= (double deposit)
 
double result () const
 
 SumAlgo ()
 

Private Attributes

double sum_
 

Detailed Description

Definition at line 176 of file IsoDeposit.h.

Constructor & Destructor Documentation

reco::IsoDeposit::SumAlgo::SumAlgo ( )
inline

Definition at line 178 of file IsoDeposit.h.

178 : sum_(0) {}

Member Function Documentation

void reco::IsoDeposit::SumAlgo::operator+= ( DepIterator  deposit)
inline

Definition at line 179 of file IsoDeposit.h.

References sum_.

179 { sum_ += deposit->second; }
void reco::IsoDeposit::SumAlgo::operator+= ( double  deposit)
inline

Definition at line 180 of file IsoDeposit.h.

References sum_.

180 { sum_ += deposit; }
double reco::IsoDeposit::SumAlgo::result ( ) const
inline

Definition at line 181 of file IsoDeposit.h.

References sum_.

181 { return sum_; }

Member Data Documentation

double reco::IsoDeposit::SumAlgo::sum_
private

Definition at line 184 of file IsoDeposit.h.

Referenced by operator+=(), and result().