Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
/****************************************************************************
*
* This is a part of TOTEM offline software.
* Authors:
*   Jan Kašpar (jan.kaspar@gmail.com)
*
****************************************************************************/

#include "DataFormats/CTPPSReco/interface/TotemRPUVPattern.h"

//----------------------------------------------------------------------------------------------------

bool operator<(const TotemRPUVPattern &l, const TotemRPUVPattern &r) {
  if (l.projection_ < r.projection_)
    return true;
  if (l.projection_ > r.projection_)
    return false;

  if (l.a_ < r.a_)
    return true;
  if (l.a_ > r.a_)
    return false;

  if (l.b_ < r.b_)
    return true;
  if (l.b_ > r.b_)
    return false;

  if (l.w_ < r.w_)
    return true;
  if (l.w_ > r.w_)
    return false;

  if (l.fittable_ < r.fittable_)
    return true;
  if (l.fittable_ > r.fittable_)
    return false;

  return false;
}