StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMcFtpcHit.hh
1 /***************************************************************************
2  *
3  * $Id: StMcFtpcHit.hh,v 2.12 2011/10/17 00:24:00 fisyak Exp $
4  * $Log: StMcFtpcHit.hh,v $
5  * Revision 2.12 2011/10/17 00:24:00 fisyak
6  * Add time of flight for hits
7  *
8  * Revision 2.11 2005/11/22 21:44:51 fisyak
9  * Add compress Print for McEvent, add Ssd collections
10  *
11  * Revision 2.10 2005/09/28 21:30:14 fisyak
12  * Persistent StMcEvent
13  *
14  * Revision 2.9 2005/07/06 20:05:28 calderon
15  * Remove forward declaration of StThreeVectorF, use #include, and only in
16  * StMcHit base class. StThreeVectorF is not a class anymore, it is now
17  * only a typedef, only template version of StThreeVector exists now.
18  *
19  * Revision 2.8 2005/01/27 23:40:47 calderon
20  * Adding persistency to StMcEvent as a step for Virtual MonteCarlo.
21  *
22  * Revision 2.7 2003/10/08 20:17:55 calderon
23  * -using <iostream>, std::cout, std::ostream.
24  * -changes in FTPC volume Id.
25  * o Causes changes in decoding of plane().
26  * o sector() is added.
27  * o print volumeId and sector() in the operator<<.
28  *
29  * Revision 2.6 2000/06/06 02:58:41 calderon
30  * Introduction of Calorimeter classes. Modified several classes
31  * accordingly.
32  *
33  * Revision 2.5 2000/05/05 15:25:43 calderon
34  * Reduced dependencies and made constructors more efficient
35  *
36  * Revision 2.4 2000/01/18 20:52:31 calderon
37  * Works with CC5
38  *
39  * Revision 2.3 1999/12/15 20:05:48 calderon
40  * corrected the comment on the numbering of the plane
41  *
42  * Revision 2.2 1999/12/03 00:51:52 calderon
43  * Tested with new StMcEventMaker. Added messages for
44  * diagnostics.
45  *
46  * Revision 2.1 1999/11/19 19:06:32 calderon
47  * Recommit after redoing the files.
48  *
49  * Revision 2.0 1999/11/17 02:12:16 calderon
50  * Completely revised for new StEvent
51  *
52  * Revision 1.4 1999/09/24 01:23:16 fisyak
53  * Reduced Include Path
54  *
55  * Revision 1.3 1999/09/23 21:25:51 calderon
56  * Added Log & Id
57  * Modified includes according to Yuri
58  *
59  *
60  **************************************************************************/
61 #ifndef StMcFtpcHit_hh
62 #define StMcFtpcHit_hh
63 
64 #include "StMcHit.hh"
65 #include "tables/St_g2t_ftp_hit_Table.h"
66 
67 class StMcFtpcHit : public StMcHit {
68 public:
69  StMcFtpcHit() {}
70  StMcFtpcHit(const StThreeVectorF& x,const StThreeVectorF& p,
71  Float_t de = 0, Float_t ds = 0, Float_t tof = 0, Long_t k = 0, Long_t volId = 0, StMcTrack* parent=0) :
72  StMcHit(x,p,de,ds,tof,k,volId,parent) {}
73  StMcFtpcHit(g2t_ftp_hit_st* pt, Float_t cl_x=0, Float_t cl_t=0) :
74  StMcHit(StThreeVectorF(pt->x[0], pt->x[1], pt->x[2]),
75  StThreeVectorF(pt->p[0], pt->p[1], pt->p[2]),
76  pt->de, pt->ds, pt->tof, pt->id, pt->volume_id, 0) {}
77  ~StMcFtpcHit() {}
78  ULong_t plane() const; // 1-20, where 1-10 = West and 11-20 = East
79  ULong_t sector() const; // 1-6
80  virtual void Print(Option_t *option="") const; // *MENU*
81 
82 private:
83  ClassDef(StMcFtpcHit,2)
84 };
85 
86 ostream& operator<<(ostream& os, const StMcFtpcHit&);
87 
88 
89 #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