StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMcTofHit.cc
1 /***************************************************************************
2  *
3  * $Id: StMcTofHit.cc,v 2.7 2011/10/17 00:24:01 fisyak Exp $
4  * $Log: StMcTofHit.cc,v $
5  * Revision 2.7 2011/10/17 00:24:01 fisyak
6  * Add time of flight for hits
7  *
8  * Revision 2.6 2005/11/22 21:44:52 fisyak
9  * Add compress Print for McEvent, add Ssd collections
10  *
11  * Revision 2.5 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.4 2005/09/28 21:30:15 fisyak
16  * Persistent StMcEvent
17  *
18  * Revision 2.3 2005/01/27 23:40:48 calderon
19  * Adding persistency to StMcEvent as a step for Virtual MonteCarlo.
20  *
21  * Revision 2.2 2003/12/02 21:22:03 calderon
22  * remove unnecessary #include "StMcTrack.hh"
23  *
24  * Revision 2.1 2003/08/20 18:50:21 calderon
25  * Addition of Tof classes and Pixel classes. Modified track, event, and
26  * container code to reflect this.
27  * Fix bug in StMcVertex and in clearing of some hit collections.
28  *
29  ***************************************************************************/
30 #include "StMcTofHit.hh"
31 #include "tables/St_g2t_ctf_hit_Table.h"
32 static const char rcsid[] = "$Id: StMcTofHit.cc,v 2.7 2011/10/17 00:24:01 fisyak Exp $";
33 ClassImp(StMcTofHit);
34 
35 
36 ostream& operator<<(ostream& os, const StMcTofHit& h) {
37  os << "TofHit\t" << endl;
38  os << *((StMcHit *) &h);
39  os << "T. of Flight : " << h.tof() << endl;
40  os << "path length : " << h.sTrack() << endl;
41  return os;
42 }
43 //________________________________________________________________________________
44 void StMcTofHit::Print(Option_t *option) const {
45  cout << "TofHit\t";
46  StMcHit::Print();
47  cout << "\tT. of Flight: " << tof()
48  << " path length: " << sTrack();
49 }
Definition: tof.h:15