00001 /*************************************************************************** 00002 * 00003 * $Id: StMcFtpcHit.hh,v 2.12 2011/10/17 00:24:00 fisyak Exp $ 00004 * $Log: StMcFtpcHit.hh,v $ 00005 * Revision 2.12 2011/10/17 00:24:00 fisyak 00006 * Add time of flight for hits 00007 * 00008 * Revision 2.11 2005/11/22 21:44:51 fisyak 00009 * Add compress Print for McEvent, add Ssd collections 00010 * 00011 * Revision 2.10 2005/09/28 21:30:14 fisyak 00012 * Persistent StMcEvent 00013 * 00014 * Revision 2.9 2005/07/06 20:05:28 calderon 00015 * Remove forward declaration of StThreeVectorF, use #include, and only in 00016 * StMcHit base class. StThreeVectorF is not a class anymore, it is now 00017 * only a typedef, only template version of StThreeVector exists now. 00018 * 00019 * Revision 2.8 2005/01/27 23:40:47 calderon 00020 * Adding persistency to StMcEvent as a step for Virtual MonteCarlo. 00021 * 00022 * Revision 2.7 2003/10/08 20:17:55 calderon 00023 * -using <iostream>, std::cout, std::ostream. 00024 * -changes in FTPC volume Id. 00025 * o Causes changes in decoding of plane(). 00026 * o sector() is added. 00027 * o print volumeId and sector() in the operator<<. 00028 * 00029 * Revision 2.6 2000/06/06 02:58:41 calderon 00030 * Introduction of Calorimeter classes. Modified several classes 00031 * accordingly. 00032 * 00033 * Revision 2.5 2000/05/05 15:25:43 calderon 00034 * Reduced dependencies and made constructors more efficient 00035 * 00036 * Revision 2.4 2000/01/18 20:52:31 calderon 00037 * Works with CC5 00038 * 00039 * Revision 2.3 1999/12/15 20:05:48 calderon 00040 * corrected the comment on the numbering of the plane 00041 * 00042 * Revision 2.2 1999/12/03 00:51:52 calderon 00043 * Tested with new StMcEventMaker. Added messages for 00044 * diagnostics. 00045 * 00046 * Revision 2.1 1999/11/19 19:06:32 calderon 00047 * Recommit after redoing the files. 00048 * 00049 * Revision 2.0 1999/11/17 02:12:16 calderon 00050 * Completely revised for new StEvent 00051 * 00052 * Revision 1.4 1999/09/24 01:23:16 fisyak 00053 * Reduced Include Path 00054 * 00055 * Revision 1.3 1999/09/23 21:25:51 calderon 00056 * Added Log & Id 00057 * Modified includes according to Yuri 00058 * 00059 * 00060 **************************************************************************/ 00061 #ifndef StMcFtpcHit_hh 00062 #define StMcFtpcHit_hh 00063 00064 #include "StMcHit.hh" 00065 #include "tables/St_g2t_ftp_hit_Table.h" 00066 00067 class StMcFtpcHit : public StMcHit { 00068 public: 00069 StMcFtpcHit() {} 00070 StMcFtpcHit(const StThreeVectorF& x,const StThreeVectorF& p, 00071 Float_t de = 0, Float_t ds = 0, Float_t tof = 0, Long_t k = 0, Long_t volId = 0, StMcTrack* parent=0) : 00072 StMcHit(x,p,de,ds,tof,k,volId,parent) {} 00073 StMcFtpcHit(g2t_ftp_hit_st* pt, Float_t cl_x=0, Float_t cl_t=0) : 00074 StMcHit(StThreeVectorF(pt->x[0], pt->x[1], pt->x[2]), 00075 StThreeVectorF(pt->p[0], pt->p[1], pt->p[2]), 00076 pt->de, pt->ds, pt->tof, pt->id, pt->volume_id, 0) {} 00077 ~StMcFtpcHit() {} 00078 ULong_t plane() const; // 1-20, where 1-10 = West and 11-20 = East 00079 ULong_t sector() const; // 1-6 00080 virtual void Print(Option_t *option="") const; // *MENU* 00081 00082 private: 00083 ClassDef(StMcFtpcHit,2) 00084 }; 00085 00086 ostream& operator<<(ostream& os, const StMcFtpcHit&); 00087 00088 00089 #endif
1.5.9