CMS 3D CMS Logo

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

◆ MaxAlgo()

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

Definition at line 208 of file IsoDeposit.h.

208 : max_(0) {}

Member Function Documentation

◆ operator+=() [1/2]

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

Definition at line 209 of file IsoDeposit.h.

209  {
210  if (deposit->second > max_)
211  max_ = deposit->second;
212  }

References max_.

◆ operator+=() [2/2]

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

Definition at line 213 of file IsoDeposit.h.

213  {
214  if (deposit > max_)
215  max_ = deposit;
216  }

References max_.

◆ result()

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

Definition at line 217 of file IsoDeposit.h.

217 { return max_; }

References max_.

Member Data Documentation

◆ max_

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

Definition at line 220 of file IsoDeposit.h.

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

reco::IsoDeposit::MaxAlgo::max_
double max_
Definition: IsoDeposit.h:220