StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StTpcCoordinate.cxx
1 /***********************************************************************
2  * $Id: StTpcCoordinate.cxx,v 1.2 2011/01/18 14:34:28 fisyak Exp $
3  ***********************************************************************/
4 #include "StTpcLocalDirection.hh"
5 #include "StTpcLocalCoordinate.hh"
6 #include "StTpcLocalSectorAlignedDirection.hh"
7 #include "StTpcLocalSectorAlignedCoordinate.hh"
8 #include "StTpcLocalSectorDirection.hh"
9 #include "StTpcLocalSectorCoordinate.hh"
10 //________________________________________________________________________________
11 StTpcLocalCoordinate::StTpcLocalCoordinate(double x, double y, double z) : StTpcCoordinate(x,y,z,0,0) {}
12 //________________________________________________________________________________
13 StTpcLocalCoordinate::StTpcLocalCoordinate(const StThreeVector<double>& xyz) : StTpcCoordinate(xyz,0,0) {}
14 //________________________________________________________________________________
15 #define OS "( (" << a.position().x() << ", " \
16  << a.position().y() << ", " \
17  << a.position().z() << ") " \
18  << ", " << a.fromSector() << "," << a.fromRow() << " )"
19 // Non-member Functions
20 ostream& operator<<(ostream& os, const StTpcCoordinate& a) {
21  return os << OS;
22 }
23 //________________________________________________________________________________
24 ostream& operator<<(ostream& os, const StTpcLocalDirection& a) {
25  return os << "TPC_Local Direction( (" << OS;
26 }
27 //________________________________________________________________________________
28 ostream& operator<<(ostream& os,
29 const StTpcLocalCoordinate& a) {
30  return os << "TPC_Local( (" << OS;
31 }
32 //________________________________________________________________________________
33 ostream& operator<<(ostream& os, const StTpcLocalSectorCoordinate& a) {
34  return os << "TPC_Local_Sector( (" << OS;
35 }
36 ostream& operator<<(ostream& os, const StTpcLocalSectorDirection& a) {
37  return os << "TPC_Local_Sector Direction( (" << OS;
38 }
39 #undef OS