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

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

248  {
249  if(one.detid() == other.detid()) {
250  if ( one.minHitRow() < other.minHitRow() ) {
251  return true;
252  } else if ( one.minHitRow() > other.minHitRow() ) {
253  return false;
254  } else if ( one.minHitCol() < other.minHitCol() ) {
255  return true;
256  } else {
257  return false;
258  }
259  }
260  return one.detid() < other.detid();
261 }
int minHitRow() const
Definition: FTLCluster.h:142
int minHitCol() const
Definition: FTLCluster.h:144
const DetId & detid() const
Definition: FTLCluster.h:172
bool operator< ( const FTLCluster one,
const uint32_t &  detid 
)
inline

Definition at line 263 of file FTLCluster.h.

References FTLCluster::detid().

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

Definition at line 266 of file FTLCluster.h.

References FTLCluster::detid().

266  {
267  return detid < other.detid();}
const DetId & detid() const
Definition: FTLCluster.h:172