CMS 3D CMS Logo

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 166 of file IsoDeposit.h.

Constructor & Destructor Documentation

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

Definition at line 168 of file IsoDeposit.h.

168 : sum_(0) {}

Member Function Documentation

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

Definition at line 169 of file IsoDeposit.h.

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

Definition at line 170 of file IsoDeposit.h.

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

Definition at line 171 of file IsoDeposit.h.

171 { return sum_; }

Member Data Documentation

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

Definition at line 173 of file IsoDeposit.h.