StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMcRichHit.hh
1 /***************************************************************************
2  *
3  * $Id: StMcRichHit.hh,v 2.9 2011/10/17 00:24:00 fisyak Exp $
4  * $Log: StMcRichHit.hh,v $
5  * Revision 2.9 2011/10/17 00:24:00 fisyak
6  * Add time of flight for hits
7  *
8  * Revision 2.8 2005/09/28 21:30:15 fisyak
9  * Persistent StMcEvent
10  *
11  * Revision 2.7 2005/07/06 20:05:28 calderon
12  * Remove forward declaration of StThreeVectorF, use #include, and only in
13  * StMcHit base class. StThreeVectorF is not a class anymore, it is now
14  * only a typedef, only template version of StThreeVector exists now.
15  *
16  * Revision 2.6 2005/01/27 23:40:47 calderon
17  * Adding persistency to StMcEvent as a step for Virtual MonteCarlo.
18  *
19  * Revision 2.5 2000/06/06 02:58:41 calderon
20  * Introduction of Calorimeter classes. Modified several classes
21  * accordingly.
22  *
23  * Revision 2.4 2000/05/26 21:42:11 calderon
24  * Added volumeId() method.
25  *
26  * Revision 2.3 2000/05/05 15:25:44 calderon
27  * Reduced dependencies and made constructors more efficient
28  *
29  * Revision 2.2 2000/04/17 23:01:15 calderon
30  * Added local momentum to hits as per Lee's request
31  *
32  * Revision 2.1 2000/03/06 18:05:21 calderon
33  * 1) Modified SVT Hits storage scheme from layer-ladder-wafer to
34  * barrel-ladder-wafer.
35  * 2) Added Rich Hit class and collection, and links to them in other
36  * classes.
37  *
38  *
39  **************************************************************************/
40 #ifndef StMcRichHit_hh
41 #define StMcRichHit_hh
42 
43 #include "StMcHit.hh"
44 #include "tables/St_g2t_rch_hit_Table.h"
45 
46 class StMcRichHit : public StMcHit {
47 public:
48  StMcRichHit() {}
49  StMcRichHit(const StThreeVectorF& x,const StThreeVectorF& p,
50  Float_t de = 0, Float_t ds = 0, Float_t tof = 0, Long_t k = 0, Long_t volId = 0, StMcTrack* parent=0) :
51  StMcHit(x,p,de,ds,tof,k,volId,parent) {}
52  StMcRichHit(g2t_rch_hit_st* pt) :
53  StMcHit(StThreeVectorF(pt->x[0], pt->x[1], pt->x[2]),
54  StThreeVectorF(pt->p[0], pt->p[1], pt->p[2]),
55  pt->de, pt->ds, pt->tof, pt->id, pt->volume_id, 0) {}
56  ~StMcRichHit() {}
57 
58  UShort_t pad() const {return (mVolumeId & 0xff);} // first 8 bits
59  UShort_t row() const {return ( (mVolumeId>>8) & 0xff);} // second 8 bits
60 private:
61  ClassDef(StMcRichHit,1)
62 };
63 
64 ostream& operator<<(ostream& os, const StMcRichHit&);
65 
66 #endif
Definition: tof.h:15
Monte Carlo Track class All information on a simulated track is stored in this class: kinematics...
Definition: StMcTrack.hh:144