00001 /*************************************************************************** 00002 * 00003 * $Id: StMcFgtHit.hh,v 2.7 2011/10/17 00:24:00 fisyak Exp $ 00004 * $Log: StMcFgtHit.hh,v $ 00005 * Revision 2.7 2011/10/17 00:24:00 fisyak 00006 * Add time of flight for hits 00007 * 00008 * Revision 2.6 2009/10/13 19:14:27 perev 00009 * Wei-Ming update 00010 * 00011 * Revision 2.5 2005/11/22 21:44:51 fisyak 00012 * Add compress Print for McEvent, add Ssd collections 00013 * 00014 * Revision 2.4 2005/09/28 21:30:14 fisyak 00015 * Persistent StMcEvent 00016 * 00017 * Revision 2.3 2005/07/19 20:07:34 calderon 00018 * Addition of default constructor, including base class StMcHit constructor. 00019 * Bracket calls to StMemoryPool inside #ifdef. 00020 * 00021 * Revision 2.2 2005/07/06 20:05:28 calderon 00022 * Remove forward declaration of StThreeVectorF, use #include, and only in 00023 * StMcHit base class. StThreeVectorF is not a class anymore, it is now 00024 * only a typedef, only template version of StThreeVector exists now. 00025 * 00026 * Revision 2.1 2005/04/18 20:11:33 calderon 00027 * Addition of Fgt and Fst files. Modified other files to accomodate changes. 00028 * 00029 * 00030 **************************************************************************/ 00031 #ifndef StMcFgtHit_hh 00032 #define StMcFgtHit_hh 00033 00034 #include "StMcHit.hh" 00035 #include "tables/St_g2t_fgt_hit_Table.h" 00036 00037 class StMcFgtHit : public StMcHit { 00038 public: 00039 StMcFgtHit() {} 00040 StMcFgtHit(const StThreeVectorF& x,const StThreeVectorF& p, 00041 Float_t de = 0, Float_t ds = 0, Float_t tof = 0, Long_t k = 0, Long_t volId = 0, StMcTrack* parent=0) : 00042 StMcHit(x,p,de,ds,tof,k,volId,parent) {} 00043 StMcFgtHit(g2t_fgt_hit_st* pt) : 00044 StMcHit(StThreeVectorF(pt->x[0], pt->x[1], pt->x[2]), 00045 StThreeVectorF(pt->p[0], pt->p[1], pt->p[2]), 00046 pt->de, pt->ds, pt->tof, pt->id, pt->volume_id, 0) {} 00047 ~StMcFgtHit() {} 00048 00049 ULong_t layer() const; 00050 ULong_t quad() const; 00051 virtual void Print(Option_t *option="") const; // *MENU* 00052 00053 private: 00054 ClassDef(StMcFgtHit,2) 00055 }; 00056 ostream& operator<<(ostream& os, const StMcFgtHit&); 00057 #endif
1.5.9