StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMcTpcHit.cc
1 /***************************************************************************
2  *
3  * $Id: StMcTpcHit.cc,v 2.13 2011/10/17 00:24:01 fisyak Exp $
4  * $Log: StMcTpcHit.cc,v $
5  * Revision 2.13 2011/10/17 00:24:01 fisyak
6  * Add time of flight for hits
7  *
8  * Revision 2.12 2005/11/22 21:44:52 fisyak
9  * Add compress Print for McEvent, add Ssd collections
10  *
11  * Revision 2.11 2005/09/29 01:01:10 calderon
12  * Fixed bugs in printing event and hit information.
13  * Format operator<< for various classes.
14  *
15  * Revision 2.10 2005/09/28 21:30:15 fisyak
16  * Persistent StMcEvent
17  *
18  * Revision 2.9 2005/01/27 23:40:48 calderon
19  * Adding persistency to StMcEvent as a step for Virtual MonteCarlo.
20  *
21  * Revision 2.8 2003/12/02 21:22:03 calderon
22  * remove unnecessary #include "StMcTrack.hh"
23  *
24  * Revision 2.7 2000/06/06 02:58:41 calderon
25  * Introduction of Calorimeter classes. Modified several classes
26  * accordingly.
27  *
28  * Revision 2.6 2000/05/05 15:25:44 calderon
29  * Reduced dependencies and made constructors more efficient
30  *
31  * Revision 2.5 2000/04/18 00:55:14 calderon
32  * added printout of local momentum to operator<<
33  *
34  * Revision 2.4 2000/04/17 23:01:15 calderon
35  * Added local momentum to hits as per Lee's request
36  *
37  * Revision 2.3 1999/12/14 07:04:49 calderon
38  * Numbering scheme as per SVT request.
39  *
40  * Revision 2.2 1999/12/03 00:51:52 calderon
41  * Tested with new StMcEventMaker. Added messages for
42  * diagnostics.
43  *
44  * Revision 2.1 1999/11/19 19:06:33 calderon
45  * Recommit after redoing the files.
46  *
47  * Revision 2.0 1999/11/17 02:12:16 calderon
48  * Completely revised for new StEvent
49  *
50  * Revision 1.3 1999/09/23 21:25:53 calderon
51  * Added Log & Id
52  * Modified includes according to Yuri
53  *
54  *
55  **************************************************************************/
56 #include "StMcTpcHit.hh"
57 
58 static const char rcsid[] = "$Id: StMcTpcHit.cc,v 2.13 2011/10/17 00:24:01 fisyak Exp $";
59 
60 ClassImp(StMcTpcHit);
61 ostream& operator<<(ostream& os, const StMcTpcHit& h)
62 {
63  os << "TpcHit:";
64  os << " Sector :" << h.sector();
65  os << " PadRow :" << h.padrow();
66  os << *((StMcHit *) &h);
67  return os;
68 }
69 //________________________________________________________________________________
70 void StMcTpcHit::Print(Option_t *option) const {
71  cout << "TpcHit\t";
72  cout << " Sector:" << sector()
73  << " PadRow:" << padrow();
74  StMcHit::Print();
75 }
76