StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StFtpcLocalCoordinate.cc
1 /***********************************************************************
2  *
3  * $Id: StFtpcLocalCoordinate.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 Local Coordinate
10  *
11  ************************************************************************
12  *
13  * $Log: StFtpcLocalCoordinate.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 "StFtpcLocalCoordinate.hh"
29 
30 static const char rcsid[] = "$Id: StFtpcLocalCoordinate.cc,v 1.2 2000/02/02 23:01:38 calderon Exp $";
31 
32 
33 StFtpcLocalCoordinate::StFtpcLocalCoordinate() {}
34 
35 StFtpcLocalCoordinate::StFtpcLocalCoordinate(const double x, const double y, const double z)
36  : mPosition(x,y,z) { /* nopt */}
37 
38 StFtpcLocalCoordinate::StFtpcLocalCoordinate(const StThreeVector<double>& position)
39  : mPosition(position) { /* nopt */ }
40 
41 StFtpcLocalCoordinate::~StFtpcLocalCoordinate() {}
42 
43 int StFtpcLocalCoordinate::operator==(const StFtpcLocalCoordinate& p) const
44 {
45  return p.mPosition == mPosition;
46 }
47 
48 int
49 StFtpcLocalCoordinate::operator!=(const StFtpcLocalCoordinate& p) const
50 {
51  return !(*this == p); // use operator==()
52 }
53 
54 // Non-member Functions
55 ostream& operator<<(ostream& os, const StFtpcLocalCoordinate& a)
56 {
57  return os << "FTPC_Local( ("
58  << a.position().x() << ", "
59  << a.position().y() << ", "
60  << a.position().z() << ")";
61 }