CMS 3D CMS Logo

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.

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

Definition at line 200 of file IsoDeposit.h.

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

Definition at line 201 of file IsoDeposit.h.

201 { return sum2_; }

Member Data Documentation

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

Definition at line 204 of file IsoDeposit.h.