StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMcIstHit.cc
1 /***************************************************************************
2  *
3  * $Id: StMcIstHit.cc,v 2.12 2015/03/13 18:44:58 perev Exp $
4  * $Log: StMcIstHit.cc,v $
5  * Revision 2.12 2015/03/13 18:44:58 perev
6  * Roll back
7  *
8  * Revision 2.10 2012/12/18 21:01:53 perev
9  * Ist development (Jonathan)
10  *
11  * Revision 2.9 2011/10/17 00:24:00 fisyak
12  * Add time of flight for hits
13  *
14  * Revision 2.8 2009/02/06 15:36:45 fisyak
15  * Jonathan: decoding for upgr15 geometry
16  *
17  * Revision 2.7 2006/10/23 21:13:46 calderon
18  * Updates to layer(), wafer() and side() methods from Willie L.
19  *
20  * Revision 2.6 2005/11/22 21:44:52 fisyak
21  * Add compress Print for McEvent, add Ssd collections
22  *
23  * Revision 2.5 2005/09/29 01:01:10 calderon
24  * Fixed bugs in printing event and hit information.
25  * Format operator<< for various classes.
26  *
27  * Revision 2.4 2005/09/28 21:30:15 fisyak
28  * Persistent StMcEvent
29  *
30  * Revision 2.3 2005/07/19 20:07:34 calderon
31  * Addition of default constructor, including base class StMcHit constructor.
32  * Bracket calls to StMemoryPool inside #ifdef.
33  *
34  * Revision 2.2 2005/05/11 20:54:28 calderon
35  * Added persistency: ClassImp, ClassDef and inheritance from StObject.
36  *
37  * Revision 2.1 2004/09/14 05:00:29 calderon
38  * Added support for Ist, Ssd and changes to Pixel, from "El Kai".
39  *
40  * Revision 2.2 2003/12/02 21:22:03 calderon
41  * remove unnecessary #include "StMcTrack.hh"
42  *
43  * Revision 2.1 2003/08/20 18:50:21 calderon
44  * Addition of Tof classes and Pixel classes. Modified track, event, and
45  * container code to reflect this.
46  * Fix bug in StMcVertex and in clearing of some hit collections.
47  *
48  *
49  **************************************************************************/
50 #include "StThreeVectorF.hh"
51 
52 
53 #include "StMcIstHit.hh"
54 
55 static const char rcsid[] = "$Id: StMcIstHit.cc,v 2.12 2015/03/13 18:44:58 perev Exp $";
56 #ifdef POOL
57 StMemoryPool StMcIstHit::mPool(sizeof(StMcIstHit));
58 #endif
59 ClassImp(StMcIstHit);
60 ostream& operator<<(ostream& os, const StMcIstHit& h)
61 {
62  os << "IstHit" << endl;
63  os << *((StMcHit *) &h);
64  os << "Layer : " << h.layer() << endl;
65  return os;
66 }
67 
68 //________________________________________________________________________________
69 void StMcIstHit::Print(Option_t *option) const {
70  cout << "IstHit\t";
71  StMcHit::Print();
72  cout << "\tLayer: " << layer();
73 }