Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:02:35

0001 //
0002 //  SimplePixel.h (v1.00)
0003 //
0004 
0005 #ifndef SimplePixel_h
0006 #define SimplePixel_h 1
0007 
0008 class SimplePixel {  //!< struck pixel class for use in simpletemplate2D
0009 
0010 public:
0011   SimplePixel() {
0012     s = 0.;
0013     x = 0.;
0014     y = 0.;
0015     i = 0;
0016     j = 0;
0017     btype = 0;
0018   }  //!< Default constructor
0019 
0020   bool operator<(const SimplePixel& rhs) const {
0021     return (this->s < rhs.s);
0022   }  //!< define < operator so that std::list can sort these by path length
0023 
0024   float s;    //!< distance from track entry
0025   float x;    //!< x coordinate of boundary intersection
0026   float y;    //!< y coordinate of boundary intersection
0027   int i;      //!< x index of traversed pixel
0028   int j;      //!< y index of traversed pixel
0029   int btype;  //!< type of boundary (0=end, 1 = x-boundary, 2 = y-boundary)
0030 };
0031 
0032 #endif