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::Sum2Algo Class Reference

#include <IsoDeposit.h>

Public Member Functions

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

Private Attributes

double sum2_
 

Detailed Description

Definition at line 196 of file IsoDeposit.h.

Constructor & Destructor Documentation

reco::IsoDeposit::Sum2Algo::Sum2Algo ( )
inline

Definition at line 198 of file IsoDeposit.h.

198 : sum2_(0) {}

Member Function Documentation

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

Definition at line 199 of file IsoDeposit.h.

References sum2_.

199 { sum2_ += deposit->second * deposit->second; }
void reco::IsoDeposit::Sum2Algo::operator+= ( double  deposit)
inline

Definition at line 200 of file IsoDeposit.h.

References sum2_.

200 { sum2_ += deposit * deposit; }
double reco::IsoDeposit::Sum2Algo::result ( ) const
inline

Definition at line 201 of file IsoDeposit.h.

References sum2_.

201 { return sum2_; }

Member Data Documentation

double reco::IsoDeposit::Sum2Algo::sum2_
private

Definition at line 204 of file IsoDeposit.h.

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