StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMcFgtHit.hh
1 /***************************************************************************
2  *
3  * $Id: StMcFgtHit.hh,v 2.7 2011/10/17 00:24:00 fisyak Exp $
4  * $Log: StMcFgtHit.hh,v $
5  * Revision 2.7 2011/10/17 00:24:00 fisyak
6  * Add time of flight for hits
7  *
8  * Revision 2.6 2009/10/13 19:14:27 perev
9  * Wei-Ming update
10  *
11  * Revision 2.5 2005/11/22 21:44:51 fisyak
12  * Add compress Print for McEvent, add Ssd collections
13  *
14  * Revision 2.4 2005/09/28 21:30:14 fisyak
15  * Persistent StMcEvent
16  *
17  * Revision 2.3 2005/07/19 20:07:34 calderon
18  * Addition of default constructor, including base class StMcHit constructor.
19  * Bracket calls to StMemoryPool inside #ifdef.
20  *
21  * Revision 2.2 2005/07/06 20:05:28 calderon
22  * Remove forward declaration of StThreeVectorF, use #include, and only in
23  * StMcHit base class. StThreeVectorF is not a class anymore, it is now
24  * only a typedef, only template version of StThreeVector exists now.
25  *
26  * Revision 2.1 2005/04/18 20:11:33 calderon
27  * Addition of Fgt and Fst files. Modified other files to accomodate changes.
28  *
29  *
30  **************************************************************************/
31 #ifndef StMcFgtHit_hh
32 #define StMcFgtHit_hh
33 
34 #include "StMcHit.hh"
35 #include "tables/St_g2t_fgt_hit_Table.h"
36 
37 class StMcFgtHit : public StMcHit {
38 public:
39  StMcFgtHit() {}
40  StMcFgtHit(const StThreeVectorF& x,const StThreeVectorF& p,
41  Float_t de = 0, Float_t ds = 0, Float_t tof = 0, Long_t k = 0, Long_t volId = 0, StMcTrack* parent=0) :
42  StMcHit(x,p,de,ds,tof,k,volId,parent) {}
43  StMcFgtHit(g2t_fgt_hit_st* pt) :
44  StMcHit(StThreeVectorF(pt->x[0], pt->x[1], pt->x[2]),
45  StThreeVectorF(pt->p[0], pt->p[1], pt->p[2]),
46  pt->de, pt->ds, pt->tof, pt->id, pt->volume_id, 0) {}
47  ~StMcFgtHit() {}
48 
49  ULong_t layer() const;
50  ULong_t quad() const;
51  virtual void Print(Option_t *option="") const; // *MENU*
52 
53 private:
54  ClassDef(StMcFgtHit,2)
55 };
56 ostream& operator<<(ostream& os, const StMcFgtHit&);
57 #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