StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StEEmcStripEndPointData.h
1 
9 #ifndef _ST_EEMC_STRIP_END_POINT_DATA_H_
10 #define _ST_EEMC_STRIP_END_POINT_DATA_H_
11 
12 #include <vector>
13 #include <Rtypes.h>
14 
15 // forward declaration
17 
18 // typedef
19 typedef std::vector< StEEmcStripEndPointData_t > StEEmcStripEndPointDataVec_t;
20 
21 // The class
23  public:
24  // constructor
25  StEEmcStripEndPointData_t() : mStripIndex(0), mX(0), mY1(0), mY2(0) { /* */ };
26  StEEmcStripEndPointData_t( Short_t stripIndex, Float_t x, Float_t y1, Float_t y2 ) : mStripIndex(stripIndex), mX(x), mY1(y1), mY2(y2) { /* */ };
27  ~StEEmcStripEndPointData_t() { /* */ };
28 
29  // less than if X values are less than (needed to find strips by X position)
30  Bool_t operator<( const StEEmcStripEndPointData_t& other ) const { return (mX < other.mX); };
31 
32  Short_t getStripIndex() const { return mStripIndex; };
33  Float_t getX() const { return mX; };
34  Float_t getY1() const { return mY1; };
35  Float_t getY2() const { return mY2; };
36 
37  protected:
38  Short_t mStripIndex; // 0-287
39  Float_t mX, mY1, mY2; // endpoints
40 
41  private:
43  ClassDef(StEEmcStripEndPointData_t,1);
44 };
45 
46 #endif
47 
48 /*
49  * $Id: StEEmcStripEndPointData.h,v 1.1 2012/08/29 15:44:17 sgliske Exp $
50  * $Log: StEEmcStripEndPointData.h,v $
51  * Revision 1.1 2012/08/29 15:44:17 sgliske
52  * Moved from offline/users/sgliske/StRoot/StEEmcPool
53  *
54  *
55  */