CMS 3D CMS Logo

Classes | Functions
FTLCluster.h File Reference
#include <cmath>
#include <vector>
#include <cstdint>
#include <cassert>
#include <algorithm>
#include <numeric>
#include <functional>
#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

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

Definition at line 261 of file FTLCluster.h.

References FTLCluster::detid(), FTLCluster::minHitCol(), and FTLCluster::minHitRow().

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 }
int minHitRow() const
Definition: FTLCluster.h:154
int minHitCol() const
Definition: FTLCluster.h:156
const DetId & detid() const
Definition: FTLCluster.h:180
bool operator< ( const FTLCluster one,
const uint32_t &  detid 
)
inline

Definition at line 276 of file FTLCluster.h.

References FTLCluster::detid().

276 { return one.detid() < detid; }
const DetId & detid() const
Definition: FTLCluster.h:180
bool operator< ( const uint32_t &  detid,
const FTLCluster other 
)
inline

Definition at line 278 of file FTLCluster.h.

References FTLCluster::detid().

278 { return detid < other.detid(); }
const DetId & detid() const
Definition: FTLCluster.h:180