StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
g2t_tpc_hit.hh
1 /***************************************************************************
2  *
3  * $Id: g2t_tpc_hit.hh,v 1.3 2003/09/02 17:59:16 perev Exp $
4  *
5  * Author:
6  ***************************************************************************
7  *
8  * Description:
9  *
10  ***************************************************************************
11  *
12  * $Log: g2t_tpc_hit.hh,v $
13  * Revision 1.3 2003/09/02 17:59:16 perev
14  * gcc 3.2 updates + WarnOff
15  *
16  * Revision 1.2 1999/02/14 20:42:17 lasiuk
17  * use 3 vectors
18  *
19  * Revision 1.1 1998/11/10 17:12:13 fisyak
20  * Put Brian trs versin into StRoot
21  *
22  * Revision 1.2 1998/05/21 21:27:44 lasiuk
23  * Initial revision
24  *
25  * Revision 1.1.1.1 1998/05/19 22:33:44 lasiuk
26  * Initial Revision
27  *
28  **************************************************************************/
29 #ifndef ST_G2T_HH
30 #define ST_G2T_HH
31 #include <Stiostream.h>
32 #include "StThreeVector.hh"
33 
34 struct g2t_tpc_hit { /* G2t_tpc_hit */
35  long id; /* primary key */
36  long next_tr_hit_p; /* Id of next hit on same track */
37  long track_p; /* Id of parent track */
38  long volume_id; /* STAR volume identification */
39  float de; /* energy deposition at hit */
40  float ds; /* path length within padrow */
41  float tof; /* time of flight */
42  StThreeVector<double> p; /* local momentum */
43  StThreeVector<double> x; /* coordinate (Cartesian) */
44 };
45 
46 ostream& operator<<(ostream& os, const g2t_tpc_hit& a)
47 {
48  return os << a.volume_id << ", "
49  << a.de << ", "
50  << a.ds << ", "
51  << a.x << ", "
52  << a.p;
53 }
54 #endif
Definition: tof.h:15