/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Tof/TofRawEvent/TofRawEvent-00-02-07/TofRawEvent/TofDigi.h

Go to the documentation of this file.
00001 #ifndef TofDigi_H
00002 #define TofDigi_H 
00003 #include <vector>
00004 #include <iostream>
00005 #include "GaudiKernel/ObjectVector.h"
00006 #include "RawEvent/RawData.h"
00007 #include "EventModel/EventModel.h"
00008 
00009 using namespace EventModel;
00010 extern const CLID& CLID_TofDigi;
00011 
00012 /*
00013  *
00014  */
00015 
00016 class TofDigi : public RawData { 
00017 public: 
00018   // Constructor 
00019   TofDigi(const Identifier& id, const unsigned int timeChannel, const unsigned int chargeChannel);
00020   TofDigi(const unsigned int id);
00021 
00022   // Set Overflow Flag
00023   void setOverflow(const unsigned int overflow) { m_overflow = overflow; }
00024  
00025   // Get Overflow Flag
00026   unsigned int getOverflow() { 
00027        //if (m_timeChannel > 65535 || m_chargeChannel > 65535) {
00028        //   m_overflow = 1;
00029        //}
00030        return m_overflow; 
00031   }
00032 
00033   // Retrieve reference to class definition structure
00034   virtual const CLID& clID() const   { return TofDigi::classID(); }
00035   static  const CLID& classID()       { return CLID_TofDigi; }
00036 
00037 private:
00038   unsigned int m_overflow;
00039 };
00040 
00041 typedef ObjectVector<TofDigi> TofDigiCol;
00042 
00043 #endif

Generated on Tue Nov 29 23:14:39 2016 for BOSS_7.0.2 by  doxygen 1.4.7