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

#include <IsoDeposit.h>

Public Member Functions

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

Private Attributes

double max_
 

Detailed Description

Definition at line 206 of file IsoDeposit.h.

Constructor & Destructor Documentation

reco::IsoDeposit::MaxAlgo::MaxAlgo ( )
inline

Definition at line 208 of file IsoDeposit.h.

208 : max_(0) {}

Member Function Documentation

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

Definition at line 209 of file IsoDeposit.h.

References max_.

209  {
210  if (deposit->second > max_)
211  max_ = deposit->second;
212  }
void reco::IsoDeposit::MaxAlgo::operator+= ( double  deposit)
inline

Definition at line 213 of file IsoDeposit.h.

References max_.

213  {
214  if (deposit > max_)
215  max_ = deposit;
216  }
double reco::IsoDeposit::MaxAlgo::result ( ) const
inline

Definition at line 217 of file IsoDeposit.h.

References max_.

217 { return max_; }

Member Data Documentation

double reco::IsoDeposit::MaxAlgo::max_
private

Definition at line 220 of file IsoDeposit.h.

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