#include <ClusterShapeHitFilter.h>
Public Member Functions | |
bool | isValid () const |
operator unsigned int () const | |
bool | operator< (const PixelKeys &right) const |
PixelKeys (int part, int dx, int dy) | |
Static Public Member Functions | |
static unsigned char | barrelPacking (int dx, int dy) |
static unsigned char | endcapPacking (int dx, int dy) |
Static Public Attributes | |
static const int | N = N_barrel+N_endcap |
static const int | N_barrel = 137 |
static const int | N_endcap = 55 |
static const int | offset_endcap_dx = 10 |
static const int | offset_endcap_dy = 5 |
Private Attributes | |
unsigned char | key |
Definition at line 22 of file ClusterShapeHitFilter.h.
PixelKeys::PixelKeys | ( | int | part, |
int | dx, | ||
int | dy | ||
) | [inline] |
Definition at line 24 of file ClusterShapeHitFilter.h.
: key( (part==0) ? barrelPacking(dx,dy) : endcapPacking(dx,dy)) {}
static unsigned char PixelKeys::barrelPacking | ( | int | dx, |
int | dy | ||
) | [inline, static] |
static unsigned char PixelKeys::endcapPacking | ( | int | dx, |
int | dy | ||
) | [inline, static] |
Definition at line 28 of file ClusterShapeHitFilter.h.
References N, N_barrel, and offset_endcap_dy.
{ if ( dx<0 || dy<0 ) return N; if ( dx>10 || dy>4 ) return N; return N_barrel + dx*offset_endcap_dy+dy; // max 11*5 = 55 }
bool PixelKeys::isValid | ( | void | ) | const [inline] |
Definition at line 42 of file ClusterShapeHitFilter.h.
Referenced by ClusterShapeHitFilter::isCompatible().
PixelKeys::operator unsigned int | ( | ) | const [inline] |
bool PixelKeys::operator< | ( | const PixelKeys & | right | ) | const [inline] |
unsigned char PixelKeys::key [private] |
Definition at line 54 of file ClusterShapeHitFilter.h.
Referenced by isValid(), operator unsigned int(), and operator<().
const int PixelKeys::N = N_barrel+N_endcap [static] |
Definition at line 49 of file ClusterShapeHitFilter.h.
Referenced by barrelPacking(), endcapPacking(), and isValid().
const int PixelKeys::N_barrel = 137 [static] |
Definition at line 48 of file ClusterShapeHitFilter.h.
Referenced by endcapPacking().
const int PixelKeys::N_endcap = 55 [static] |
Definition at line 47 of file ClusterShapeHitFilter.h.
const int PixelKeys::offset_endcap_dx = 10 [static] |
Definition at line 46 of file ClusterShapeHitFilter.h.
const int PixelKeys::offset_endcap_dy = 5 [static] |
Definition at line 45 of file ClusterShapeHitFilter.h.
Referenced by endcapPacking().