StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StGlobalCoordinate.cc
1 /*************************************************************************
2  *
3  * $Id: StGlobalCoordinate.cc,v 1.4 2011/01/18 14:34:27 fisyak Exp $
4  *
5  * Author: brian May 20, 1998
6  *
7  **************************************************************************
8  *
9  * Description: Raw data information along with access
10  * functions
11  *
12  ***************************************************************************
13  *
14  * $Log: StGlobalCoordinate.cc,v $
15  * Revision 1.4 2011/01/18 14:34:27 fisyak
16  * Clean up TpcDb interfaces and Tpc coordinate transformation
17  *
18  * Revision 1.3 2000/04/28 16:40:34 calderon
19  * added constructor taking StThreeVectorF, because that's what
20  * StHits and StMcHits have.
21  *
22  * Revision 1.2 2000/02/02 23:01:38 calderon
23  * Changes for CC5
24  * Tests withs StTpcDb still going.
25  *
26  * Revision 1.1 1999/11/19 19:01:07 calderon
27  * First version of files for StDbUtilities.
28  * Note: this package uses StTpcDb.
29  * There are some parameters
30  * that are not yet kept in StTpcDb. When StTpcDb has them, the code
31  * will be changed to use them from StTpcDb.
32  * There are no Ftpc or Svt Coordinate transformations in here yet.
33  *
34  * Revision 1.3 1999/10/25 18:38:48 calderon
35  * changed mPos and pos() to mPosition and position() to
36  * be compatible with StEvent/StMcEvent.
37  *
38  * Revision 1.2 1998/11/16 19:41:58 lasiuk
39  * constructor do not use reference for double&
40  *
41  * Revision 1.1 1998/11/10 17:12:20 fisyak
42  * Put Brian trs versin into StRoot
43  *
44  * Revision 1.2 1998/11/01 16:20:38 lasiuk
45  * remove 'St' from variable declarations
46  *
47  * Revision 1.1 1998/05/21 21:27:56 lasiuk
48  * Initial revision
49  *
50  *
51  *************************************************************************/
52 #include "StGlobalCoordinate.hh"
53 #include "StThreeVectorF.hh"
54 static const char rcsid[] = "$Id: StGlobalCoordinate.cc,v 1.4 2011/01/18 14:34:27 fisyak Exp $";
55 
56 // Non-member functions
57 ostream& operator<<(ostream& os, const StGlobalCoordinate& a)
58 {
59  return os << "GC ( "
60  << a.position().x() << ", "
61  << a.position().y() << ", "
62  << a.position().z() << ")";
63 }