StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMcCtbHit.hh
1 /***************************************************************************
2  *
3  * $Id: StMcCtbHit.hh,v 2.5 2011/10/17 00:24:00 fisyak Exp $
4  * $Log: StMcCtbHit.hh,v $
5  * Revision 2.5 2011/10/17 00:24:00 fisyak
6  * Add time of flight for hits
7  *
8  * Revision 2.4 2005/09/28 21:30:14 fisyak
9  * Persistent StMcEvent
10  *
11  * Revision 2.3 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.2 2005/01/27 23:40:46 calderon
17  * Adding persistency to StMcEvent as a step for Virtual MonteCarlo.
18  *
19  * Revision 2.1 2003/02/19 03:29:41 calderon
20  * Introduction of CTB classes to repository.
21  *
22  * Revision 1.0 2003/03/18 00:00:00 gans
23  * Introduction of Ctb classes. Modified several classes
24  * accordingly.
25  */
26 #ifndef StMcCtbHit_hh
27 #define StMcCtbHit_hh
28 
29 #include "StMcHit.hh"
30 #include "tables/St_g2t_ctf_hit_Table.h"
31 
32 class StMcCtbHit : public StMcHit {
33 public:
34  StMcCtbHit(){}
35  StMcCtbHit(const StThreeVectorF& x,const StThreeVectorF& p,
36  Float_t de, Float_t ds, Float_t tof, Long_t k, Long_t volId, StMcTrack* parent=0) :
37  StMcHit(x,p,de,ds,tof,k,volId,parent) {}
38  StMcCtbHit(g2t_ctf_hit_st* pt) : StMcHit(StThreeVectorF(pt->x[0], pt->x[1], pt->x[2]),
39  StThreeVectorF(pt->p[0], pt->p[1], pt->p[2]),
40  pt->de, pt->ds, pt->tof, pt->id, pt->volume_id, 0) {}
41  virtual ~StMcCtbHit() {}
42  void get_slat_tray(unsigned int & slat, unsigned int & tray) const;
43 private:
44  ClassDef(StMcCtbHit,2)
45 };
46 
47 ostream& operator<<(ostream& os, const StMcCtbHit&);
48 
49 #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