CMS 3D CMS Logo

SimplePixel.h
Go to the documentation of this file.
1 //
2 // SimplePixel.h (v1.00)
3 //
4 
5 #ifndef SimplePixel_h
6 #define SimplePixel_h 1
7 
8 class SimplePixel {
9 
10 public:
12  s = 0.;
13  x = 0.;
14  y = 0.;
15  i = 0;
16  j = 0;
17  btype = 0;
18  }
19 
20  bool operator<(const SimplePixel& rhs) const {
21  return (this->s < rhs.s);
22  }
23 
24  float s;
25  float x;
26  float y;
27  int i;
28  int j;
29  int btype;
30 };
31 
32 #endif
int btype
type of boundary (0=end, 1 = x-boundary, 2 = y-boundary)
Definition: SimplePixel.h:29
float y
y coordinate of boundary intersection
Definition: SimplePixel.h:26
bool operator<(const SimplePixel &rhs) const
define < operator so that std::list can sort these by path length
Definition: SimplePixel.h:20
float s
distance from track entry
Definition: SimplePixel.h:24
int j
y index of traversed pixel
Definition: SimplePixel.h:28
float x
x coordinate of boundary intersection
Definition: SimplePixel.h:25
int i
x index of traversed pixel
Definition: SimplePixel.h:27
SimplePixel()
< struck pixel class for use in simpletemplate2D
Definition: SimplePixel.h:11