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

Constructor & Destructor Documentation

◆ SumAlgo()

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

Definition at line 178 of file IsoDeposit.h.

178 : sum_(0) {}

Member Function Documentation

◆ operator+=() [1/2]

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

Definition at line 179 of file IsoDeposit.h.

179 { sum_ += deposit->second; }

References sum_.

◆ operator+=() [2/2]

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

Definition at line 180 of file IsoDeposit.h.

180 { sum_ += deposit; }

References sum_.

◆ result()

double reco::IsoDeposit::SumAlgo::result ( ) const
inline

Definition at line 181 of file IsoDeposit.h.

181 { return sum_; }

References sum_.

Member Data Documentation

◆ sum_

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

Definition at line 184 of file IsoDeposit.h.

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

reco::IsoDeposit::SumAlgo::sum_
double sum_
Definition: IsoDeposit.h:184