StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMcSsdHit.hh
1 /***************************************************************************
2  *
3  * $Id: StMcSsdHit.hh,v 2.6 2011/10/17 00:24:01 fisyak Exp $
4  * $Log: StMcSsdHit.hh,v $
5  * Revision 2.6 2011/10/17 00:24:01 fisyak
6  * Add time of flight for hits
7  *
8  * Revision 2.5 2005/11/22 21:44:52 fisyak
9  * Add compress Print for McEvent, add Ssd collections
10  *
11  * Revision 2.4 2005/09/28 21:30:15 fisyak
12  * Persistent StMcEvent
13  *
14  * Revision 2.3 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.2 2005/01/27 23:40:47 calderon
20  * Adding persistency to StMcEvent as a step for Virtual MonteCarlo.
21  *
22  * Revision 2.1 2004/09/14 05:00:30 calderon
23  * Added support for Ist, Ssd and changes to Pixel, from "El Kai".
24  *
25  * Revision 2.1 2003/08/20 18:50:21 calderon
26  * Addition of Tof classes and SSd 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  **************************************************************************/
32 #ifndef StMcSsdHit_hh
33 #define StMcSsdHit_hh
34 
35 #include "StMcHit.hh"
36 #include "tables/St_g2t_ssd_hit_Table.h"
37 
38 
39 class StMcSsdHit : public StMcHit {
40 public:
41  StMcSsdHit() {}
42  StMcSsdHit(const StThreeVectorF& x,const StThreeVectorF& p,
43  Float_t de = 0, Float_t ds = 0, Float_t tof = 0, Long_t k = 0, Long_t volId = 0, StMcTrack* parent=0) :
44  StMcHit(x,p,de,ds,tof,k,volId,parent) {}
45  StMcSsdHit(g2t_ssd_hit_st* pt) :
46  StMcHit(StThreeVectorF(pt->x[0], pt->x[1], pt->x[2]),
47  StThreeVectorF(pt->p[0], pt->p[1], pt->p[2]),
48  pt->de, pt->ds, pt->tof, pt->id, pt->volume_id, 0) {}
49  ~StMcSsdHit() {}
50  ULong_t ladder() const {return mVolumeId%100; }
51  ULong_t wafer() const {return ((mVolumeId%10000-7000)/100)%100;}
52  virtual void Print(Option_t *option="") const; // *MENU*
53 
54 private:
55  ClassDef(StMcSsdHit,2)
56 };
57 
58 ostream& operator<<(ostream& os, const StMcSsdHit&);
59 
60 
61 #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