CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
SiStripCluster.h File Reference
#include "DataFormats/SiStripDigi/interface/SiStripDigi.h"
#include <vector>
#include "FWCore/MessageLogger/interface/MessageLogger.h"

Go to the source code of this file.

Classes

class  SiStripCluster
 

Functions

bool operator< (const SiStripCluster &one, const SiStripCluster &other)
 
bool operator< (const SiStripCluster &cluster, const uint32_t &detid)
 
bool operator< (const uint32_t &detid, const SiStripCluster &cluster)
 
bool operator< (const SiStripCluster &cluster, const uint16_t &firstStrip)
 
bool operator< (const uint16_t &firstStrip, const SiStripCluster &cluster)
 

Function Documentation

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

Definition at line 91 of file SiStripCluster.h.

References SiStripCluster::firstStrip(), and SiStripCluster::geographicalId().

91  {
92  if(one.geographicalId() == other.geographicalId()) {
93  return one.firstStrip() < other.firstStrip();
94  }
95  return one.geographicalId() < other.geographicalId();
96 }
uint16_t firstStrip() const
uint32_t geographicalId() const
bool operator< ( const SiStripCluster cluster,
const uint32_t &  detid 
)
inline

Definition at line 98 of file SiStripCluster.h.

References cond::rpcobgas::detid, and SiStripCluster::geographicalId().

98  {
99  return cluster.geographicalId() < detid;
100 }
uint32_t geographicalId() const
bool operator< ( const uint32_t &  detid,
const SiStripCluster cluster 
)
inline

Definition at line 102 of file SiStripCluster.h.

References SiStripCluster::geographicalId().

102  {
103  return detid < cluster.geographicalId();
104 }
uint32_t geographicalId() const
bool operator< ( const SiStripCluster cluster,
const uint16_t &  firstStrip 
)
inline

Definition at line 106 of file SiStripCluster.h.

References SiStripCluster::firstStrip().

106  {
107  return cluster.firstStrip() < firstStrip;
108 }
uint16_t firstStrip() const
bool operator< ( const uint16_t &  firstStrip,
const SiStripCluster cluster 
)
inline

Definition at line 110 of file SiStripCluster.h.

References SiStripCluster::firstStrip().

110  {
111  return firstStrip < cluster.firstStrip();
112 }
uint16_t firstStrip() const