StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StTpcPadCoordinate.hh
1 /***********************************************************************
2  *
3  * $Id: StTpcPadCoordinate.hh,v 1.5 2008/05/27 14:26:40 fisyak Exp $
4  *
5  * Author: brian Feb 6, 1998
6  *
7  ************************************************************************
8  *
9  * Description: Raw data information along with access functions
10  *
11  ************************************************************************
12  *
13  * $Log: StTpcPadCoordinate.hh,v $
14  * Revision 1.5 2008/05/27 14:26:40 fisyak
15  * Use TChairs, absorb shift tau shift, introduce sector to sector time offset
16  *
17  * Revision 1.4 2004/01/14 22:40:05 fisyak
18  * remove constness to make alpha happy
19  *
20  * Revision 1.3 2003/09/02 17:57:51 perev
21  * gcc 3.2 updates + WarnOff
22  *
23  * Revision 1.2 2000/02/02 23:01:39 calderon
24  * Changes for CC5
25  * Tests withs StTpcDb still going.
26  *
27  * Revision 1.1 1999/11/19 19:01:09 calderon
28  * First version of files for StDbUtilities.
29  * Note: this package uses StTpcDb.
30  * There are some parameters
31  * that are not yet kept in StTpcDb. When StTpcDb has them, the code
32  * will be changed to use them from StTpcDb.
33  * There are no Ftpc or Svt Coordinate transformations in here yet.
34  *
35  * Revision 1.1 1998/11/10 17:12:07 fisyak
36  * Put Brian trs versin into StRoot
37  *
38  * Revision 1.2 1998/11/01 16:21:02 lasiuk
39  * remove 'St' from variable declarations
40  * add set functions in local Coordinates
41  *
42  * Revision 1.1 1998/05/21 21:27:38 lasiuk
43  * Initial revision
44  *
45  *
46  ***********************************************************************/
47 #ifndef ST_TPC_PAD_COORDINATE_HH
48 #define ST_TPC_PAD_COORDINATE_HH
49 #include <Stiostream.h>
50 #include "Rtypes.h"
52 public:
53  StTpcPadCoordinate(const Int_t sector = 0, const Int_t row = 0, const Float_t pad = 0, const Float_t tb = 0) : mSector(sector), mRow(row), mPad(pad), mTimeBucket(tb) {}
54  virtual ~StTpcPadCoordinate() {}
55  Int_t operator==(const StTpcPadCoordinate& p) const {return (p.mSector == mSector && p.mRow == mRow && p.mPad == mPad && p.mTimeBucket == mTimeBucket);}
56  Int_t operator!=(const StTpcPadCoordinate& p) const {return !(*this == p);};
57  // access functions
58  Int_t sector() const {return mSector;}
59  Int_t row() const {return mRow;}
60  Float_t pad() const {return mPad;}
61  Float_t timeBucket() const {return mTimeBucket;}
62  Int_t sector() {return mSector;}
63  Int_t row() {return mRow;}
64  Float_t pad() {return mPad;}
65  Float_t timeBucket() {return mTimeBucket;}
66 
67  void setSector(Int_t s) {mSector = s;}
68  void setRow(Int_t r) {mRow = r;}
69  void setPad(Float_t p) {mPad = p;}
70  void setTimeBucket(Float_t t) {mTimeBucket = t;}
71 
72 protected:
73  Int_t mSector;
74  Int_t mRow;
75  Float_t mPad;
76  Float_t mTimeBucket;
77 
78 };
79 // Non-member
80 ostream& operator<<(ostream&, const StTpcPadCoordinate&);
81 
82 #endif