CMS 3D CMS Logo

Public Member Functions

HBHETimeProfileStatusBitSetter::compare_digi_energy Struct Reference

Inheritance diagram for HBHETimeProfileStatusBitSetter::compare_digi_energy:
binary_function

List of all members.

Public Member Functions

bool operator() (const HBHEDataFrame &x, const HBHEDataFrame &y)

Detailed Description

Definition at line 54 of file HBHETimeProfileStatusBitSetter.h.


Member Function Documentation

bool HBHETimeProfileStatusBitSetter::compare_digi_energy::operator() ( const HBHEDataFrame x,
const HBHEDataFrame y 
) [inline]

Definition at line 55 of file HBHETimeProfileStatusBitSetter.h.

References i, HcalQIESample::nominal_fC(), HBHEDataFrame::sample(), and HBHEDataFrame::size().

                                                                    {
      double TotalX=0, TotalY=0;
      for(int i=0; i!=x.size(); TotalX += x.sample(i++).nominal_fC());
      for(int i=0; i!=y.size(); TotalY += y.sample(i++).nominal_fC());

      return (TotalX>TotalY) ;

    }