LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
nbw::skzpReweight::LessThan Struct Reference

Public Member Functions

bool operator() (const mapkey lhs, const mapkey rhs) const
 

Detailed Description

Definition at line 90 of file skzpReweight.h.

Member Function Documentation

bool nbw::skzpReweight::LessThan::operator() ( const mapkey  lhs,
const mapkey  rhs 
) const
inline

Definition at line 92 of file skzpReweight.h.

References nbw::skzpReweight::mapkey::BeamDex, nbw::skzpReweight::mapkey::DetDex, nbw::skzpReweight::mapkey::EffDex, and nbw::skzpReweight::mapkey::NuDex.

93  {
94  if (lhs.NuDex < rhs.NuDex)
95  return true;
96  else if (lhs.NuDex == rhs.NuDex)
97  {
98  if(lhs.DetDex < rhs.DetDex)
99  return true;
100  else if (lhs.DetDex == rhs.DetDex)
101  {
102  if(lhs.BeamDex < rhs.BeamDex)
103  return true;
104  else if (lhs.BeamDex == rhs.BeamDex)
105  {
106  if(lhs.EffDex < rhs.EffDex)
107  return true; //(else return false)
108  }
109  }
110  }
111  return false;
112  }

The documentation for this struct was generated from the following file: