CMS 3D CMS Logo

Classes | Functions
FTLCluster.h File Reference
#include <cmath>
#include <vector>
#include <cstdint>
#include <cassert>
#include <algorithm>
#include <numeric>
#include "DataFormats/DetId/interface/DetId.h"

Go to the source code of this file.

Classes

class  FTLCluster
 
class  FTLCluster::FTLHit
 
class  FTLCluster::FTLHitPos
 
class  FTLCluster::Shift
 

Functions

bool operator< (const FTLCluster &one, const FTLCluster &other)
 
bool operator< (const FTLCluster &one, const uint32_t &detid)
 
bool operator< (const uint32_t &detid, const FTLCluster &other)
 

Function Documentation

◆ operator<() [1/3]

bool operator< ( const FTLCluster one,
const FTLCluster other 
)
inline

Definition at line 273 of file FTLCluster.h.

References trackingPlots::other.

273  {
274  if (one.detid() == other.detid()) {
275  if (one.minHitRow() < other.minHitRow()) {
276  return true;
277  } else if (one.minHitRow() > other.minHitRow()) {
278  return false;
279  } else if (one.minHitCol() < other.minHitCol()) {
280  return true;
281  } else {
282  return false;
283  }
284  }
285  return one.detid() < other.detid();
286 }

◆ operator<() [2/3]

bool operator< ( const FTLCluster one,
const uint32_t &  detid 
)
inline

◆ operator<() [3/3]

bool operator< ( const uint32_t &  detid,
const FTLCluster other 
)
inline