StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StFtpcSectorCoordinate.hh
1 /***********************************************************************
2  *
3  * $Id: StFtpcSectorCoordinate.hh,v 1.3 2003/09/02 17:57:51 perev Exp $
4  *
5  * Author: Manuel CBS Oct 1999
6  *
7  ************************************************************************
8  *
9  * Description: Ftpc Sector Coordinate
10  *
11  ************************************************************************
12  *
13  * $Log: StFtpcSectorCoordinate.hh,v $
14  * Revision 1.3 2003/09/02 17:57:51 perev
15  * gcc 3.2 updates + WarnOff
16  *
17  * Revision 1.2 2000/02/02 23:01:38 calderon
18  * Changes for CC5
19  * Tests withs StTpcDb still going.
20  *
21  * Revision 1.1 1999/11/19 19:01:07 calderon
22  * First version of files for StDbUtilities.
23  * Note: this package uses StTpcDb.
24  * There are some parameters
25  * that are not yet kept in StTpcDb. When StTpcDb has them, the code
26  * will be changed to use them from StTpcDb.
27  * There are no Ftpc or Svt Coordinate transformations in here yet.
28  *
29  *
30  ***********************************************************************/
31 #ifndef ST_FTPC_SECTOR_COORDINATE_HH
32 #define ST_FTPC_SECTOR_COORDINATE_HH
33 #include <Stiostream.h>
34 
36 {
37 public:
39  StFtpcSectorCoordinate(const int, const int);
40 
41  virtual ~StFtpcSectorCoordinate();
42  //StFtpcSectorCoordinate(const StFtpcSectorCoordinate&);
43  //StFtpcSectorCoordinate& operator=(cont StFtpcSectorCoordinate&);
44 
45  int operator==(const StFtpcSectorCoordinate&) const;
46  int operator!=(const StFtpcSectorCoordinate&) const;
47  // access functions
48  const int plane() const;
49  const int sector() const;
50 
51  void setPlane(int);
52  void setSector(int);
53 
54 private:
55  int mPlane;
56  int mSector;
57 };
58 
59 const inline int StFtpcSectorCoordinate::plane() const {return(mPlane);}
60 const inline int StFtpcSectorCoordinate::sector() const {return(mSector);}
61 inline void StFtpcSectorCoordinate::setPlane(int p) {mPlane = p;}
62 inline void StFtpcSectorCoordinate::setSector(int s) {mSector = s;}
63 // Non-member
64 ostream& operator<<(ostream&, const StFtpcSectorCoordinate&);
65 
66 #endif