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

◆ operator<() [1/3]

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

Definition at line 261 of file FTLCluster.h.

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 }

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

◆ 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; }

References FTLCluster::detid().

◆ operator<() [3/3]

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

Definition at line 278 of file FTLCluster.h.

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

References trackingPlots::other.

FTLCluster::minHitRow
int minHitRow() const
Definition: FTLCluster.h:154
FTLCluster::minHitCol
int minHitCol() const
Definition: FTLCluster.h:156
trackingPlots.other
other
Definition: trackingPlots.py:1465
FTLCluster::detid
const DetId & detid() const
Definition: FTLCluster.h:180