Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:04:01

0001 /****************************************************************************
0002 *
0003 * This is a part of TOTEM offline software.
0004 * Authors:
0005 *   Jan Kašpar (jan.kaspar@gmail.com)
0006 *
0007 ****************************************************************************/
0008 
0009 #include "DataFormats/CTPPSReco/interface/TotemRPUVPattern.h"
0010 
0011 //----------------------------------------------------------------------------------------------------
0012 
0013 bool operator<(const TotemRPUVPattern &l, const TotemRPUVPattern &r) {
0014   if (l.projection_ < r.projection_)
0015     return true;
0016   if (l.projection_ > r.projection_)
0017     return false;
0018 
0019   if (l.a_ < r.a_)
0020     return true;
0021   if (l.a_ > r.a_)
0022     return false;
0023 
0024   if (l.b_ < r.b_)
0025     return true;
0026   if (l.b_ > r.b_)
0027     return false;
0028 
0029   if (l.w_ < r.w_)
0030     return true;
0031   if (l.w_ > r.w_)
0032     return false;
0033 
0034   if (l.fittable_ < r.fittable_)
0035     return true;
0036   if (l.fittable_ > r.fittable_)
0037     return false;
0038 
0039   return false;
0040 }