StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMcSvtHit.cc
1 /***************************************************************************
2  *
3  * $Id: StMcSvtHit.cc,v 2.13 2011/10/17 00:24:01 fisyak Exp $
4  * $Log: StMcSvtHit.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 22:55:28 calderon
32  * Functions to access the volume Id
33  * Added volume Id to output of operator<<
34  *
35  * Revision 2.4 2000/04/18 00:55:14 calderon
36  * added printout of local momentum to operator<<
37  *
38  * Revision 2.3 2000/04/17 23:01:15 calderon
39  * Added local momentum to hits as per Lee's request
40  *
41  * Revision 2.2 1999/12/03 00:51:52 calderon
42  * Tested with new StMcEventMaker. Added messages for
43  * diagnostics.
44  *
45  * Revision 2.1 1999/11/19 19:06:33 calderon
46  * Recommit after redoing the files.
47  *
48  * Revision 2.0 1999/11/17 02:12:16 calderon
49  * Completely revised for new StEvent
50  *
51  * Revision 1.3 1999/09/23 21:25:52 calderon
52  * Added Log & Id
53  * Modified includes according to Yuri
54  *
55  *
56  **************************************************************************/
57 #include "StMcSvtHit.hh"
58 
59 static const char rcsid[] = "$Id: StMcSvtHit.cc,v 2.13 2011/10/17 00:24:01 fisyak Exp $";
60 ClassImp(StMcSvtHit);
61 
62 ostream& operator<<(ostream& os, const StMcSvtHit& h)
63 {
64  os << "SvtHit" << endl;
65  os << *((StMcHit *) &h);
66  os << "Layer : " << h.layer() << endl;
67  os << "Ladder : " << h.ladder() << endl;
68  os << "Wafer : " << h.wafer() << endl;
69  os << "Barrel : " << h.barrel() << endl;
70  return os;
71 }
72 //________________________________________________________________________________
73 void StMcSvtHit::Print(Option_t *option) const {
74  cout << "SvtHit\t";
75  StMcHit::Print();
76  cout << "\tLayer: " << layer()
77  << " Ladder: " << ladder()
78  << " Wafer: " << wafer()
79  << " Barrel: " << barrel();
80 }