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 261 of file FTLCluster.h.

References trackingPlots::other.

261  {
262  if (one.detid() == other.detid()) {
263  if (one.minHitRow() < other.minHitRow()) {
264  return true;
265  } else if (one.minHitRow() > other.minHitRow()) {
266  return false;
267  } else if (one.minHitCol() < other.minHitCol()) {
268  return true;
269  } else {
270  return false;
271  }
272  }
273  return one.detid() < other.detid();
274 }

◆ operator<() [2/3]

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

Definition at line 276 of file FTLCluster.h.

276 { return one.detid() < detid; }

◆ operator<() [3/3]

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

Definition at line 278 of file FTLCluster.h.

References trackingPlots::other.

278 { return detid < other.detid(); }