CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
HBHETimeProfileStatusBitSetter::compare_digi_energy Struct Reference
Inheritance diagram for HBHETimeProfileStatusBitSetter::compare_digi_energy:

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().

55  {
56  double TotalX=0, TotalY=0;
57  for(int i=0; i!=x.size(); TotalX += x.sample(i++).nominal_fC());
58  for(int i=0; i!=y.size(); TotalY += y.sample(i++).nominal_fC());
59 
60  return (TotalX>TotalY) ;
61 
62  }
int i
Definition: DBlmapReader.cc:9
int size() const
total number of samples in the digi
Definition: HBHEDataFrame.h:26
const HcalQIESample & sample(int i) const
access a sample
Definition: HBHEDataFrame.h:39
double nominal_fC() const
get the nominal FC (no calibrations applied)