CMS 3D CMS Logo

Functions
TotemRPLocalTrack.cc File Reference
#include "DataFormats/CTPPSReco/interface/TotemRPLocalTrack.h"

Go to the source code of this file.

Functions

bool operator< (const TotemRPLocalTrack &l, const TotemRPLocalTrack &r)
 

Function Documentation

◆ operator<()

bool operator< ( const TotemRPLocalTrack l,
const TotemRPLocalTrack r 
)

Definition at line 87 of file TotemRPLocalTrack.cc.

References TotemRPLocalTrack::dimension, mps_fire::i, cmsLHEtoEOSManager::l, and alignCSCRings::r.

87  {
88  if (l.z0_ < r.z0_)
89  return true;
90  if (l.z0_ > r.z0_)
91  return true;
92 
93  for (int i = 0; i < TotemRPLocalTrack::dimension; ++i) {
94  if (l.track_params_vector_[i] < r.track_params_vector_[i])
95  return true;
96  if (l.track_params_vector_[i] > r.track_params_vector_[i])
97  return true;
98  }
99 
100  return false;
101 }
static const int dimension
< parameter vector size