StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMcTofHit.hh
1 /***************************************************************************
2  *
3  * $Id: StMcTofHit.hh,v 2.7 2016/05/16 23:47:09 perev Exp $
4  * $Log: StMcTofHit.hh,v $
5  * Revision 2.7 2016/05/16 23:47:09 perev
6  * Coverity fix
7  *
8  * Revision 2.6 2011/10/17 00:24:01 fisyak
9  * Add time of flight for hits
10  *
11  * Revision 2.5 2005/11/22 21:44:52 fisyak
12  * Add compress Print for McEvent, add Ssd collections
13  *
14  * Revision 2.4 2005/09/28 21:30:15 fisyak
15  * Persistent StMcEvent
16  *
17  * Revision 2.3 2005/07/06 20:05:28 calderon
18  * Remove forward declaration of StThreeVectorF, use #include, and only in
19  * StMcHit base class. StThreeVectorF is not a class anymore, it is now
20  * only a typedef, only template version of StThreeVector exists now.
21  *
22  * Revision 2.2 2005/01/27 23:40:48 calderon
23  * Adding persistency to StMcEvent as a step for Virtual MonteCarlo.
24  *
25  * Revision 2.1 2003/08/20 18:50:21 calderon
26  * Addition of Tof classes and Pixel classes. Modified track, event, and
27  * container code to reflect this.
28  * Fix bug in StMcVertex and in clearing of some hit collections.
29  *
30  */
31 #ifndef StMcTofHit_hh
32 #define StMcTofHit_hh
33 
34 #include "StMcHit.hh"
35 #include "tables/St_g2t_ctf_hit_Table.h"
36 
37 class StMcTofHit : public StMcHit {
38 public:
39  StMcTofHit() {mStrack=0;}
40  StMcTofHit(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) {mStrack=0;}
43  StMcTofHit(g2t_ctf_hit_st* pt, Float_t cl_x=0, Float_t cl_t=0):
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) {mStrack=0;}
47  ~StMcTofHit() {}
48  Float_t sTrack() const {return mStrack;}
49  virtual void Print(Option_t *option="") const; // *MENU*
50 private:
51  Float_t mStrack;
52  ClassDef(StMcTofHit,2)
53 };
54 
55 ostream& operator<<(ostream& os, const StMcTofHit&);
56 
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