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

◆ Sum2Algo()

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

Definition at line 198 of file IsoDeposit.h.

198 : sum2_(0) {}

Member Function Documentation

◆ operator+=() [1/2]

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

Definition at line 199 of file IsoDeposit.h.

References sum2_.

199 { sum2_ += deposit->second * deposit->second; }

◆ operator+=() [2/2]

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

Definition at line 200 of file IsoDeposit.h.

References sum2_.

200 { sum2_ += deposit * deposit; }

◆ result()

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

Definition at line 201 of file IsoDeposit.h.

References sum2_.

201 { return sum2_; }

Member Data Documentation

◆ sum2_

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

Definition at line 204 of file IsoDeposit.h.

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