00001 00005 /*************************************************************************** 00006 * 00007 * $Id: StZdcTriggerDetector.h,v 2.11 2006/09/14 00:02:53 ullrich Exp $ 00008 * 00009 * Author: Thomas Ullrich, Sep 1999 00010 *************************************************************************** 00011 * 00012 * Description: 00013 * 00014 *************************************************************************** 00015 * 00016 * $Log: StZdcTriggerDetector.h,v $ 00017 * Revision 2.11 2006/09/14 00:02:53 ullrich 00018 * Removed argument (run) in constructor. Not needed anymore. 00019 * 00020 * Revision 2.10 2006/08/21 19:43:35 ullrich 00021 * Run number becomes constructor argument. Needed for ZDC. (Akio) 00022 * 00023 * Revision 2.9 2004/04/06 19:39:44 ullrich 00024 * Added ZDC SMD support. 00025 * 00026 * Revision 2.8 2004/02/11 01:42:09 ullrich 00027 * Added new constructor to load data from StTriggerData. 00028 * 00029 * Revision 2.7 2002/02/22 22:56:53 jeromel 00030 * Doxygen basic documentation in all header files. None of this is required 00031 * for QM production. 00032 * 00033 * Revision 2.6 2001/07/13 16:25:20 perev 00034 * last static array fixed 00035 * 00036 * Revision 2.5 2001/07/12 22:58:33 ullrich 00037 * Added variable to store the vertex_z from timing info. 00038 * 00039 * Revision 2.4 2001/04/05 04:00:47 ullrich 00040 * Replaced all (U)Long_t by (U)Int_t and all redundant ROOT typedefs. 00041 * 00042 * Revision 2.3 2000/07/13 12:51:13 ullrich 00043 * Added new method numberOfZdcWords to replace old one with wrong name. 00044 * 00045 * Revision 2.2 1999/12/20 12:54:48 ullrich 00046 * Adapted changed in trigger table dst_TrgDet 00047 * 00048 * Revision 2.1 1999/10/13 19:44:22 ullrich 00049 * Initial Revision 00050 * 00051 **************************************************************************/ 00052 #ifndef StZdcTriggerDetector_hh 00053 #define StZdcTriggerDetector_hh 00054 #include "StObject.h" 00055 #include "StEnumerations.h" 00056 00057 class dst_TrgDet_st; 00058 class StTriggerData; 00059 00060 class StZdcTriggerDetector : public StObject { 00061 public: 00062 StZdcTriggerDetector(); 00063 StZdcTriggerDetector(const dst_TrgDet_st&); 00064 StZdcTriggerDetector(const StTriggerData&); 00065 // StZdcTriggerDetector(const StZdcTriggerDetector&); use default 00066 // StZdcTriggerDetector& operator=(const StZdcTriggerDetector&); use default 00067 virtual ~StZdcTriggerDetector(); 00068 00069 float adcSum(StBeamDirection) const; 00070 float adcSum() const; 00071 unsigned int numberOfZdcWords() const; 00072 float adc(unsigned int) const; 00073 float tdc(unsigned int) const; 00074 float vertexZ() const; 00075 float zdcSmd(StBeamDirection eastwest, int verthori, int strip) const; 00076 00077 void setAdc(unsigned int, float); 00078 void setTdc(unsigned int, float); 00079 void setAdcSum(StBeamDirection, float); 00080 void setAdcSum(float); 00081 void setVertexZ(float); 00082 void setZdcSmd(StBeamDirection eastwest, int verthori, int strip, float val); 00083 00084 unsigned int numberOfZdcCounters() const; // usage depreciated, to be removed soon 00085 00086 protected: 00087 enum {mMaxZdcWords = 16}; 00088 Float_t mAdc[mMaxZdcWords]; 00089 Float_t mTdc[mMaxZdcWords]; 00090 Float_t mSumAdc[2]; 00091 Float_t mSum; 00092 Float_t mVertexZ; 00093 00094 Float_t mZdcSmdEast[mMaxZdcWords]; 00095 Float_t mZdcSmdWest[mMaxZdcWords]; 00096 00097 ClassDef(StZdcTriggerDetector,3) 00098 }; 00099 #endif
1.5.9