StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMcPxlHit.hh
1 /***************************************************************************
2  *
3  * $Id: StMcPxlHit.hh,v 2.2 2015/05/12 18:46:12 perev Exp $
4  * $Log: StMcPxlHit.hh,v $
5  * Revision 2.2 2015/05/12 18:46:12 perev
6  * Change return uchar ==> int
7  *
8  * Revision 2.1 2013/03/25 23:50:36 perev
9  * Mustafa.Pxl add
10  *
11  *
12  **************************************************************************/
13 #ifndef StMcPxlHit_hh
14 #define StMcPxlHit_hh
15 #include "StMcHit.hh"
16 #include "tables/St_g2t_pix_hit_Table.h"
17 
18 class StMcPxlHit : public StMcHit {
19 public:
20  StMcPxlHit() {}
21  StMcPxlHit(const StThreeVectorF& x,const StThreeVectorF& p,
22  float de = 0, float ds = 0, float tof = 0, long int k = 0, long int volId = 0, StMcTrack* parent=0) :
23  StMcHit(x,p,de,ds,tof,k,volId,parent) {}
24  StMcPxlHit(g2t_pix_hit_st* pt) :
25  StMcHit(StThreeVectorF(pt->x[0], pt->x[1], pt->x[2]),
26  StThreeVectorF(pt->p[0], pt->p[1], pt->p[2]),
27  pt->de, pt->ds, pt->tof, pt->id, pt->volume_id, 0) {}
28  ~StMcPxlHit() {}
29 
33  int sector() const {return mVolumeId/1000000;}
37  int ladder() const {return (mVolumeId%1000000)/10000;}
41  int sensor() const {return (mVolumeId - sector()*1000000 - ladder()*10000)/100;}
42 
43 
44  virtual void Print(Option_t *option="") const; // *MENU*
45 
46 private:
47  ClassDef(StMcPxlHit,1)
48 };
49 
50 ostream& operator<<(ostream& os, const StMcPxlHit&);
51 
52 #endif
53 
54 /***************************************************************************
55  *
56  * $Id: StMcPxlHit.hh,v 2.2 2015/05/12 18:46:12 perev Exp $
57  * $Log: StMcPxlHit.hh,v $
58  * Revision 2.2 2015/05/12 18:46:12 perev
59  * Change return uchar ==> int
60  *
61  * Revision 2.1 2013/03/25 23:50:36 perev
62  * Mustafa.Pxl add
63  *
64  * Revision 2.7 2011/10/17 00:24:00 fisyak
65  * Add time of flight for hits
66  *
67  * Revision 2.6 2005/11/22 21:44:52 fisyak
68  * Add compress Print for McEvent, add Ssd collections
69  *
70  * Revision 2.5 2005/09/28 21:30:15 fisyak
71  * Persistent StMcEvent
72  *
73  * Revision 2.4 2005/07/06 20:05:28 calderon
74  * Remove forward declaration of StThreeVectorF, use #include, and only in
75  * StMcHit base class. StThreeVectorF is not a class anymore, it is now
76  * only a typedef, only template version of StThreeVector exists now.
77  *
78  * Revision 2.3 2005/01/27 23:40:47 calderon
79  * Adding persistency to StMcEvent as a step for Virtual MonteCarlo.
80  *
81  * Revision 2.2 2004/09/14 05:00:30 calderon
82  * Added support for Ist, Ssd and changes to Pixel, from "El Kai".
83  *
84  * Revision 2.1 2003/08/20 18:50:21 calderon
85  * Addition of Tof classes and Pixel classes. Modified track, event, and
86  * container code to reflect this.
87  * Fix bug in StMcVertex and in clearing of some hit collections.
88  *
89  *
90  **************************************************************************/
Definition: tof.h:15
int sector() const
Definition: StMcPxlHit.hh:33
Monte Carlo Track class All information on a simulated track is stored in this class: kinematics...
Definition: StMcTrack.hh:144
int ladder() const
Definition: StMcPxlHit.hh:37
int sensor() const
Definition: StMcPxlHit.hh:41