CMS 3D CMS Logo

Public Member Functions | Private Attributes

reco::IsoDeposit::MeanDRAlgo Class Reference

#include <IsoDeposit.h>

List of all members.

Public Member Functions

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

Private Attributes

double count_
double sum_

Detailed Description

Definition at line 203 of file IsoDeposit.h.


Constructor & Destructor Documentation

reco::IsoDeposit::MeanDRAlgo::MeanDRAlgo ( ) [inline]

Definition at line 205 of file IsoDeposit.h.

: sum_(0.),count_(0.) {}

Member Function Documentation

void reco::IsoDeposit::MeanDRAlgo::operator+= ( DepIterator  deposit) [inline]

Definition at line 206 of file IsoDeposit.h.

References count_, and sum_.

{sum_ +=deposit->first.deltaR; count_+=1.0;   }  
double reco::IsoDeposit::MeanDRAlgo::result ( ) const [inline]

Definition at line 207 of file IsoDeposit.h.

References count_, max(), and sum_.

{ return sum_/std::max(1.,count_); }

Member Data Documentation

Definition at line 210 of file IsoDeposit.h.

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

Definition at line 209 of file IsoDeposit.h.

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