StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StFtpcSectorCoordinate.cc
1 /***********************************************************************
2  *
3  * $Id: StFtpcSectorCoordinate.cc,v 1.2 2000/02/02 23:01:38 calderon Exp $
4  *
5  * Author: Manuel CBS Oct 1999
6  *
7  ************************************************************************
8  *
9  * Description: Ftpc Sector Coordinate
10  *
11  ************************************************************************
12  *
13  * $Log: StFtpcSectorCoordinate.cc,v $
14  * Revision 1.2 2000/02/02 23:01:38 calderon
15  * Changes for CC5
16  * Tests withs StTpcDb still going.
17  *
18  * Revision 1.1 1999/11/19 19:01:07 calderon
19  * First version of files for StDbUtilities.
20  * Note: this package uses StTpcDb.
21  * There are some parameters
22  * that are not yet kept in StTpcDb. When StTpcDb has them, the code
23  * will be changed to use them from StTpcDb.
24  * There are no Ftpc or Svt Coordinate transformations in here yet.
25  *
26  *
27  ***********************************************************************/
28 #include "StFtpcSectorCoordinate.hh"
29 
30 static const char rcsid[] = "$Id: StFtpcSectorCoordinate.cc,v 1.2 2000/02/02 23:01:38 calderon Exp $";
31 
32 StFtpcSectorCoordinate::StFtpcSectorCoordinate() {}
33 
34 StFtpcSectorCoordinate::StFtpcSectorCoordinate(const int plane, const int sector)
35  : mPlane(plane), mSector(sector) {}
36 
37 StFtpcSectorCoordinate::~StFtpcSectorCoordinate() {}
38 
39 int
40 StFtpcSectorCoordinate::operator==(const StFtpcSectorCoordinate& p) const
41 {
42 
43  return (p.mPlane == mPlane &&
44  p.mSector == mSector);
45 }
46 
47 int
48 StFtpcSectorCoordinate::operator!=(const StFtpcSectorCoordinate& p) const
49 {
50  return !(*this == p); // use operator==()
51 }
52 
53 // Non-Member function
54 ostream& operator<<(ostream& os, const StFtpcSectorCoordinate& a)
55 {
56  return os << "(plane= " << a.plane()
57  << ", sector= " << a.sector();
58 }